How to Set Up Google Analytics With Shopify?

12 minutes read

To set up Google Analytics with Shopify, you can follow these steps:

  1. Start by signing in to your Shopify account and navigating to the Shopify admin panel.
  2. In the Shopify admin panel, click on "Online Store" and then select "Preferences."
  3. Scroll down to the "Google Analytics" section and enter your Google Analytics Tracking ID. If you don't have a Google Analytics account, you need to create one first.
  4. To obtain the Tracking ID, go to the Google Analytics website and sign in to your account. Navigate to "Admin" in the lower left corner, and under the Property column, select the account and property you want to use for your Shopify store.
  5. Once you have chosen the property, click on "Property Settings." Here, you'll find the Tracking ID, which appears in the format "UA-XXXXXXXXX-X." Copy this ID.
  6. Go back to the Shopify admin panel and paste the Tracking ID into the designated field in the Google Analytics section.
  7. Optionally, you can enable the "Enhanced Ecommerce" option if you want to track advanced ecommerce features like product impressions, clicks, and sales data.
  8. Scroll down to the bottom of the page and click on "Save" to finalize the setup.
  9. It may take some time for data to appear in your Google Analytics account. You can verify if it's working by going to the "Real-Time" section in Google Analytics and checking if it shows any active users on your website.


Congratulations! You have successfully set up Google Analytics with Shopify, and now you can start tracking your website's performance, user behavior, and other valuable insights through your Google Analytics account.

Best Google Analytics Books to Read in 2024

1
Learning Google Analytics: Creating Business Impact and Driving Insights

Rating is 5 out of 5

Learning Google Analytics: Creating Business Impact and Driving Insights

2
Google Analytics Demystified (4th Edition)

Rating is 4.9 out of 5

Google Analytics Demystified (4th Edition)

3
Google Analytics: Understanding Visitor Behavior

Rating is 4.8 out of 5

Google Analytics: Understanding Visitor Behavior

4
Google Analytics Uncovered: How to Set Up and Maximize Ecommerce Data in Google Analytics

Rating is 4.7 out of 5

Google Analytics Uncovered: How to Set Up and Maximize Ecommerce Data in Google Analytics

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
Data Engineering with Google Cloud Platform: A practical guide to operationalizing scalable data analytics systems on GCP

Rating is 4.5 out of 5

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

7
The Google Analytics 4 and Google Tag Manager Cookbook: A Simple Step by Step Pictorial Guide to Implementing Google Analytics and Google Tag Manager for your Websites.

Rating is 4.4 out of 5

The Google Analytics 4 and Google Tag Manager Cookbook: A Simple Step by Step Pictorial Guide to Implementing Google Analytics and Google Tag Manager for your Websites.

8
Google Analytics Breakthrough: From Zero to Business Impact

Rating is 4.3 out of 5

Google Analytics Breakthrough: From Zero to Business Impact


What is the Referral exclusion list in Google Analytics for Shopify?

The referral exclusion list in Google Analytics for Shopify is a feature that allows you to exclude specific domains from being credited as a source of traffic when a visitor makes a purchase on your Shopify store. This is particularly useful when you use payment gateways that redirect visitors to their own domain during the checkout process.


By adding domains to the referral exclusion list, you ensure that when a visitor gets redirected back to your store after completing a purchase, the source of traffic is not attributed to the payment gateway's domain, but instead recognized as direct traffic. This helps in accurately measuring the effectiveness of your marketing campaigns and understanding the true sources of traffic and conversions.


To manage the referral exclusion list in Shopify, you need to have admin access to your Google Analytics account. You can access the referral exclusion list by navigating to Admin in Google Analytics and then selecting the Property settings. From there, you can find the Referral Exclusion List section and add or remove domains as needed.


How to create a Google Analytics account?

To create a Google Analytics account, follow these steps:

  1. Go to the Google Analytics website (analytics.google.com) and click on the "Start for free" button.
  2. Sign in with your Google account. If you don't have a Google account, click on the "Create account" button to create one.
  3. On the next page, you will need to fill in some information about your website or app. Choose between tracking a website or a mobile app and provide the necessary details like the account name, website or app name, and website URL. Then, click on the "Next" button.
  4. You will be prompted to select the data sharing settings. Review the options and adjust them according to your preference. Click on the "Next" button to proceed.
  5. Read and accept the Google Analytics Terms of Service agreement.
  6. Google Analytics will then generate a unique tracking code for your website/app. Copy the tracking code provided.
  7. Paste the tracking code into each web page you want to track or integrate it into your mobile app following the provided instructions.
  8. After adding the tracking code, click on the "Next" button to proceed.
  9. You will be taken to the Google Analytics dashboard where you can access your account settings, view reports, and configure various settings.


Congratulations, you have successfully created a Google Analytics account! It might take some time for data to start appearing in your account, so be patient and explore the various features and capabilities of Google Analytics to gain insights into your website or app's performance.


