fbpx
Google Analytics 4 E-commerce Tracking for Shopify

Google Analytics 4 E-commerce Tracking for Shopify

Google Analytics 4 E-commerce Tracking for Shopify

 

Amazing news for Shopify users! Shopify has finally come up with native integration to Google Analytics 4. If you’re looking to learn the fastest and easiest way to get Google Analytics 4 E-commerce tracking for your Shopify store, this article is the game-changer you need! This integration allows you to monitor crucial metrics such as add to cart, added payment info, and ultimately, the revenue inside your Google Analytics 4 account. In this article, we will walk you through this easy setup process, including debugging and troubleshooting to ensure that it is working as perfectly as you expect it to. Let’s dive right in!

 

 

Getting Started with Shopify Google Analytics 4 Integration

There are a couple of prerequisites you need to ensure seamless integration. First, you need to have admin access to both your Shopify account as well as your Google Analytics 4 account in order for this connection to work.

Additionally, if you had previously set up Google Analytics 4 through any alternative ways in the past, either by putting it directly into your theme.liquid or through Google Tag Manager, you have to delete that code before proceeding.

To do that, follow the steps below:

  1. Log into your Google Analytics account and under the Admin tab, click on ‘Data Streams’.
  2. Click on the little arrow to the right of your data stream and a popup with your data stream details will show up.
  3. Scroll down to ‘View Tag Instructions’ under the Google Tag section and click on it to view the Installation Instructions.
  4. Copy the code and proceed to your Shopify store to confirm if it is hard-coded into your theme.liquid for deletion.

Install your Google Tag

  1. In your Shopify Account, under the sales channels, click on the ‘Online Store’ tab and on ‘Themes’.
  2. Click on the three dots in your current theme settings and click on ‘Edit Code’ as shown below.

Shopify Themes

 

  1. You will be directed to your theme.liquid. Press Command + F on your keyboard and paste the copied code to run a search to make sure that the code does not already exist.

Shopify theme.liquid

Most people probably do not have this already set up. However, if you do, you can proceed to delete the code to ensure that you’re not double-tracking inside your Google Analytics 4.

  1. Similarly, you will need to pause your ECOM event and the GA4 configuration inside your Google Tag Manager if you previously set up your Google Tag Manager before the native integration. Simply go to the ‘Tags’ Tab in your Tag Manager, select both tags and click on the little pause icon before running this setup.

Google Tag Manager

However, if you have never installed Google Analytics 4 on your website, nor deployed it through Google Tag Manager, then you are ready to proceed.

 

Setting up Google Analytics 4 E-commerce tracking for Shopify

  1. To begin your setup, go to your Shopify account, navigate to the ‘Online Store’ tab and select ‘Preferences’.

 

2. Scroll down to the Google Analytics section and click on ‘Manage Pixel Here’, if you use the Google Channel App. If you do not already have the Google Channel App, you will be prompted to set it up. You will then be redirected to the following view:

3. Once on this setup page, ensure that the email associated with the Google channel app also has admin access to your Google Analytics 4 account to enable the connection. If you have access to multiple Google Analytics 4 accounts, choose the desired account from the dropdown and click on the ‘Connect’ button.

 

4. You will be notified once your Google Analytics 4 setup is successful as shown below.

 

That’s it! It is as easy as that. You have successfully established the connection between your Shopify store and Google Analytics 4, enabling e-commerce tracking effortlessly. Your Google Analytics 4 account will now track revenue, add to cart, and all other metrics.

 

Troubleshooting Shopify Google Analytics 4 E-commerce Tracking

To ensure that the integration is working correctly for your Google Analytics 4 account, it is important to go through a quick troubleshooting process.

  1. Open the Admin section of your Google Analytics Account and click on the ‘DebugView’ tab in the ‘Property’ Column to initiate the verification process.

 

Google Analytics 4 DebugView

 

  1. Install the “Google Analytics Debugger” Chrome extension if you haven’t already.

Google Analytics 4 Debugger

 

  1. Visit your Shopify website and ensure that the GA Debug extension is ON to allow it to access your site.

 

  1. Return to Google Analytics and observe the debug mode in action, capturing page views.

Page Views on Google Analytics 4

  1. To fully test the e-commerce tracking, complete a checkout process and test a payment. Go to your Shopify website and add one of your products to cart.
  2. Monitor Google Analytics for various events, such as ‘user engagement’, ‘page view’, ‘view item’, and ‘add to cart’. The events will reflect automatically just from the couple of button clicks that you performed in Shopify.

Google Analytics 4 data

 

  1. It gets better! Go back to your Shopify website, check out, and pay for the product to go through the entire payment process.
  2. Once the payment is processed and confirmed, go back to Google Analytics 4, and you will notice that a purchase event has fired through. Click on the ‘Purchase’ event to view various information such as the campaign, the currency, medium, value, tax, and shipping, among others.

Google Analytics 4 Purchase Data

 

  1. Super easy! You have verified the successful implementation of Google Analytics 4 E-Commerce Tracking for your Shopify account. Every piece of information will be passed through as it should.
  2. If you’re simply testing purchases in your Shopify store, go to the live store, click on the ‘Orders’ tab, select the specific order and hit the ‘Refund’ button. That way, you won’t have to suspend money when you’re going through these tests.

 

 

Unleash the Power of Data in Google Analytics 4 for Shopify

