Google Analytics 4 is essential for measuring the performance of your Shopify store. It is a free and most commonly used analytics tool in general.
You probably know all that, and you are here because setting it up is not as simple as it seems.
But don’t worry, you came to the right place! The Bloggle team has more than five years of marketing and technical experience with Shopify, and we will guide you through the Shopify Google Analytics 4 install process.
If you follow our tips, you will add Google Analytics to Shopify in no time!
There are several ways to implement Google Analytics 4 on Shopify, and two of them are very popular:
Before jumping into adding GA4 to Shopify, you need to create GA4 property first, and we will explain how to do it in detail in the upcoming section. If you already have a Google Analytics 4 account, you can skip the next section entirely.
1. First, you need to go to analytics.google.com and click on “Start measurement”. Give the name of the account you will use.
2. Next, you will need to name the property. The property name can be whatever you want, but it is best to name it after your brand or website.
3. After that, choose the country in which your company is located, the reporting time zone, and the main currency in which your company operates.
4. After clicking the “Next” button, you will see several simple questions you need to answer, and after that, you should select your business objectives. Be careful at this step, because the reports you will have in the interface will also change. If you never tracked data in this business before, we recommend selecting “Get baseline reports”.
5. After that, click “Create”.
6. Next, you will have to choose a platform for your data source. There is three available:
Since you are running a Shopify store, you should select “Web”.
7. Then, you must enter the URL of your website, and then the name of your website.
8. When you do that, you can opt for enabling Enhanced Measurement. Enhanced Measurement was created to help the owners get as many events in the report as possible. We recommend using it.
Enhanced Measurement tracks these events if enabled by default:
Optionally, you can disable and enable events manually by clicking the cogwheel icon in the bottom right of the Enhanced Measurement card and clicking the toggle buttons.
9. After you select everything you want, press the “Create Stream” button.
We already mentioned that you could choose two paths for Shopify GA4 integration.
If you want the simplest possible Shopify GA4 setup, you should opt for the Google & YouTube Shopify app, which can automatize most of the process and it will work completely fine for users that need only the basic tracking options.
However, if you need more extensive and detailed tracking, you should opt for Google Tag Manager.
Adding Google Analytics to Shopify with Google Tag Manager is harder and requires more technical skills, but it is a recommended way of doing it.
In the next part of the article, you will be able to see a step-by-step guide on Google Tag Manager which will be enough for you to set it up yourself.
Of course, if you are feeling overwhelmed, you can always pay a specialist to do it for you.
The easiest way to add Google Analytics 4 to Shopify is with Google & YouTube Shopify app. This method is proven and tested by dozens of Shopify merchants we had as clients of our Shopify agency. It worked well for the majority of users.
To connect GA4 with Shopify, first, of course, you need to install the app. You can just Google it (or click our link above), or install it through your Shopify admin.
After you install the app, you can set it up in several simple steps:
1. Connect Google Account
2. Connect your GA property
You should see your unique code in this field, and click “Connect”. And that’s it! Much simpler than Google Tag Manager, but also much less customizable. This Shopify app tracks these events by default:
This is enough for most users, but if you want to customize, add more events, and set up even deeper tracking, then manual configuration of Google Tag Manager is the way to go.
If you head over to GA4 Realtime reports right after you finish the installation and see nothing, do not worry. It takes from a few hours up to a full day to see data coming in GA4.
If you still don’t have a Google Tag Manager account, you obviously need to create it. And if you are not sure why is it needed, it can be super beneficial for your store:
However, these options are super technical and it usually takes a developer to handle it. Nevertheless, it is worth paying a professional to implement it, because they will certainly pay off. There are other options as well, Elevar, as a strong conversion tracking software, and Analyzify, which is a data-analytics app. Both tools will handle manual installation for merchants.
If you want to continue with the manual integration of GA4 to Shopify with Google Tag Manager, this is how you’ll do it:
1. Head over to tagmanager.google.com and create a new account.
2. Name it, and select “Web”, like you did when you were creating a GA4 account.
3. After that, your GTM is ready, and in the next step you will see something similar to this:
Now you can add this code to your Shopify store.
4. Go to Shopify admin, select “Online store”, and then “Themes”
5. After that, click on the “Customize button”, and then “Edit code”
6. Click on the “theme.liquid
7. Copy the first tracking code from your GTM, and paste it into the <head> section of theme.liquid, right below the meta tags:
8. Go back to your GTM again, and now copy the second code. At the theme.liquid file find a <body> tag, and paste this code right after it:
Click save and you finished this part of the setup. Now, we need to connect Google Analytics to Google Tag Manager.
1. Get back to the GTM container, go to “Tags” and then click “New”
2. Select “Google Tag”
3. Put the measurement ID from Admin > Data Streams > Your data stream here
4. Add a “trigger” from the triggering section, and select “Initialization – All Pages” as the trigger
5. Name your Google Tag and click “Save”.
And, you successfully implemented the Google Tag. Now, you will start seeing GA4’s automatically collected events.
GA4 is a versatile and free tool, that is deemed essential for every Shopify merchant. However, some of the analytics you have access to are possibly lacking depth and you need more data presented by your tools in order to run a profitable business.
Several Shopify apps can integrate with GA4 and give you even more clarity and depth than Google Analytics itself:
By integrating some of these tools with your GA4, you will get even more than just using this free tool provided by Google as is. More experienced merchants and website owners know that in the past Google tools were almost enough to run your business, without the necessity of installing premium, upgraded versions of these free tools, but now the options within GA4 are more limited than before, and if you should opt for integrating some of the above-mentioned premium tools with it.
Google Analytics 4 is like a starter pack for analyzing your business efforts through the Shopify store.
Amplifying it with other tools we mentioned is needed for getting the most out of your store statistics.
However, it is not the fact that GA4 is free which makes it crucial. If you never used any analytics software, after installing GA4 you should see a massive change in running your business.
First of all, you will have your full website history in the palm of your hand. If you start running ads, you will be able to implement the data from your store history to create the target audiences you need to target, in order to scale up your business.
GA4 is also the only platform that you can use to get conversions for Google Shopping and Google Ads platforms so this is a must-have for any merchant.
After integrating, you can verify the setup by visiting your website and checking the Real-Time report in Google Analytics to see if your visit is recorded. Additionally, use Google Tag Assistant to ensure the tracking code is firing correctly.
In 2024, it is recommended to use Google Analytics 4 (GA4) for better tracking and enhanced features. GA4 offers more advanced data collection and analysis capabilities compared to the older Universal Analytics.
Using Google Analytics helps you understand your store's traffic, customer behavior, and sales performance. This data can guide your marketing strategies and improve your store's overall effectiveness.
GA4 integration with Shopify is essential for growing your e-commerce business. With so many tracking options available and the fact it is free, GA4 is a great option, especially for new business owners.
Integration via Google Tag Manager is recommended by the Bloggle team because it allows flexibility and more precise tracking, but if you just need the basic package, integrating GA4 with Shopify through the Google & YouTube Shopify app is perfectly fine as well.
It’s time to awake your sleeping blog.
Try Bloggle
Alternatives