Ultim8pc Posted May 8, 2021 Share Posted May 8, 2021 ** 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 More sharing options...
Tony Posted May 8, 2021 Share Posted May 8, 2021 I believe this is because Google has made some changes to their codes and Cubecart needs updating. There is a bug report open which I think is related https://github.com/cubecart/v6/issues/2738 Link to comment Share on other sites More sharing options...
Ultim8pc Posted May 8, 2021 Author Share Posted May 8, 2021 I have now fallen back to using the legacy (v3) analytics and that works. Thanks for the prompt responses.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.