Now that you have seamlessly integrated Google Analytics 4 e-commerce tracking with your Shopify store, a wealth of insights awaits you. With the purchase data already loaded, you can go over to the Reports tab and the purchases will reflect in those reports. You can explore valuable data such as the Total Revenue, Users, and Average Engagement Time.

 

Google Analytics 4 e-commerce tracking with your Shopify store

 

Under the ‘Acquisition’ section, you can uncover your specific revenue sources. These insights can help you discover the effectiveness of your marketing campaigns, identify the most profitable customer acquisition channels, and unlock a world of growth opportunities for your e-commerce business.

Google Analytics 4 Acquisition

 

Alternative Setup for Simprosys Users

For those using Simprosys instead of the Google Channel App, you can still set up Google Analytics 4 E-Commerce Tracking. It will appear in the ‘Tracking Tags’ dropdown as an option labelled ‘Google Analytics 4 Tracking Event’. Click on it and follow all the provided steps in this article to complete the setup process.

 

Google Analytics 4 Simprosys vs the Google Channel App

Read: How To Connect Google Search Console To Google Analytics

 

What’s Next?

Now that you have revenue tracking in your Google Analytics, the next step is to set up your Google Shopping Ads Campaigns and start running ads within it.

If you are interested in learning how to do that, I recommend checking out our Full Guide on Google Shopping Ads.

 

Prevent “fbclid” From Showing In Google Analytics Page Reports

Prevent “fbclid” From Showing In Google Analytics Page Reports

If you get any traffic from Facebook you will quickly find that when a user comes from Facebook they will attach a click id to the URL parameter. This parameter is the “fbclid”. If you are reading this blog it is probably because you went into your page or landing page report in Google Analytics and saw something like the image below. A mess of URL parameters that are going to the same page but taking up multiple rows in your report.

Luckily the solution to this problem is actually really easy. All you need to do is head over to the Admin tab in the bottom left corner in Google Analytics.

From there go to there go to view settings. Make sure you have the correct view you are wanting to edit.

Last scroll down to the exclude URL query parameters and type in “fbclid”.

And that is it! You will no longer see that annoying fbclid query cluttering your Google Analytics Data. Quick tip – this will work for any URL query, just make sure to put a comma between query.



How To Connect Google Search Console To Google Analytics

How To Connect Google Search Console To Google Analytics

For anyone that is less familiar with Google Search Console. Google Search Console is a free service that lets you learn a great deal of information about your website and the people who visit it. You can use it to find out things like how many people are visiting your site and how they are finding it, whether more people are visiting your site on a mobile device or desktop computer, and which pages on your site are the most popular. It can also help you find and fix website errors, submit a sitemap, and create and check a robots.txt file. 

The first thing you will need to do is go to https://search.google.com/search-console/about. From here sign up for your free account and enter all the information needed.

Once you are finished you will need to login into your Google Analytics Account. If you don’t have a Google Analytics account you can sign up for a free one here.

Inside of Google Analytics, you will find a column on the left-hand side under acquisition for Search Console. Click on that tab and it will lead you how to connect your Google Search Console and Google Analytics Account. I have provided screen shots of the whole process for you to follow along in case you get a little lost.

After completing this step you will most likely need to wait for a couple of hours for the DNS changes to propagate. After you have waited a few hours go back to Google Search Console page and enter your website again. Once you have completed that you are good to go.

After completing this step you will most likely need to wait for a couple of hours for the DNS changes to propagate. After you have waited a few hours go back to Google Search Console page and enter your website again. Once you have completed that you are good to go.

Complete Guide To Segments In Google Analytics

Complete Guide To Segments In Google Analytics

Google Analytics Segments

When you are wanting to dive deep into the data of Google Analytics chances are you are going to want to use segments to categorize and compare groups of users. We are going to be taking a deep dive into what segments are, how to use them, and see some common segments you can start using today.

What is a segment?

Google defines a segment as “a subset of your Analytics data. Segments let you isolate and analyze those subsets of data so you can examine and respond to the component trends in your business”.

Examples of segments

  • Users who requested a demo or filled out a form
  • Sessions that visited an important page on your site
  • Users who have a specific device or browser
  • Excluding a certain traffic type

There are also many predefined, or default system segments within Google Analytics, and you can start using these for analysis right away. Check the list before you start creating your own segments, just to make sure the one you need isn’t already available.

  • All Users
  • Bounced Sessions
  • Converters
  • Direct Traffic
  • Made a Purchase
  • Mobile and Tablet Traffic
  • Mobile Traffic
  • Multi-session Users
  • New Users
  • Non-bounce Sessions
  • Non-Converters
  • Organic Traffic
  • Paid Traffic
  • Performed Site Search
  • Referral Traffic
  • Returning Users
  • Search Traffic
  • Sessions with Conversions
  • Sessions with Transactions
  • Single Session Users
  • Tablet and Desktop Traffic
  • Tablet Traffic

 How to create segment


Click add segment in on the top of the page inside of any view

Press new segment

Choose Your Own Conditions

Since system segments tend to be pretty generic, you’ll probably discover a lot of use cases for custom segments, which allow you to apply your own conditions and logic. You can start with the ‘greatest hits’ selection of dimension and metric filters that are built into the segments panel, but if you can’t find what you’re looking for (or want to use Custom Dimensions or Metrics), you can use Advanced options instead.

Overall, segments and audiences are powerful tools that can be used in so many different ways. Ultimately the best way to get ideas for segments is to start with a question of what you are trying to solve. Then from there build a segment that can help answer questions for those metrics.