Jump to content

Google Analytics not working


Ultim8pc

Recommended Posts

** RESOLVED **
I have two Cubecart sites, one I've had a few years and a new one I'm setting up.
Neither had Google analytics setup. I've added the unique codes to each site (Store settings| Features| Google Analytics).
However, neither site is registering any data in the Analytics portal.
If I view the code for pages on either site I can see the page code and unique ID is present:
 

 
  (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', 'XXXXXXXXXX', 'auto');
  ga('set', 'anonymizeIp', true);
 

ga('send', 'pageview');
 

Any help appreciated.

Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...