Are you searching for an easy-to-follow guide to help you integrate Google Analytics and Shopify? Well, look no further! Follow our easy step-by-step guide that will help you integrate Google Analytics and Shopify in no time! It will help you set up the integration entirely from scratch.

Upon a complete walkthrough of the content, you will be able to combine your Shopify data with Google Analytics with ease, allowing you to perform a detailed analysis of not only your business but also your customers.

Prerequisites

  • Working knowledge of Google Analytics.
  • Working knowledge of Shopify.
  • A Google Analytics account.
  • A Shopify account.

Steps to Integrate Google Analytics and Shopify

You can implement this using the following steps: 

Step 1: Setting up a new Google Analytics account

To integrate Google Analytics and Shopify, you first need to create a Google Analytics account. If you already have a Google Analytics, you can directly move onto the next step!

Go to the official Google Analytics website and log in with your Google account. Once you’ve logged in, a new dialogue box will now open up with the following four options:

Click on the signup option and choose the type of property you want to track. To integrate Shopify, select the Website option and give details for your website as follows:

Setting up a new Website account: Google Analytics and Shopify
  • Account Name: Give a name for your analytics account.
  • Website Name: Give a name for your website.
  • URL: Enter the URL for the website you want to track using Google Analytics. You can provide your primary domain here. 
  • Category: Select the kind of website you want to track. 
  • Time-Zone: Select the time for your region.

Once you’ve provided the details, click on the “Get Tracking Id” option. A new dialogue box will now open up, where you need to provide information about your country. Now, click on next to complete the setup process for your Google Analytics account. 

Once you’ve successfully set up your account, the website-tracking page will open up. Click on the admin option, then from the properties section, select the tracking code option.

Extracting tracking code: Google Analytics and Shopify

The Google Analytics tracking code/Global Site tag will now appear on your screen as follows:

Google Analytics Tracking Code: Google Analytics and Shopify

You now need to copy the entire code between the script tags and carefully save it. Select and then copy it using the CTRL+C command on your Windows System. In case you are using a Mac, you can use the Command+C shortcut.

Step 2: Setting up an existing Google Analytics account

Go to the official Google Analytics website and login to your existing account by providing your credentials such as username and password. Once you’ve signed in, your Google Analytics dashboard will now open up as follows:

Google Analytics Dashboard: Google Analytics and Shopify

Click on the admin option from the panel on the left. A new window will now open up. Click on the create an account option and then select Website as your preferred tracking mode.

Google Analytics Admin Section: Google Analytics and Shopify

Once you’ve selected Website, you now need to provide the following information:

  • Website Name: Give a name for your website.
  • URL: Enter the URL for the website you want to track using Google Analytics. You can provide your primary domain here. 
  • Category: Select the kind of website you want to track. 
  • Time-Zone: Select the time for your region.

Once you’ve provided the details, click on the “Get Tracking Id” option. Now, click on next to complete the setup process for your Google Analytics account.

The website tracking page will now open up on your screen, from where you need to select and copy the Global Site tag as follows:

Google Analytics Tracking Code: Google Analytics and Shopify

Copy the Google Analytics tracking code. You can select and then copy it using the CTRL+C command on your Windows System. In case you are using a Mac, you can use the Command+C shortcut.

Step 3: Adding the Google Analytics tracking code to Shopify

Once you’ve carefully saved the tracking code, go to the official Shopify website and log in by providing your credentials such as username and password. Once you’ve logged in, select the online store option from the panel on the left and then select the preferences option as follows:

Shopify Preferences: Google Analytics and Shopify

The Shopify preferences section will now open up on your screen as follows. Locate the Google Analytics option, and paste the Google Analytics tracking code in the box:

Shopify Online Preferences section: Google Analytics and Shopify

If you’ve added the correct tracking code in the Google Analytics section, a unique code starting with UA will now appear under the Google Analytics section on your screen as follows:

Connecting Google Analytics and Shopify: Google Analytics and Shopify

This indicates that you’ve successfully enabled Google Analytics integration for your Shopify account.

