Two Google Analtyics profiles in same same tracking script not working

56 Views Asked by At

We have two profiles that we are tracking for the same site and only one account is working.

Getting the following error in the second GA profile, but I've confirmed code is correct:

Property http://www.ourwebsite.com is not receiving hits. Either your site is not receiving any sessions or it is not tagged correctly.

Is there anything wrong with this?

Here's the following code I'm using:

<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-########-1', 'auto');
      ga('create', 'UA-########-1', 'auto', {'name': 'newTracker'});
      ga('send', 'pageview');
      ga('newTracker.send', 'pageview');
</script>
0

There are 0 best solutions below