(V5) Google Analytics Print

  • 0

This article will guide you on how to add your Google Analytics code to enable Google Analytics tracking.

  1. In your admin area, navigate to Store Settings > Analytics.
  2. Under Google Analytics, you'll see your store name. Click on the edit icon to the right of your store name.
  3. Add the whole global site tag in the text box and not only the UA numbers.
  4. Set the Status to Enabled.
  5. Save.
  6. Navigate to your Google Analytics dashboard and verify if your site is being tracked. It might take some time before data shows up. Consult Google's documentation to find out how long.

Here's an example of a global site tag code (make sure not to use this one as this is a sample):

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

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


Was this answer helpful?

« Back

["\r\n