Jump to content

Google Analytics not working


Recommended Posts

Posted (edited)

** 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

Edited by Ultim8pc
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...