When a Shopify store's purchase numbers in Google Analytics 4 (GA4) don't match its orders in Shopify, the gap usually gets explained away: "GA4 always underreports." Sometimes that's true. Sometimes GA4 is quietly counting the same order twice, or missing a whole class of orders because a tracking script stopped running months ago. Before Black Friday Cyber Monday (BFCM), when every ad budget decision leans on purchase data, it's worth knowing which of those you're looking at.
This guide is for ecommerce owners and agency teams who want to audit purchase tracking on Shopify: where purchase events come from now, how to spot duplicates and gaps, how to test with a real order, and how to compare GA4 with Shopify without expecting the two to match exactly.
Short answer: List every tool that can send a purchase to your GA4 property (the Google & YouTube channel, app pixels, custom pixels, Google Tag Manager, and any leftover theme or checkout code), make sure only one of them sends purchases to each measurement ID, place a test order and confirm exactly one purchase event arrives with the order's transaction ID, currency, value, and items, and then compare GA4 with Shopify by transaction ID rather than by totals alone.
Everything below reflects Shopify's Help Center and developer documentation and Google Analytics documentation as of October 29, 2026. Check the linked sources before you change your store.
Why purchase tracking deserves an audit now
Two dated changes make this a good time to check:
- Additional scripts are view-only. According to Shopify's Help Center guide to upgrading the Thank you and Order status pages, the additional scripts section in Checkout settings has been view-only since August 28, 2025.
- The non-Plus deadline has passed. The same page says August 26, 2026 was the deadline for stores on non-Plus plans to upgrade their existing Thank you and Order status pages. Shopify's guidance is to use app pixels to continue tracking customer events, and to recreate other customizations with blocks and web pixels.
If your purchase tracking used to live in additional scripts or in code on the old Thank you page, it's worth confirming what replaced it. If you also had apps loading scripts through script tags, our guide to Shopify script tag deprecation covers what to check there.
Where Shopify purchase events come from now
Shopify's pixels overview describes the Customer events section of the admin (Settings > Customer events) as the place to add and manage pixels that track customer events. A few points from that page and Shopify's developer documentation shape the audit:
- Two kinds of pixels. App pixels are installed by marketing and data apps. Custom pixels are added manually, usually by a developer, in the pixels manager.
- Where they load. Pixels load automatically on the storefront, checkout, Thank you page, and Order status page.
- They run in a sandbox. Pixels can't scrape the page for data or render interface elements. Shopify notes that you can run Google Tag Manager as a custom pixel, but tags it loads still run inside the sandbox with the same limits.
-
One purchase event per checkout. Shopify's developer reference for the
checkout_completedevent says it's triggered once for each checkout, typically on the Thank you page. If the store uses post-purchase upsells, it fires on the first upsell offer page instead and isn't triggered again on the Thank you page. If the page where it should fire fails to load, it isn't triggered at all.
For GA4 specifically, Shopify's Help Center on setting up Google Analytics 4 points merchants to the Google & YouTube sales channel, after which certain ecommerce events are tracked automatically. It also notes that Google Analytics can't track events while the online store is in private mode.
Step 1: Inventory every purchase sender
Start with a list, not a fix. In GA4, note the measurement ID of the web data stream you report on. Then look for everything that might send events to it:
- The Google & YouTube channel and which GA4 property it's connected to.
- App pixels in Settings > Customer events, especially analytics, attribution, and server-side tracking apps that offer their own GA4 integration.
- Custom pixels in the same section, including any Google Tag Manager container loaded as a custom pixel. Open each one and check what it subscribes to and where it sends data.
-
Theme code, such as a Google tag or Tag Manager snippet in
theme.liquidor a theme app embed. - Legacy checkout code still visible in the view-only additional scripts box or listed in your upgrade guide.
Write down, for each one, whether it sends a purchase event and to which measurement ID. This list is the observation. Don't remove anything yet: some of these may be sending other events you rely on, or feeding ad platforms rather than GA4.
Common leftovers to look for: an old GA4 or Universal Analytics snippet still in theme.liquid, the same purchase event fired both by the Google & YouTube app and by a custom pixel, and tracking scripts added to the old order status page that were never removed.
Step 2: Look for duplicates before you look for gaps
Google's guidance is direct on this. In Validate your ecommerce setup, Google says to use the Google tag (gtag.js) or Google Tag Manager, but not both, because using both will double count certain events. On Shopify, the equivalent risk is two senders reaching the same measurement ID: for example, the Google & YouTube channel plus a Tag Manager custom pixel that also fires a purchase.
Transaction IDs are the second check. Google's help article on minimizing duplicate key events with transaction IDs explains that GA4 deduplicates purchase events that share the same transaction ID, that this only works for web streams, and that you shouldn't send an empty string as the transaction ID, because GA4 will deduplicate all purchases with transaction_id="". That leads to two different failure modes:
- Two senders, different or missing IDs: both purchases can be counted, so GA4 can show more purchases or revenue than Shopify.
- The same ID reused, or an empty ID: real purchases can be dropped as duplicates, so GA4 can undercount.
In a GA4 exploration, list purchases by transaction ID for a recent date range. Repeated IDs, blank IDs, or IDs in two different formats (for example, an order number in one row and a long numeric ID in another) are observations worth noting. On their own they suggest where to look; they don't yet tell you which sender is responsible.
Step 3: Place a test order and watch it arrive
A test order turns guesses into evidence. Shopify's Help Center guide to testing custom pixels describes the Shopify Pixel Helper: from Settings > Customer events, open a custom pixel and click Test, then move through the store to see events such as page_viewed, product_viewed, product_added_to_cart, checkout_started, and finally checkout_completed. A few limits are worth knowing: it tests one custom pixel at a time, logs clear when you change pages, and it isn't compatible with headless stores or stores in private mode.
On the GA4 side, Google recommends the DebugView report, which shows each event-level and item-level parameter that Analytics collects. For the test purchase, check:
- Exactly one
purchaseevent arrives for the order. -
transaction_idis present, not empty, and matches the identifier you expect for that order. -
valueandcurrencyare both set. Google's ecommerce measurement guide recommends setting currency at the event level whenever you send value data. - The
itemsarray lists the products in the order.
Two testing details save time. Google notes that if the same ecommerce event is sent twice with the same transaction ID, GA4 keeps only the first one, so a repeat test with a reused ID may look like a failure when it isn't. And if your store requires consent in a region, Shopify notes that pixels only run once the required permissions are granted; the Pixel Helper may show "Pixel is awaiting consent" until you accept on the cookie banner.
Use your store's normal test-order method and follow your own process for cleaning up test orders afterwards, so they don't distort sales reports.
Step 4: Compare GA4 with Shopify, without expecting a perfect match
Shopify's Help Center page on analytics discrepancies lists reasons the two will differ: Google can only count visitors with JavaScript and cookies enabled, browser extensions can block Google Analytics, sessions and reloads are defined differently, and reporting time zones can differ. Consent settings add another layer, since pixels in markets that require consent run only when visitors have given the required permissions.
So a gap on its own isn't a diagnosis. A more useful comparison:
- Align the basics. Same date range, same time zone, and online store orders only, since a pixel won't see orders created outside the online store checkout.
- Compare counts by day. A steady gap is different from a gap that opens on a specific date. If it opens on a date, check what changed then: a theme publish, an app install or removal, a pixel edit, or a checkout upgrade.
- Match by transaction ID. Export a sample of Shopify orders and GA4 purchases for the same period. Orders missing from GA4 and transaction IDs appearing twice point to different problems.
- Look for patterns in what's missing. If missing orders cluster around a market, a payment method, a device, or a post-purchase upsell flow, that's a lead worth testing, not yet a conclusion.
If GA4 shows more purchases than Shopify has orders for the same scope, duplicates are a strong lead. If GA4 shows fewer, the cause could be consent, blocking, a broken sender, or several of these at once. Shopify-side numbers can shift too: the same discrepancies page explains that an icon appears on affected reports when a metric's definition has changed or data was disrupted, so check for those flags before comparing periods.
A simple way to explain it: Shopify records every order, while GA4 only records purchases from browsers that loaded the tracking and allowed it. Ad blockers, consent choices, orders from other channels and refunds all widen the gap, so the goal is a stable, explainable difference rather than a perfect match.
Step 5: Decide on one source and document it
Once you know what's sending purchases, the fix is usually a decision rather than new code: pick one sender for GA4 purchases per measurement ID, disconnect or reconfigure the others, and retest with a new order. Before you disconnect anything, confirm it isn't also sending events other teams depend on, such as ad platform conversions.
Then write it down: which tool sends purchases to which property, who can change it, and the date of the last successful test order. A short tracking note like this makes the next theme change, app install, or agency handover much easier to check.
If you need events Shopify doesn't provide as standard, such as specific clicks or form interactions, Shopify's pixels overview notes these require publishing custom events, because the sandbox can't scrape the page. That's development work worth scoping separately from the purchase audit.
A quick purchase tracking checklist
- Measurement ID noted for the GA4 web stream you report on.
- Every possible sender listed: Google & YouTube channel, app pixels, custom pixels, Tag Manager, theme code, legacy checkout code.
- Only one sender fires
purchaseto each measurement ID. - Thank you and Order status pages upgraded; nothing relies on additional scripts.
- Test order produces exactly one
purchasewith a non-emptytransaction_id,value,currency, anditems. - Consent behavior tested in the regions where you require consent.
- GA4 and Shopify compared by day and by transaction ID, with the same date range and time zone.
- Tracking setup documented with the date of the last successful test.
One check worth adding: place a real test order with a discount code in a non-default market or currency, and confirm that the purchase value, currency and transaction ID in GA4 match the Shopify order.
FAQ
Why does GA4 show fewer purchases than Shopify?
Some difference is expected. Shopify lists cookie and JavaScript requirements, browser blocking, session definitions, and time zones as reasons, and pixels in consent-required markets run only with the required permissions. A gap that appears suddenly on a specific date is worth investigating as a possible tracking change.
Why does GA4 show more purchases or revenue than Shopify?
Compare the same scope first. If GA4 still shows more, check for two senders reaching the same measurement ID and for purchases with different or missing transaction IDs for the same order.
Can I still add tracking code to Shopify's additional scripts box?
No. Shopify says the additional scripts section has been view-only since August 28, 2025. Shopify's guidance is to use app pixels or custom pixels for tracking.
Can I use Google Tag Manager on Shopify?
Shopify says you can run Google Tag Manager as a custom pixel, but tags it loads run inside the pixels sandbox with the same limits. If you also use the Google & YouTube channel, make sure the two don't both send purchases to the same GA4 property.
Want a second opinion on your tracking before BFCM?
Dominatecom is a Shopify Select Partner offering Shopify and Shopify Plus development, UX/UI, CRO, and analytics. We can review how purchase events reach GA4 on your store, what the numbers are and aren't telling you, and how that data feeds your conversion work. Dominatecom is led by Yuval Tsabari, a UX designer who combines analytics and consumer psychology.
We work with merchants directly and, on a white-label basis, with agencies. Scope, timing, and ongoing support are agreed as part of each engagement.
Talk to us about your analytics and CRO →
Related reading: Shopify script tag deprecation · Shopify conversion rate optimization in 2026 · What ongoing Shopify development should cover · Shopify development services
Sources
- Shopify Help Center: Non-Plus: Upgrading and replacing your Thank you and Order status pages
- Shopify Help Center: Pixels overview
- Shopify Help Center: Testing custom pixels
- Shopify Help Center: Setting up Google Analytics 4
- Shopify Help Center: Analytics discrepancies
- Shopify.dev: Web Pixels API standard events and checkout_completed
- Google Analytics Help: Minimize duplicate key events with transaction IDs
- Google for Developers: Validate your ecommerce setup (gtag.js)
- Google for Developers: Measure ecommerce
