Knowing how to set up Google Analytics 4 is the difference between guessing where your sales come from and seeing the actual paths customers take before they buy. This guide walks through the plain steps for a small online shop, with a focus on GA4 for Shopify. By the end you will have GA4 ecommerce tracking running and know which reports are worth your time.
What GA4 Tells You That Shopify's Own Reports Do Not
Shopify's built in analytics show you orders, revenue and which products sold. Google Analytics 4 adds the layer Shopify cannot: where visitors came from, what they did before buying and where they dropped off. For a small business, that context turns a sales report into a plan.
Google Analytics for small business use cases include:
- Seeing which marketing channel, organic search, paid ads, email or social, actually drove a purchase
- Finding the pages that lose shoppers before checkout
- Understanding how long it takes a first time visitor to become a customer
- Comparing behaviour between new and returning visitors
Shopify tells you what happened. GA4 tells you how it happened.
How to Set Up Google Analytics 4: The Plain Steps
Before you start
You need two things:
- A Google account you can use for your business, not a personal one you might lose access to
- Admin access to your online store, so you can install the Google & YouTube sales channel on Shopify
No coding is required on Shopify.
Create the account, property and web data stream
Go to analytics.google.com and sign in with your Google account.
- Create an account. Give it your shop name.
- Create a property. Name it after your store, choose your reporting time zone and set the currency to match your shop.
- Add a web data stream. Enter your website address, for example yourstore.com.
Once the stream is created, open the stream details. You will see a Measurement ID that starts with G-. Keep a note of it. Shopify's Google channel connects the property for you, but other platforms ask you to paste this ID.
Connect GA4 to Shopify through the Google & YouTube channel
On Shopify, the connection happens through the Google & YouTube sales channel. If you have not installed it yet, add it from the Shopify sales channels list.
Follow Google's setup flow inside that channel. When prompted, connect the GA4 property you just created. Shopify then tracks certain ecommerce events automatically, including product views, add to cart and purchases.
One important note: Shopify does not track events while your online store is in private mode. Make sure your store is not in private mode before you test.
If you use WooCommerce, BigCommerce or another platform, follow that platform's own guide for adding the GA4 Measurement ID. The Google Analytics side is the same; only the installation step changes.
Check GA4 is working with the Realtime report
Open your GA4 property and go to Reports, then Realtime. In another tab, visit your shop and click around a product page or two.
Within a short time you should see your own visit appear in the Realtime report. If you see activity, the connection works. If you see nothing, check that your store is not in private mode and that the Measurement ID was saved correctly.
Set Up Key Events for the Actions That Matter
GA4 records many events out of the box, but not all of them are marked as key events. Key events are the actions that matter most to your business. In GA4, you can mark an existing event as a key event, and you can also use key events to create conversions for Google Ads.
For a small shop, the events worth marking as key events include:
- purchase
- add to cart
- any sign-up event your setup sends, if you collect emails
You mark an existing event as a key event in GA4's admin settings. You do not need to create new events for the standard Shopify actions listed above. The events arrive once the connection is live.
The GA4 Reports Worth Checking Each Week
You do not need to live in GA4. Three reports cover most small shop decisions.
- Traffic acquisition: Reports, Acquisition, Traffic acquisition. See which channels bring visitors and which bring buyers.
- Pages and screens: Reports, Engagement, Pages and screens. Spot the pages that hold attention and the ones that bounce.
- Ecommerce purchases: Reports, Monetisation, Ecommerce purchases. Check revenue, items purchased and which products drive the most value.
A simple weekly routine: open these three reports, note any channel that changed by more than a small margin, and look at the top five landing pages. That is enough to spot a problem before it becomes a trend.
Why GA4 and Shopify Numbers Will Not Match Exactly
You will notice that GA4 revenue and Shopify revenue are rarely identical. That is normal and expected. The two platforms count differently.
Shopify records an order when it is placed in the store, including orders that are later refunded or cancelled. GA4 records a purchase event when the tracking fires, which can be blocked by ad blockers, cookie consent choices or a visitor leaving before the confirmation page loads. Time zones and currency rounding also create small gaps.
The goal is not a perfect match. The goal is a consistent difference. If the gap stays roughly the same from week to week, your tracking is probably fine. If the gap suddenly widens, check your theme, your consent banner or your checkout settings.
For a broader health check, see this 30 point Shopify store audit checklist.
Cookie Consent for UK Shop Owners
If you sell to UK visitors, you need to think about consent for analytics cookies. The rules change and the guidance is updated regularly, so do not rely on a blog post for a legal answer. Check the Information Commissioner's Office current guidance for analytics cookies before you decide how to configure your consent banner.
The practical point: if you ask for consent before GA4 loads, some visitors will not be tracked. That is fine. It just means your GA4 numbers will be slightly lower than Shopify, which records server side orders regardless of consent.
A Quick Setup Checklist
| Step | Where | What to check |
|---|---|---|
| Create GA4 property | analytics.google.com | Measurement ID starts with G- |
| Connect to Shopify | Shopify admin, Google & YouTube channel | Channel shows connected property |
| Test tracking | GA4 Realtime report | Your visit appears within seconds |
| Mark key events | GA4 Admin, Events | purchase and add_to_cart marked as key events |
| Review weekly | Traffic acquisition, Pages, Ecommerce purchases | Channels and landing pages change as expected |
From Setup to a Clearer View of Your Store
Once GA4 is running, the next question is what to do with the data. A single analytics tool only tells part of the story. Your store, your email tool, your ad accounts and your GA4 property all hold pieces of the same picture.
Ergora connects Google Analytics 4 as a live integration, alongside Shopify, Klaviyo, Meta Ads, Google Ads and the other tools you already use. When GA4 is connected, the Insights screen shows Google Analytics next to your store, email and ad accounts, and Store Analytics brings revenue, conversion rate and top products into one view. You can read more about turning GA4 data into plain English insights and see how all your store data comes together in one place.
Ergora also runs AI Forecasts on Google's TimesFM, the 200M model, on its own servers. Once a metric has at least six months of monthly history, you get a six-month outlook for organic web traffic from Google Analytics with an 80% confidence band. That is not a replacement for weekly checking, but it gives you a forward view without building a spreadsheet.
Ergora is available to businesses in the UK and internationally. A seat plan starts at $99 a month, the Ecommerce pack is added for $59 a month, and the only offer is 50% off the first month plus a 30-day money-back guarantee. See Ergora pricing for the full breakdown.
Frequently asked questions
How do I set up Google Analytics 4 on Shopify?
Create a GA4 property and web data stream at analytics.google.com, copy the Measurement ID that starts with G-, then install the Google & YouTube sales channel in Shopify and follow Google's connection flow. Shopify then tracks events such as product views, add to cart and purchases automatically. Test with the Realtime report while your store is live, not in private mode.
What is a GA4 measurement ID?
A Measurement ID is a short code that starts with G- and identifies your GA4 web data stream. You copy it from the stream details in Google Analytics and paste it into your platform, such as Shopify's Google & YouTube channel, so that visitor data flows to the correct property.
Why is GA4 not showing data for my store?
Common reasons are that your store is in private mode, the Measurement ID was not saved correctly, or your consent banner blocks GA4 before it loads. Check the Realtime report while visiting your live store, and confirm the Google & YouTube channel shows a connected GA4 property. Ad blockers on your own browser can also hide your test visit.
Why don't GA4 and Shopify numbers match?
Shopify records orders when they are placed, including refunds and cancellations, while GA4 records a purchase event only when tracking fires on the confirmation page. Ad blockers, cookie consent choices and visitors leaving early all reduce GA4 counts. A small, consistent gap is normal; a sudden widening gap suggests a tracking problem.
What are key events in GA4?
Key events are the actions you mark as most important to your business, such as purchase, add to cart or begin checkout. In GA4 you mark an existing event as a key event in the Admin section. Key events can also be used to create conversions for Google Ads.
Is Google Analytics 4 free?
Yes, the standard version of Google Analytics 4 is free to use, and a small shop does not need a paid version to track ecommerce events. Your main cost is the time to set it up and check it.