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.
精彩评论