Mint extension... now Google Analytics?
Stuart brought us an excellent extension that helped us get Mint into the header of Vanilla and it worked great. I was trying to modify the code to work with Google Analytics, trying to get this code in the header but with now luck since I'm not a coder by any stretch of any imagination and it has two lines of code and not just one:
Has someone made an extension for Analytics? If not, could someone show me how to modify the code? As a thanksgiving present? Thanks!
By the way, Happy Thanksgiving everyone!
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x";
urchinTracker();
</script>
Has someone made an extension for Analytics? If not, could someone show me how to modify the code? As a thanksgiving present? Thanks!
By the way, Happy Thanksgiving everyone!
0
Comments
$Head->AddScript('http://www.google-analytics.com/urchin.js'); $Head->AddString('<script type="text/javascript"> _uacct = "UA-xxxxxx-x"; urchinTracker(); </script>');Or something along those lines; haven't tested it yet or anything.Um, sure whatever, although that's sort of the extension right there.
There's a plugin. http://vanillaforums.org/addon/508-google-analytics