You open GA4, check your purchase report, and see 47 purchases. You open your Shopify dashboard — 91 orders. Same time period. Where did the other 44 go?
Related Articles
- Google Ads Enhanced Conversions: Complete Setup Guide
- Shopify Meta Conversions API: Complete Setup Guide
- Tracking Explained: How Every Ad Platform Tracks Your Sales
- Free Tracking Audit Checklist: Is Your Ad Tracking Working?
This is one of the most common problems Shopify store owners face after switching to Google Analytics 4. The gap is usually between 30% and 50%, and most stores don’t even know it’s happening.
In this guide, we’ll explain exactly why Shopify GA4 purchase tracking breaks, how to check if yours is affected, and the step-by-step fix.
Why Is There a Gap Between GA4 and Shopify Orders?
There are three main reasons GA4 purchase tracking fails on Shopify. Most stores have at least one of them — many have all three.
1. Shopify’s Checkout Extensibility Broke Your Old Setup
In 2023–2024, Shopify migrated all stores from the old checkout.liquid template to a new system called Checkout Extensibility. The new checkout runs inside a sandboxed iframe — custom JavaScript, including your GA4 tag, can no longer be injected into the checkout pages.
If your GA4 setup relied on custom code inside checkout.liquid — or on a Google Tag Manager container that fired inside checkout — it stopped working silently the moment Shopify migrated you. No error, no warning.
2. Browser-Side Tracking Is Blocked
Even when your GA4 tag is correctly placed, it still misses purchases. Here’s why:
- iOS 17+ Intelligent Tracking Prevention: Apple blocks third-party scripts from loading on Safari, which holds 27–33% of mobile traffic.
- Ad blockers: Around 28% of desktop users have an ad blocker that prevents Google’s analytics script from running.
- VPNs and privacy browsers: Brave, Firefox with strict settings, and many VPNs block analytics by default.
The result: even a perfectly configured browser-side GA4 tag will miss 20–40% of real purchases before any setup issues are considered.
3. Duplicate or Misconfigured GA4 Tags
Shopify gives you multiple places to add a Google Analytics tag — and many stores accidentally add it in more than one place. Common duplicate sources:
- Google & YouTube channel app (Shopify App Store)
- Shopify Admin → Online Store → Preferences → Google Analytics field
- Theme code (theme.liquid or layout files)
- Google Tag Manager container on the site
- A separate analytics or tracking app from the App Store
If GA4 shows significantly more purchases than Shopify — that’s the duplicate problem. If it shows fewer, your tag is either missing, blocked, or broken by Checkout Extensibility.
How to Check If Your Shopify GA4 Tracking Is Broken
Before fixing anything, confirm the problem:
- Open GA4 → Reports → Monetisation → Ecommerce purchases
- Set the date range to the last 30 days
- Note the total “Item purchases” or “Transactions” count
- Open Shopify Admin → Analytics → Reports → Sales over time
- Set the same 30-day date range
- Compare the order counts
What the numbers mean:
- GA4 within 5–10% of Shopify → tracking is healthy
- GA4 shows 20–50% fewer → Checkout Extensibility or browser blocking
- GA4 shows more than Shopify → duplicate tags firing
How to Fix Shopify GA4 Purchase Tracking
Step 1: Remove All Duplicate GA4 Tags
Before adding anything, remove every existing GA4 implementation except one. Check these locations:
- Shopify Admin → Online Store → Preferences: Clear the Google Analytics field if it has a UA or GA4 ID
- Theme code editor: Search for “G-” or “gtag” in theme.liquid and remove any GA4 snippets
- App Store apps: Check which apps send GA4 data and disable duplicates
- GTM container: Check if GTM has a GA4 tag AND the site also has GA4 loaded directly
Step 2: Use the Official Google & YouTube Channel App
Shopify’s official Google & YouTube app is the only method that works correctly with Checkout Extensibility. It uses Shopify’s Web Pixel API — a sandboxed tracking layer that Shopify built specifically to work inside the new checkout.
- Go to the Shopify App Store and install Google & YouTube
- Connect your Google account and select your Google Analytics 4 property
- Set conversion events (purchase is enabled by default)
- Complete the onboarding — the app will handle the Web Pixel configuration automatically
This setup will send purchase events from inside the checkout, including the thank-you page, using Shopify’s official API rather than custom JavaScript injection.
Step 3: Verify in GA4 DebugView
After setting up, confirm it’s working:
- In GA4, go to Admin → DebugView
- Install Google Tag Assistant browser extension
- Enable debug mode on your store URL
- Place a test order (use a test payment method or a real order you’ll refund)
- Watch for the
purchaseevent in DebugView
If you see the purchase event appear in DebugView, your basic setup is working. The 30-day comparison test from earlier will give you an accurate read on overall capture rate after a few weeks.
Going Further: Server-Side Tracking for Shopify
The Google & YouTube app’s Web Pixel method is browser-side — meaning it still gets blocked by iOS, ad blockers, and privacy browsers. It’s the right starting point, but it has a ceiling.
For stores spending $5,000 or more per month on ads, the next step is server-side tracking via Shopify webhooks:
- When a purchase is completed, Shopify sends an order webhook from its own servers
- Your server receives the webhook and forwards the purchase data to GA4 using the Measurement Protocol
- This happens completely server-to-server — no browser, no ad blocker, no iOS restriction can interfere
- Capture rate: 95–99% of purchases, compared to 60–75% with browser-side only
Server-side tracking combined with browser-side Web Pixel — with proper event deduplication — gives you the most complete picture of your Shopify store’s performance in GA4.
Quick Summary
| Problem | Cause | Fix |
|---|---|---|
| GA4 shows 30–50% fewer purchases | Checkout Extensibility broke old setup | Use Google & YouTube app (Web Pixel) |
| GA4 shows more purchases than Shopify | Duplicate tags firing | Remove all duplicate GA4 sources |
| Still missing 20–30% after fix | Browser blocking (iOS, ad blockers) | Add server-side tracking via webhooks |
Need Help Setting Up Shopify GA4 Tracking?
Getting GA4 purchase tracking right on Shopify is more involved than it looks — especially after the Checkout Extensibility changes. If you’re not confident in your setup or you’re still seeing a big gap between GA4 and Shopify orders, we can audit your tracking and fix it properly.
Book a free tracking audit → We’ll check your GA4 setup, identify exactly where purchases are being lost, and put together a fix plan for your store.