开发者

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

开发者 https://www.devze.com 2022-12-20 16:55 出处:网络
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\

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

精彩评论

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

关注公众号