How to Add Google Analytics to Shopify (2021 Easy Tutorial)

how to add google analytics to shopify

How to Add Google Analytics to Shopify (2021 Easy Tutorial) – In this article I show you how to add Google Analytics to your Shopify store.

First, I give a brief description of what Google Analytics. I then show you how to check whether Google Analytics is already installed on your website or not.

If it’s not installed, I give you detailed instructions on how to install the tracking code.

Google Analytics is key to tracking and monitoring traffic data from your visitors. It’s also critical to measure the success of any SEO strategy.

In general, it’s a very important tool for any digital marketing strategy. For this reason, knowing how to add Google Analytics to Shopify is key for the success of your online marketing efforts.

If you are interested in SEO for your Shopify store, make sure you also check my other articles:

If you need help with increasing traffic, visibility and direct sales for your store, feel free to check our Shopify SEO services.

What is Google Analytics?

Google Analytics is a free tool by Google that allows your to track and monitor data about the traffic and visitors to your website.

Examples of data you can track in Google Analytics are:

  • Number of visitors
  • Traffic sources
  • Number of sales
  • Number of visits from mobile
  • Etc etc

How to Create a Google Analytics Account

To create a Google Analytics account:

  1. Go to
  2. Click ‘Start for free’
  3. Set up a property
  4. Install the tracking code on your website

How to Add Google Analytics to Shopify

To add Google Analytics to Shopify:

  1. From your Shopify admin, go to Online Store > Preferences
  2. Find the Google Analytics section and paste your tracking code here

If you see a code beginning with UA- instead, chances are you already have Google Analytics tracking code installed.



Pasquale Mellone

Pasquale is Founder at, a H2H marketing agency based in Dublin, Ireland, and owner at print-on-demand ecommerce Pasquale has worked in Digital Marketing and Account Management since 2004. He currently lives in Dublin with his wife, stepdaughter and cat.