Menu Close

How to add Google Analytics to Shopify

  1. Knowledge Base
  2. Shopify

How to enable Universal Google Analytics :

  • Sign in to your Google Analytics account
  • Click on Analytics in the drop-down menu
  • Select Website on the next page and fill in the form.
  • Under Website URL, enter your Primary domain
  • Click on Get Tracking ID
  • You will now see a tracking ID code snippet provided by Google :

(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

ga(‘create’, ‘UA-########-#’, ‘’);
ga(‘send’, ‘pageview’);

  • Copy the code. Go to your Shopify admin panel.
  • Click on Online Store – Preferences

Paste the code copied in the Google Analytics field

Smiley face

Leave a Reply

Your email address will not be published. Required fields are marked *