开发者

Can I use Google Analytics to track usage of a Greasemonkey script?

I've got a greasemonkey script and I'd like to get an idea of how many regular users I have, what I'd really like is to use Google analytics inside the script. But I'm not sure how to do it if it's even posible.

Also, the site the GM script is runni开发者_JAVA百科ng on also has Analytics so would this clash prevent me from doing it?


You can dynamically insert the Google Analytics Tracker with Dojo after the page has loaded http://ajaxian.com/archives/google-analytics-after-onload-and-documentwrite-for-xhtml but I don't think using analytics with userscripts is a good idea.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