How to Add Google Analytics to Shopify?

13 minutes read

To add Google Analytics to your Shopify store, you will need to follow these steps:

  1. Sign in to your Google Analytics account, or create a new account if you don't have one already.
  2. In your Google Analytics account dashboard, click on the "Admin" tab located at the bottom left corner of the page.
  3. Under the "Property" column, click on the drop-down menu and select the website for which you want to add the tracking code.
  4. Once you have selected the website, click on the "Tracking Info" tab, and then select "Tracking Code" from the drop-down menu.
  5. In the tracking code page, you will find a tracking ID that starts with "UA-". Copy this tracking ID.
  6. Open a new tab or window in your browser and log in to your Shopify admin.
  7. From the Shopify admin dashboard, click on "Online Store" in the left-hand menu.
  8. Select "Preferences" from the drop-down menu.
  9. Scroll down to the "Google Analytics" section and click on the field labeled "Google Analytics Account."
  10. Paste the tracking ID you copied from Google Analytics into the "Google Analytics Account" field.
  11. Click on the "Save" button at the top right corner of the page.


Congratulations! You have successfully added Google Analytics to your Shopify store. It may take up to 24 hours for the data to appear in your Google Analytics account.

Best Google Analytics Books In December 2024

1
Google Analytics Demystified (4th Edition)

Rating is 5 out of 5

Google Analytics Demystified (4th Edition)

2
Learning Google Analytics: Creating Business Impact and Driving Insights

Rating is 4.9 out of 5

Learning Google Analytics: Creating Business Impact and Driving Insights

3
Google Analytics: Understanding Visitor Behavior

Rating is 4.8 out of 5

Google Analytics: Understanding Visitor Behavior

4
Google Analytics Breakthrough: From Zero to Business Impact

Rating is 4.7 out of 5

Google Analytics Breakthrough: From Zero to Business Impact

5
Google Analytics Alternatives: A Guide to Navigating the World of Options Beyond Google

Rating is 4.6 out of 5

Google Analytics Alternatives: A Guide to Navigating the World of Options Beyond Google

6
Learning Google AdWords and Google Analytics

Rating is 4.5 out of 5

Learning Google AdWords and Google Analytics

7
Data Engineering with Google Cloud Platform: A practical guide to operationalizing scalable data analytics systems on GCP

Rating is 4.4 out of 5

Data Engineering with Google Cloud Platform: A practical guide to operationalizing scalable data analytics systems on GCP

8
Practical Google Analytics and Google Tag Manager for Developers

Rating is 4.3 out of 5

Practical Google Analytics and Google Tag Manager for Developers

9
Advanced Web Metrics with Google Analytics

Rating is 4.2 out of 5

Advanced Web Metrics with Google Analytics


How to create a Google Analytics account?

To create a Google Analytics account, follow these steps:

  1. Go to the Google Analytics website by typing "Google Analytics" into your web browser's search bar.
  2. Click on the first link that appears in the search results, which should be the official Google Analytics website.
  3. If you already have a Google/Gmail account, click on the "Sign in" button in the top right corner and enter your account credentials. If you don't have a Google/Gmail account, click on the "Create an account" button and follow the prompts to create one.
  4. Once you're signed in to your Google account, click on the "Start measuring" button.
  5. You will be prompted to set up a new property within Google Analytics. Click on the "Set up for free" button.
  6. Enter a name for your account and website. Choose an appropriate time zone for your reporting.
  7. Select an appropriate data-sharing settings option based on your preference. You can adjust these settings later in your account's Admin panel.
  8. Review and accept the terms of service and click on the "Create" button.
  9. On the next page, you will see a snippet of tracking code that needs to be added to your website. Copy this code or make a note of it for later.
  10. Install the Google Analytics tracking code on your website by adding it to the header of each page you want to track. This will require access to your website's HTML files or a content management system (CMS) where you can paste the code.
  11. After the code is installed, return to the Google Analytics website and click on the "I'm Done" button.


Congratulations! You have successfully created a Google Analytics account. It may take some time for data to start appearing in your account, so be patient and make sure your tracking code is implemented correctly.


What is a bounce rate in Google Analytics for Shopify?

In Google Analytics for Shopify, a bounce rate refers to the percentage of visitors who navigate away from your website after viewing only one page. In simple terms, it is the number of single-page sessions divided by the total number of sessions on your website. A higher bounce rate indicates that visitors are not engaging further with your website or exploring other pages beyond the initial landing page. It may suggest that your website content, user experience, or landing pages need improvement to encourage visitors to stay longer and navigate further.


How to track abandoned carts using Google Analytics on Shopify?

