Google Analytics trouble
Posted: Wed Mar 11, 2015 2:48 am
Hi,
I'm using CMSMS 1.11.13 and trying to add the analytics.js code to my site, but it is not registering as being installed in Google Analytics.
I'm using the Simplex template. I tried adding the code immediately before the closing < /head> tag, and also immediately before the closing < /body> tag, but neither works. It just says: "Status: Tracking Not Installed".
Can anyone help?
Thanks!!
I'm using CMSMS 1.11.13 and trying to add the analytics.js code to my site, but it is not registering as being installed in Google Analytics.
Code: Select all
{literal}
< script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxxxx-x', 'auto');
ga('send', 'pageview');
< /script>
{/literal}
Can anyone help?
Thanks!!