Google Analytics to track FireFox extension use
Posted
by Swizec Teller
on Stack Overflow
See other posts from Stack Overflow
or by Swizec Teller
Published on 2009-11-20T13:18:44Z
Indexed on
2010/04/29
21:17 UTC
Read the original article
Hit count: 272
Hi all,
I'm developing a Firefox extension and would like to track its use with google analytics, but I can't get it working.
I've tried manually calling a funstion from ga.js, but that didn't work for some reason. No error was produced, but neither was any data collected.
My last attempt was to have a website that just holds the tracking javascript and then loading it within the extension in an iframe with the URL configured so it contains meaningful data. This way the analytics are getting connected when I visit said webpage with a browser, but not in an extension. I've tried putting some visible javascript ont he site and have confirmed the site's javascript is executing. This method also works with other trackers, but I don't like their output and would prefer Google Analytics.
Any ideas what else I could try to accomplish this?
© Stack Overflow or respective owner