To track abandoned carts using Google Analytics on Shopify, you need to set up Enhanced Ecommerce tracking. Here's a step-by-step guide:

  1. Go to your Shopify admin dashboard and click on "Online Store" in the left-hand menu.
  2. From the Online Store menu, click on "Preferences".
  3. Scroll down to the Google Analytics section and enter your Google Analytics tracking ID. Save the changes.
  4. Access your Google Analytics account and navigate to the Admin section.
  5. Under the "View" column, click on "Ecommerce Settings".
  6. Enable Ecommerce and Enhanced Ecommerce Reporting by toggling the switches to "On".
  7. Save the changes.
  8. Now go back to your Shopify admin dashboard and click on "Online Store" in the left-hand menu.
  9. From the Online Store menu, click on "Themes".
  10. Next, click on "Actions" and choose "Edit code" from the dropdown.
  11. In the "Layout" folder, locate and open the "theme.liquid" file.
  12. Within the "head" section of the "theme.liquid" file, find the existing Google Analytics tracking code beginning with ga('create', 'YOUR-TRACKING-ID', 'auto');.
  13. Just below this line, insert the following code:
1
2
3
4
5
ga('require', 'ec');
ga('ec:setAction', 'checkout', {
  'step': 1,
  'option': 'Abandoned Cart'
});


  1. Save the changes.


Now, Google Analytics will track abandoned carts as an "Abandoned Cart Step 1" in the Enhanced Ecommerce reports. You can access these reports within your Google Analytics account by navigating to Conversions > Ecommerce > Shopping Behavior.


How to find the tracking ID in Google Analytics?

To find the tracking ID in Google Analytics, follow these steps:

  1. Sign in to your Google Analytics account.
  2. Click on the "Admin" tab located in the bottom left corner of the page.
  3. In the "Property" column, select the specific website or app for which you want to find the tracking ID.
  4. Under the "Property" column, click on the "Tracking Info" tab and then select "Tracking Code."
  5. The tracking ID is located at the top of the page in the format "UA-XXXXXXXX-X".


Note: If you have multiple websites or apps within your Google Analytics account, make sure you select the correct property to find the corresponding tracking ID.


How to track mobile app traffic in Google Analytics for Shopify?

To track mobile app traffic in Google Analytics for Shopify, you need to follow these steps:

  1. Set up a Google Analytics account: Create a Google Analytics account if you don't already have one. Go to the Google Analytics website (analytics.google.com), sign in with your Google account, and create a new property for your mobile app.
  2. Install the Shopify Google Analytics app: Install the Shopify Google Analytics app from the Shopify App Store. This app helps you add the Google Analytics tracking code to your Shopify store automatically.
  3. Enable mobile app tracking in Google Analytics: In your Google Analytics account, go to the admin section. Under the property column, click on "Mobile app tracking" and enable it.
  4. Set up Firebase and Google Tag Manager: To track mobile app traffic, you need to integrate your Shopify store with Firebase and Google Tag Manager. Go to the Firebase website (firebase.google.com) and create a new project for your mobile app. Add the Firebase SDK to your mobile app and set up custom events and parameters as per your tracking needs. Then, set up Google Tag Manager to manage your tracking configurations.
  5. Configure Google Tag Manager in Shopify: In your Shopify admin, go to the Google Tag Manager settings and enter your Google Tag Manager container ID. This allows Shopify to communicate with Google Tag Manager and send data to Firebase.
  6. Add tracking code to your Shopify theme: In your Shopify admin, go to the Themes section, click on "Actions," and then choose "Edit code" for the active theme. Locate the theme.liquid file and search for the Google Analytics tracking code. Add the Firebase initialization code and Google Tag Manager container code below the Google Analytics tracking code. Save the changes.
  7. Test and verify tracking: Test your mobile app tracking by performing different actions in your app and verifying that the data is being tracked accurately in Google Analytics. You can check the Real-Time reports in Google Analytics to see if the events and conversions are being recorded.


By following these steps, you will be able to track mobile app traffic in Google Analytics for your Shopify store.


How to set up Google Analytics on Shopify?

To set up Google Analytics on your Shopify store, follow these steps:

  1. Sign in to your Google Analytics account at analytics.google.com.
  2. Click on the "Admin" tab at the bottom left of the screen.
  3. In the "Account" column, click on the dropdown menu and select the account you want to use for your Shopify store, or click on "Create Account" to set up a new one.
  4. In the "Property" column, click on the dropdown menu and select the property you want to use for your Shopify store, or click on "Create Property" to set up a new one.
  5. Under the "Property" column, click on "Tracking Info" and then select "Tracking Code".
  6. Copy the tracking code displayed on the page.
  7. Open a new tab or window and log in to your Shopify admin panel.
  8. Go to "Settings" and then click on "Online Store".
  9. Scroll down to the "Google Analytics" section and paste the tracking code you copied into the "Google Analytics" field.
  10. Click on "Save" to apply the changes.


Once the tracking code is added to your Shopify store, Google Analytics will start collecting data and you will be able to access it from your Google Analytics account.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

To set up Shopify with GA4 (Google Analytics 4), follow these steps:Start by signing in to your Shopify account.In the Shopify admin, go to the "Online Store" section and select "Preferences."Scroll down to the "Google Analytics" sectio...
To access the Google Merchandise Store Analytics, you need to follow these steps:Open your web browser and visit the Google Analytics website (https://analytics.google.com/).Sign in to your Google account. Make sure you use the same account associated with the...
Google Analytics 4 (GA4) is the latest version of Google's web analytics platform. It offers enhanced features and capabilities compared to its predecessor, Universal Analytics. Here's a general overview of how to use Google Analytics 4:Set up a Google...