Are you tired of following a tedious setup process? Click here to check how Hevo, can you help you integrate data from Google Analytics and Shopify, in a hassle-free and completely automated manner.

Step 4: Enabling E-Commerce Tracking

Once you’ve successfully enabled Google Analytics for Shopify, you now need to turn on the e-commerce tracking feature. Google Analytics provides users with two different kinds of e-commerce tracking options. You can either enable the “basic e-commerce” tracking feature, that will allow you to monitor data related to revenue and transactions or enable the “enhanced e-commerce” tracking, that will also allow you to monitor the visitors’ behaviour.

Enabling Basic E-Commerce Tracking

To enable e-commerce tracking, log in to your Google Analytics account and click on the admin option, found at the bottom left corner of your screen. From the view menu, click on the e-commerce settings option, and toggle the button to on.

This is how you can enable the “basic e-commerce” tracking option.

Enabling Enhanced E-Commerce Tracking

To enable the “enhanced e-commerce” tracking, log in to Shopify with your credentials and click on the online store, then select preferences from the panel on the left.  In the Google Analytics section, check the use enhanced e-commerce option and click on save.

Selecting the e-commerce option: Google Analytics and Shopify

Now, go to your Google Analytics home page and click on the admin option and then finally from the view section, click on the e-commerce setting option.

Enabling Enhanced E-Commerce: Google Analytics and Shopify

Toggle the enhanced reporting option, and click on save. This is how you can enable “enhanced e-commerce tracking” for your Google Analytics and Shopify accounts.

Step 5: Verifying Google Analytics and Shopify Integration

There are two ways in which you can verify your Google Analytics and Shopify integration. You can either use the Google Tag Assistant or use the real-time reports to check if the integration is working correctly or not.

Using the Google Tag Assistant

The Google Tag Assistant is an add-on extension for your browser, that represents the tracking status with the help of different colours such as green, blue, etc. and also displays the number of tracking tags present for your website. It will further notify you, with any issues that arise for your tracking tag.

Google Tag Assistant: Google Analytics and Shopify

Limitations of using the standard integration method

  • One of the most significant issues of directly connecting Google Analytics with Shopify is the difference in the order volumes on both platforms. Google Analytics often misses out on tracking some pages, such as the order confirmation page.
  • The standard integration of Google Analytics with Shopify works using the tag manager and works well with most websites, but it suffers when working with websites that are more custom built.
  • The standard integration supports a maximum of 500 user interactions hits per session, leading to users missing out on data related to any interaction that occurs afterwards.
  • To track customer data completely, users must set multiple filters. This can be a challenging task for many, especially beginners.

Introduction to Google Analytics

Google Analytics is a web analytics service that provides users with statistical and analytical information. It is highly useful & helps in managing search engine optimization (SEO) and product marketing operations. It is free of cost service available to every Google user.

Introduction to Shopify

Shopify is one of the most popular e-commerce platforms that allows business and users to sell their products/services through the online platform. Using Shopify, you can set up an online store and sell your products with the help of the Point of Sale (POS) system. ]

Various products or services that you can sell on Shopify:

  • Physical Products
  • Digital Products   
  • Memberships
  • Experiences
  • Rentals
  • Classes

For further information on Shopify, you can check the official site here.

Conclusion

This article teaches you how to integrate data from Google Analytics and Shopify. It provides in-depth knowledge about the concepts behind every step to help you understand and implement them efficiently. These methods, however, can be challenging especially for a beginner & this is where Hevo saves the day.

Tell us about your experience of integrating Google Analytics and Shopify! Let us know in the comments section below.

Divij Chawla
Marketing Operations and Analytics Manager, Hevo Data

Divij Chawla is interested in data analysis, software architecture, and technical content creation. With extensive experience driving Marketing Operations and Analytics teams, he excels at defining strategic objectives, delivering real-time insights, and setting up efficient processes. His technical expertise includes developing dashboards, implementing CRM systems, and optimising sales and marketing workflows. Divij combines his analytical skills with a deep understanding of data-driven solutions to create impactful content and drive business growth.

No-code Data Pipeline for Google Analytics