Google Analytics

edited October 2018 in Theme support
Hi,

When I enter the UA Google Analytics Code in theme options will it be added to every page?

Or do I need to add this:

"This is the Global Site Tag (gtag.js) tracking code for this property. Copy and paste this code as the first item into the <HEAD> of every webpage you want to track. If you already have a Global Site Tag on your page, simply add the config line from the snippet below to your existing Global Site Ta"

<!-- Global site tag (gtag.js) - Google Analytics -->
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-126849019-1');
</script>

Thanks,
Chris.

Comments

Sign In or Register to comment.