I am sure it is possible to write something to do this in the gadget, but is there a way to track this through the gallery If not, what is the best way to get the url of the space through the gadget Thank you in advance!!
I am just curious for the most part, but in my gadget it has a requirment for spaces.live.com, but has the add to live button with it. Mostly want to know how many people are trying to use it on live.com vs spaces
You can use the window.location to get the URL you're running on. Donavon suggested a similar approach to find a unique identifier for implementing your preferences mechanism when Spaces didn't support Module.get/set/deletePreference. You could use a similar approach to what I did for pre-preferences Spaces preferences, uploading some information to a web service you write to track what URLs are hosting your gadget.
Well, by "web service", I meant, "a web page that uses server-side scripting to parse a few GET variables". Take a look at my Spaces entry I linked. I went through building a PHP+MySQL solution for preference storage that I used for a bit before Spaces added Preference support. You'd want to do the same thing -- a PHP (or Perl, or Ruby, or ASP, or ASP.NET, or ...) script that looks at the URL string to find a few parameters (in your case, probably some gadget identifier that you set up beforehand and the window.location url parsed out into whatever is useful for you) and then stores that in a database or file somewhere. Then you can look into the database later to report on the gadget usage statistics.
I would suggest you not try to build a full-blown SOAP web service a la ASP.NET's built-in web service functionality. That's way overkill for what you want or need here.
Is there a way to track where your gadget is?
nature0276
Ted.
Hi incendy.
We don't currently support the gathering of this information through Windows Live Gallery, but you may be able to get this via referrer.
If you don't mind me asking, what do you plan to do with that information
Thanks!
VenkatRaghavan
thank you for letting me know!
I am just curious for the most part, but in my gadget it has a requirment for spaces.live.com, but has the add to live button with it. Mostly want to know how many people are trying to use it on live.com vs spaces
nzmike
fel lobo
Well, by "web service", I meant, "a web page that uses server-side scripting to parse a few GET variables". Take a look at my Spaces entry I linked. I went through building a PHP+MySQL solution for preference storage that I used for a bit before Spaces added Preference support. You'd want to do the same thing -- a PHP (or Perl, or Ruby, or ASP, or ASP.NET, or ...) script that looks at the URL string to find a few parameters (in your case, probably some gadget identifier that you set up beforehand and the window.location url parsed out into whatever is useful for you) and then stores that in a database or file somewhere. Then you can look into the database later to report on the gadget usage statistics.
I would suggest you not try to build a full-blown SOAP web service a la ASP.NET's built-in web service functionality. That's way overkill for what you want or need here.