Add two google analytics Gtags to head tags

Hey guys,

To add an two google analytics codes to my website, would it just look like this?

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116837xxx-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-116837xxx-1');
  gtag('config', 'UA-62012xxx-3');
</script>

Have you inserted the script and used Google Analytics to verify that analytics is working?

this one is working UA-116837xxx-1

will check the other one and let you know

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.