How to access the Google Analytics tracking code for Shopify?

To access the Google Analytics tracking code for Shopify, follow these steps:

  1. Log in to your Shopify admin panel.
  2. Navigate to "Online Store" in the left-hand side menu.
  3. Select "Preferences" from the options.
  4. Scroll down to the "Google Analytics" section.
  5. In the "Google Analytics account" field, select an existing account or choose "Add account" to link a new Google Analytics account.
  6. Click on "Save" to apply the changes.


Once you have selected or added a Google Analytics account, the tracking code will be automatically added to your Shopify store. This code enables the tracking of various metrics such as website traffic, conversions, and user behavior, which can be accessed and analyzed through your Google Analytics account.


How to monitor cart abandonment using Google Analytics for Shopify?

To monitor cart abandonment using Google Analytics for Shopify, follow these steps:

  1. Set up Google Analytics: Sign in to your Google Analytics account and create a new property for your Shopify store. Copy the tracking code provided by Google Analytics for the property.
  2. Install Google Analytics on Shopify: In your Shopify admin, go to "Settings" and then click on "Online Store". Scroll down to the "Google Analytics" section and paste the tracking code into the "Google Analytics Account" field.
  3. Enable Enhanced Ecommerce Tracking: In your Google Analytics account, go to "Admin" and select your Shopify property. Under the "View" column, click on "Ecommerce Settings" and toggle the "Enable Ecommerce" and "Enable Enhanced Ecommerce Reporting" switches to ON.
  4. Set up Goals in Google Analytics: Go to "Admin" in your Google Analytics account and select your Shopify property. Under the "View" column, click on "Goals" and then click on "+ New Goal". Choose a goal template or create a custom goal, such as "Add to Cart" or "Reached Checkout". Define the goal details and save it.
  5. Create a Segment for Abandoned Carts: In the Google Analytics reporting view, click on "Add Segment" above the graph and select "New Segment". Create a segment by applying the following conditions:
  • Include sessions where 'Ecommerce > Shopping Behavior > Shopping Stage' contains 'Checkout'
  • Exclude sessions where 'Ecommerce > Shopping Behavior > Shopping Stage' contains 'Transaction'
  1. Set up Custom Dimensions (optional): If you want to track additional cart abandonment data, such as cart value or products, you can set up custom dimensions in Google Analytics. In your Shopify admin, go to "Settings" and then click on "Checkout". Scroll down to the "Order processing" section and enter the custom dimension IDs.
  2. Analyze Cart Abandonment Reports: In Google Analytics, navigate to "Conversions" and click on "Goals" to view your goals. Select the goal you created for cart abandonment and analyze the data. You can also apply the segment you created earlier to see cart abandonment-specific data.


By following these steps, you can monitor cart abandonment using Google Analytics for your Shopify store and gain insights into user behavior to optimize your conversion rates.


How to filter and exclude internal traffic from Google Analytics for Shopify?

To filter and exclude internal traffic from Google Analytics on Shopify, you can follow these steps:

  1. Identify your IP address: Open Google and search for "What is my IP address?" This will display your public IP address.
  2. Log in to your Google Analytics account: Go to analytics.google.com and sign in with your Google account credentials.
  3. Access your Shopify Google Analytics settings: In your Google Analytics account, go to the Admin tab located at the bottom left corner of the screen.
  4. Filter your IP address: Under the View column, click on "Filters" and then click on "Add Filter". Give your filter a name, such as "Internal Traffic Filter". Choose "Predefined" from the filter type options. In the "Select filter type" drop-down menu, choose "Exclude" and then select "traffic from the IP addresses" as your filter option. Enter your IP address in the provided field.
  5. Test and save the filter: Click on the "Verify this filter" button to test the filter against the past traffic. If the filter is working correctly, it will identify and exclude your IP address. Once verified, click on the "Save" button to apply the filter.
  6. Apply the filter to your Shopify view: Return to the "View" column under the Admin tab and click on "View Settings". Scroll down to the "Filters" section and select the newly created filter from the available options. Click on "Save" to apply the filter to your Shopify view.


By following these steps, your internal traffic will be excluded from your Google Analytics data, allowing you to analyze the performance of your Shopify store without any interference from your own visits.

Facebook Twitter LinkedIn Telegram Pocket

Related Posts:

Google Analytics is a powerful tool that allows you to track and measure the performance of your Facebook Ads campaigns. By integrating Google Analytics with your Facebook Ads account, you can get valuable insights into the behavior of your audience and make d...
To track user journeys in Google Analytics, you can follow these steps:Set up Google Analytics on your website: First, you need to have Google Analytics set up on your website. Sign in to your Google Analytics account, create a new property, and get the tracki...
To add Google Analytics to your Next.js app, you can follow these steps:Sign up for a Google Analytics account: Go to the Google Analytics website (www.google.com/analytics) and sign up using your Google account. Create a new property for your Next.js app. Obt...