Quick summary
Covers connecting GA4 to Shopify via the Google and YouTube Sales Channel, Elevar, or manual gtag, what the default setup tracks versus what it misses, verifying key ecommerce events, and which reports actually matter for merchant decisions. Written for Shopify merchants who want accurate data rather than just a working installation.
Most Shopify stores have GA4 installed. Fewer have it set up correctly. There is a significant difference between a GA4 tag firing on your pages and GA4 actually tracking your ecommerce funnel with reliable data.
If your purchase events are not verified, your referral exclusions are not configured, or you have duplicate tags running, every report you are reading is wrong to some degree. Decisions made on bad data lead to misspent budget and missed optimisation opportunities.
This guide covers the complete setup, what the default installation misses, the events you must verify, and the reports worth using.
How do you connect GA4 to Shopify?
There are three main methods. Which you choose depends on your technical setup and how much tracking control you need.
Method 1: Google and YouTube Sales Channel (simplest)
The Google and YouTube Sales Channel is Shopify's native integration with Google's marketing stack. It installs the GA4 tag automatically and sends standard ecommerce events.
- In your Shopify admin, go to Sales channels and add the Google and YouTube channel
- Open the channel settings and connect your Google account
- Link your GA4 property (or create a new one if needed)
- Shopify adds the GA4 tracking code to your storefront and begins sending standard events
This method handles tag installation without touching your theme code. It sends view_item, add_to_cart, and purchase events automatically. For most merchants on standard Shopify plans, this is the right starting point.
The limitation: checkout events (begin_checkout, add_payment_info, add_shipping_info) require additional configuration because Shopify's checkout runs on a separate domain.
Method 2: Elevar (recommended for accuracy)
Elevar is a tracking platform built specifically for Shopify that sits between your store and your analytics and advertising tools. It handles server-side tracking, consent management, and ecommerce event accuracy in one package.
Pricing starts at around $50/month. For merchants running Google Ads, Meta Ads, or TikTok Ads alongside GA4, the investment pays back quickly in more accurate conversion data and better ad optimisation.
Elevar sends a more complete set of ecommerce events than the native Sales Channel integration, handles the checkout tracking problem on non-Plus stores, and reduces the data loss caused by ad blockers and browser privacy restrictions through server-side event sending.
Method 3: Manual gtag or Google Tag Manager
For merchants who want full control, installing the GA4 tag manually via the theme or through Google Tag Manager (GTM) is the most flexible approach.
With GTM:
- Create a GTM account and container at tagmanager.google.com
- Add the GTM container code to your
theme.liquidfile, inside the<head>tag and immediately after the opening<body>tag - In GTM, create a GA4 Configuration tag with your Measurement ID (G-XXXXXXXXXX), triggered on All Pages
- Publish the container
GTM is the right choice when you are also managing Meta Pixel, TikTok Pixel, or other tracking tags. Managing all tags from one place is simpler than editing your theme for each one. The trade-off is more initial setup work.
What does the default GA4 setup miss?
Installing a GA4 tag gives you pageviews and session data. For a Shopify store, that is not enough.
Checkout events: the standard Sales Channel integration does not send begin_checkout, add_payment_info, or add_shipping_info events on non-Plus stores. You cannot see where in the checkout customers drop off without these events.
Referral exclusions: GA4 often attributes orders to shopify.com as the traffic source because customers briefly visit the checkout domain. This corrupts your channel attribution, making organic, paid, and email traffic appear to contribute fewer sales than they actually do.
Fix this in GA4 under Admin, then Data Streams, then Configure tag settings, then List unwanted referrals. Add shopify.com and checkout.shopify.com.
Duplicate tags: many stores have both the Sales Channel tag and a manually installed tag running simultaneously, counting every event twice. Check Admin, then Data Streams, then Configure tag settings, then Connected site tags. If your Measurement ID appears more than once, clean it up.
Consent mode gaps: if your cookie consent banner does not block GA4 for non-consenting users, you are collecting data without consent (a UK GDPR issue). If it does block GA4, you are missing data from users who decline. Consent mode configuration in GTM allows modelled conversion data for non-consenting users, partially recovering this gap.
Which ecommerce events must you verify?
These events are the minimum for useful ecommerce reporting:
| Event | What it tracks | How to verify |
|---|---|---|
view_item |
Product page views | Browse a product in DebugView |
add_to_cart |
Add to cart actions | Add item to cart in DebugView |
begin_checkout |
Checkout initiated | Start checkout in DebugView |
purchase |
Completed order | Place test order, check DebugView |
For each event, verify not just that it fires but that the data it sends is correct. A purchase event must include: transaction_id (matching the Shopify order number), value (the correct order total), currency (GBP), and an items array with the products, prices, and quantities.
How to verify using DebugView:
- Install the Google Analytics Debugger Chrome extension
- Enable it and visit your store
- In GA4, go to Admin, then DebugView
- Interact with your store: view a product, add to cart, begin checkout, complete a test order (use a 100% discount code)
- Every event appears in real time with all parameters visible
This is the only reliable way to confirm your tracking is accurate. Checking the Realtime report tells you events are firing but not whether the data inside them is correct.
What does GA4 track that Shopify Analytics does not?
Shopify Analytics and GA4 measure overlapping but distinct things. Understanding the difference tells you when to use each.
Shopify Analytics is better for:
- Accurate revenue and order data (uses confirmed payment data, not browser events)
- Product performance and variant-level sales
- Customer behaviour over time (returning vs new)
- Financial reporting
GA4 is better for:
- Traffic source attribution (which channels drive sessions and conversions)
- Funnel analysis (where customers drop out of the purchase flow)
- Audience building for Google Ads remarketing
- User behaviour data (scroll depth, engagement, time on page)
- Cross-device journeys
Use Shopify as your financial source of truth. Use GA4 for marketing and conversion analysis. Discrepancies between the two are normal and expected: GA4 misses sessions blocked by ad blockers or cookie rejections, while Shopify counts every confirmed order regardless of how the session was tracked.
Which GA4 reports matter most for Shopify merchants?
Acquisition report
Found under Reports, then Acquisition, then Traffic acquisition. This shows which channels (organic search, paid search, email, direct, social) are driving sessions and, more importantly, which are driving purchases.
The key column to add: key event rate for purchase. This tells you not just which channels send traffic but which channels send traffic that actually converts.
Conversion paths report
Found under Advertising, then Conversion paths. This shows the sequence of touchpoints before a purchase. It is the most useful report for understanding whether a channel that looks like it does not convert is actually assisting conversions that another channel gets credit for.
If email consistently appears as an assist touchpoint before paid search converts, your email programme is contributing more value than last-click attribution shows.
Retention report
Found under Reports, then Retention. Shows the percentage of new users who return to your store in the days and weeks after their first visit. The benchmark for ecommerce retention is that most stores retain fewer than 10% of users after 30 days. If yours is materially lower, customer lifetime value is a problem worth addressing.
Funnel exploration
Found under Explore, then Funnel exploration. Build a funnel from view_item through add_to_cart, begin_checkout, and purchase. The drop-off percentage at each step tells you where to focus conversion work.
A typical benchmark: 5 to 15% of product page viewers add to cart, 30 to 60% of cart adds begin checkout, and 60 to 80% of checkouts complete. If your numbers are significantly below these, each step has a specific optimisation focus.
Key actions to take now
- Verify your GA4 installation method and check for duplicate tags. Two tags firing means every metric in your reports is inflated.
- Add
shopify.comandcheckout.shopify.comto your referral exclusion list. This is one of the most commonly missed configuration steps. - Place a test order using a 100% discount code and verify the
purchaseevent in DebugView. Confirm that the transaction ID, value, and items data are all correct. - Mark
begin_checkoutandadd_to_cartas key events in GA4 alongsidepurchase. These funnel events are essential for identifying where customers drop off. - Link GA4 to Google Ads if you are running paid campaigns. Without this link, you cannot optimise bids based on actual purchase conversion data.
- Link GA4 to Google Search Console for organic search query data inside GA4 reports.
- If you are on Shopify Plus or running significant ad spend, evaluate Elevar for more complete checkout tracking and server-side event accuracy.
Frequently Asked Questions
Should I use the Google and YouTube Sales Channel or Google Tag Manager for GA4?
For most merchants on standard Shopify plans, the Sales Channel is the simpler starting point. GTM is the better choice when you need to manage multiple tracking tags from one place, when you have custom events to track beyond the standard set, or when your Shopify Plus checkout needs custom tracking code. If you are unsure, start with the Sales Channel and migrate to GTM when you have a specific reason to do so.
Why does GA4 show different revenue than Shopify Analytics?
This discrepancy is normal and expected. GA4 records revenue when the tracking event fires in the browser. Shopify records revenue based on confirmed payment and order status. Returns, cancellations, failed payments, and sessions blocked by ad blockers or cookie rejection all create gaps. Use Shopify as your financial source of truth and GA4 for marketing channel and behaviour analysis.
How long does it take for GA4 data to show in reports?
Standard GA4 reports update with a 24 to 48 hour delay. The Realtime and DebugView reports show data within seconds. For day-to-day trend analysis, the delay is normal. For troubleshooting tracking issues, use DebugView rather than waiting for standard reports to update.
Is GA4 GDPR compliant for UK stores?
GA4 can be configured to meet UK GDPR requirements, but the default installation is not compliant on its own. You need a consent management platform that actively blocks GA4 from loading for non-consenting users, and you should configure GA4's data retention settings (under Admin, then Data Settings) to the minimum period you need. After Brexit, UK stores operate under UK GDPR, which has broadly similar requirements to EU GDPR. Do not assume your cookie banner is doing the job without verifying it actually blocks the tracking scripts.