There are various methods to set up Google Analytics 4 for your Shopify store. You will see each and every one of them in this post so you can choose one according to your needs.
There are several GA4 setup methods available on Shopify, including Shopify's native integration with the Google Sales Channel. Additionally, there are professional Shopify GA4 apps that provide more comprehensive data and offer professional support tailored to your store's specific needs.
Your GA4 setup should send all the e-commerce events to GA4, including all product-level, user-level and order-level data.
A properly set e-commerce integration should cover the tracking from the first touch to the purchase, including all events in between:
- View product lists (collection pages, category pages, home page)
- Select an item from the list
- View product details (item details)
- Add or remove products from the cart
- Begin (initiate) checkout process
- Complete the purchase
- Executes a refund
- Use promotions & coupon codes
The great news is that it is possible to track most of these events and relevant data on Shopify as well. Here are the methods
Shopify GA4 Integration using Google Channel
As of March 2023, Shopify offers a native GA4 integration through the Google Sales Channel. This is great news for merchants who utilize the Google channel, as it provides an easy and straightforward integration process.
If the Google channel app is not installed, follow these steps to add it to your Shopify store:
- Navigate to Sales Channels from your Shopify admin dashboard.
- Search for the Google channel app in the Shopify App Store and add it to your store.
- Complete the installation process by clicking "Add sales channel."
Click "Connect your Google account" to connect your Google account to the Google channel.
Accept all the access permissions the Google channel needs.
Click "Get started" to begin the setup process.
Click "Connect your Google Analytics 4 property" and select the property that you want to use.
After selecting your property, click "Connect" to finalize the connection between your Shopify store and Google Analytics.
Set up GA4 on Shopify with Google Tag Manager
For this method, you need Shopify data layers, a Google Tag Manager container and setting up both of them in the Shopify store.
Shopify doesn’t have a native Google Analytics 4 or Google Tag Manager integration yet. However, you can benefit from an open-source solution called: Shopify GA4 Kit.
You can use Shopify GA4 Kit which will lead you through the following steps.
Download the Shopify GA4 Kit from its own open-source link
Follow the steps as explained in the Shopify GA4 Kit’s tutorials and add Google Tag Manager container codes into your 'theme.liquid' file and checkout additional scripts sections. You need to create a Google Tag Manager account if you don’t have one
Use Analyzify’s open-source Shopify data layers. The page also includes step-by-step tutorials on how to set up products and purchase data layers
Keep following the tutorial on Shopify GA4 Kit and import the pre-built GTM container into your own Google Tag Manager account. Make sure to have GA4 Global tag, view item event, purchase event
Make sure to add your own GA4 measurement ID to the GTM container
As shown in Shopify GA4 Kit’s tutorial, make a test order and follow the data flow process through Google Tag Manager debug mode and also GA4’s Debug View
Shopify Apps for Shopify Google Analytics 4
If you are looking for a more professional solution, you should be using Shopify apps for Google Analytics. The apps will provide more in-depth data layers, and metrics, and cover all the e-commerce events.
Analyzify, the most loved & reviewed Shopify Google Analytics app in the market offers a Done-For-You setup where you don’t need to do any technical step on your end but leave it to the experts.
Analyzify app provides more than only a Shopify GA4 integration.
Disclaimer: Analyzify & GA4.com belong to the same company, Solverhood. We are happy and proud to offer different solutions in the market.
Set up GA4 Using Shopify Customer Events
A Shopify & GA4 native integration has been long awaited. To make things easier, Shopify has released Shopify Customer Events & Shopify Pixels.
You can also manage all pixels from one place without using 3rd party scripts - using an open-source code block that allows Shopify & GA4 integration using Shopify Pixels.
It lets you monitor crucial e-commerce events such as:
- Product View
- Add-to-cart
- Begin checkout
- Added payment info
- Purchase
- Search performed
You can find the details and tutorials about how to set up GA4 on Shopify using Shopify Customer Events through this LinkedIn post.