How to Add Google Analytics to Shopify

You can boost your e-commerce business in Shopify by installing Google Analytics in your account. This way, you can track any user data that you want to monitor on your store (it’s great in combination with the Facebook Pixel).

Add Google Analytics to Shopify

How to Install Google Analytics

Here are the steps to installing Google Analytics to your Shopify account:

  1. Open a Google account that you can use for your Google Analytics activities.

If you already have an existing Google account (e.g. Gmail), you can use it. For this purpose, you only need your Google account to sign in and sign out of your Google Analytics. Therefore, if you have several Google accounts, you can just use one of them.

  1. Enable your Google Analytics function.

For this step, do the following:

  • Open your web browser and go to
  • Sign in using the Google account you’re using for Google Analytics.
  • You will see three options 1. Sign Up for Google Analytics 2. Add Tracking Code 3. Learn About Your Audience. Click on Sign Up for Google Analytics.
  • You will then see two options 1. Website 2. Mobile app. Click on Website and fill up all the required information.
  1. Set up your account

For this step, you only need to enter your Google Analytics name at the Account Name field. It should be something that’s easy to remember and associate with your type of business or business name. So, it could be as simple as your name or Company name (e.g. ABC Company Analytics).

  1. Set up your property

You will see a set of information that you need to fill up. An example is given below:

  1. Set data sharing settings

You will see three options for this step:

  • Google Products and Services (Recommended)
  • Benchmarking (Recommended)
  • Technical Support (Recommended)

If you want all the options, just click on the boxes next to them. Otherwise, just click on a particular box that you want to enable.

  1. Click Get Tracking ID.
  2. Click Accept to the Terms of Service.
  3. Click Tracking Code from the menu.
  4. Copy the global site tag tracking code (it says global site tag, so you won’t miss it).
  5. Open a new tab and log into your Shopify account.
  6. Go to your Shopify Admin section.
  7. Click Online Store.
  8. Click Preferences
  9. Look for the Google Analytics dialogue box and paste the global site tag tracking code from step #9.

At this point, your Google Analytics is already enabled. However, it won’t be able to track your store’s activities if it’s password protected. If that’s the case, you will need to remove the password protection feature from your Shopify store first.

Turning On Your E-commerce Tracking

While you have already successfully added Google Analytics to your Shopify account (by following the steps above), you still need to turn on your e-commerce tracking to complete the process. You have two options for this:

  • Basic E-commerce Tracking – For basic transactions and revenue data.
  • Enhanced Ecommerce Tracking – For additional/ special information, such as visitor behavior.

We’ll tackle both in full below.

Basic E-commerce Tracking

For the Basic E-commerce Tracking, follow these steps:

  1. Open your Google Analytics account.
  2. Click Admin.
  3. Click Ecommerce Set Up.
  4. Click Enable Ecommerce.
  5. Click on the toggle button to turn it on.
  6. Click Save.

Enhanced E-commerce Tracking

If you choose Enhanced E-commerce Tracking, do these steps:

  1. Open your Shopify account.
  2. Go to Admin.
  3. Click Online Store.
  4. Click Preferences.
  5. Click the Google Analytics section.
  6. Click on the box for Use Enhanced E-commerce.
  7. Click Save.
  8. Open your Google Analytics account.
  9. Click Admin.
  10. Click Ecommerce Settings.
  11. You will see a toggle button to Enable Enhanced Ecommerce Reporting. Turn it on.
  12. Click Save.

Adding Google Analytics to Shopify

As you can see, you can customize the settings on Google Analytics to fit your specific needs. We suggest using this very useful (and reliable) Google tool in monitoring the transactions and visitor behavior on your Shopify online store. It will surely help you in planning and optimizing your shop’s sales while providing pleasant visitor/ customer experience as well.

Leave a Comment

Scroll to Top