What changed on the Thank you page
For years, purchase tracking on a Shopify store lived on the order confirmation page. Someone pasted a Google or Meta snippet into the additional scripts box, or an app added a script tag, and every completed order fired a purchase. That route has gone.

Shopify switched off checkout.liquid and the additional scripts on the Thank you and Order status pages on 28 August 2025. Script tags on those pages were switched off on 28 August 2025 for Plus stores and on 26 August 2026 for non-Plus stores, and affected stores must upgrade to Checkout Extensions (Shopify, checkout.liquid).
Nothing errors when this happens. The order goes through, the customer gets a confirmation and the purchase simply never reaches GA4 or Google Ads. That is why the gap so often starts on one particular day. If your purchases fell away around one of those dates, you have probably found the reason.
The replacement is Shopify's pixels. They are added and managed in the Customer events section of the admin, and they load automatically on the storefront, checkout, Thank you page and Order status page (Shopify Help Center, Pixels overview).
First, work out which kind of gap you have
Three different faults look alike in a monthly report: purchases missing, purchases counted twice, and purchases counted on a different day or under a different rule. Each has a different fix, so sort out which one you have before changing anything.

- Treat Shopify's orders as the reference figure. Export daily orders for the last 30 days. A Shopify Community post on comparing Meta and Shopify suggests using the Online Store channel only, without test and cancelled orders, which is a sensible rule for any comparison.
- Put GA4 purchases for the same days next to it, and check both are in the same time zone. The time zone for Shopify is under Settings > General.
- Read the shape. Purchases dropping to near zero from one date points to a tracking route that stopped. Purchases roughly doubling from one date points to two things sending the same sale. A small daily wobble that evens out over a week is usually reporting, not a fault.
Then place one test order and write down its order number. Every check below follows that single order through each system.
Check what is loaded under Customer events
Open Settings > Customer events. You will see two kinds of pixel. App pixels are installed by marketing and analytics apps; custom pixels are code someone has added by hand in the pixels manager (Shopify Help Center).
Shopify runs them differently. App pixels run in a strict sandbox using web workers. Custom pixels run in a lax sandbox, an iframe, and traditional JavaScript placed there cannot access the top frame (Shopify, About web pixels). This catches a lot of stores out. An old Thank you page snippet that read values from the page around it can be pasted into a custom pixel, load without complaint and send nothing useful. Shopify strongly recommends installing apps rather than creating custom pixels, for greater integration (same page).
In the list, check three things:
- Is there a pixel sending purchases to GA4 at all? Many stores lost their only purchase tag on the switch-off date and nobody added a replacement.
- Is there more than one? A Google app pixel plus a custom pixel added in a hurry during the switch is a classic cause of doubled purchases.
- If there is a custom pixel, what does it listen for? Purchases should come from the
checkout_completedevent.
Know how that event behaves. Shopify says it is triggered once for each checkout, typically on the Thank you page. With upsells and post-purchase offers it is triggered on the first upsell offer page instead, and not again on the Thank you page. If the page where it should fire fails to load, it is not triggered at all (Shopify, checkout_completed). So a custom pixel written to wait for the Thank you page will miss orders that pass through a post-purchase offer. If your missing purchases line up with an upsell app being switched on, look here first.
Confirm the GA4 purchase event carries the right data
A purchase can arrive in GA4 and still be merged away or reported oddly. Check the parameters on your test order against Google's rules.
transaction_id. Use the order number. Google says the ID must be unique for each order, should not be reused across different users and must not contain anything that identifies a customer. Never send an empty string: GA4 deduplicates all purchase events with transaction_id="", and sending the same ID for different transactions can significantly undercount (Google Analytics Help, Minimize duplicate key events with transaction IDs). A pixel that fails to read the order number and sends a blank will have its purchases deduplicated together and undercounted.
value and currency. Google says to set value to the sum of price times quantity for the items, and not to include shipping or tax. If you send value, send currency as a three-letter ISO 4217 code so revenue is computed accurately (Google, Recommended events). A setup that follows this will show lower revenue in GA4 than Shopify's total sales. That is expected; compare order counts, not revenue, when you are hunting for missing purchases.
Now verify the test order:
- DebugView. Enable debug mode, place the order, then open Admin > Data display > DebugView. Click the
purchaseevent to see each parameter, and the items tab for the products (Google, Set up a purchase event). - Realtime. Under Reports > Realtime, the Event count by Event name card shows events triggered in the last 30 minutes (Google, About events).
- Wait. Google says purchase data reaches standard reports, explorations and the API after about 24 hours (Google, Set up a purchase event). Do not change the setup again after an hour because the report still looks empty.
If the event never appears, Google's validation guide lists the usual reasons: syntax errors such as a missing comma, which makes Analytics ignore that event and any after it; events placed before the Google tag; the wrong event name; and duplicate transaction IDs.
When purchases are counted twice
Doubling nearly always means two routes are sending the same sale. Google's own advice is to use only one Google tag or one Google Tag Manager instance per page to avoid duplicate ecommerce events (Google, Validate your ecommerce setup).
The second tag is often left over from an app you no longer use. Uninstalling an app does not always remove its code: snippets, app blocks and script tags can stay behind and keep loading. Check three places:
- the theme's snippets and layout files for an old gtag or Tag Manager include
- Online Store > Themes > Customise > App embeds for anything still switched on
- the browser's network tab on a product page, looking for two requests to the same tag ID
Remove leftovers on a duplicate of your theme first, check that page views and add to carts still record, then publish. GA4 will merge two purchases that share a correct transaction ID, but that is a safety net, not a reason to leave two tags running.
Why Google Ads and GA4 will not show the same number
Once GA4 matches Shopify, Google Ads will still disagree, and some of that is by design.

Different dates. Google Ads calculates its primary conversion columns by the time of the click, not the time of the conversion. A click last week that converts this week is reported against last week (Google Ads Help, Understand your conversion tracking data). When you compare with GA4 or Shopify, add the Conversions (by conv. time) or All conv. (by conv. time) columns (Google Ads Help, Data discrepancies).
Different credit. Data-driven is the default attribution model for most conversion actions in Google Ads (Google Ads Help, About attribution models). GA4's attribution reports offer data-driven, paid and organic last click, and Google paid channels last click (Google Analytics Help, Get started with attribution). The same order can be credited differently in each.
Expected size of the gap. Google says discrepancies, often up to 20%, are expected, and that reporting lags can take 24 to 48 hours (Google Ads Help). After significant changes or account linking it can take up to 7 days for conversion data to appear fully (Google Ads Help, Data discrepancies). So after fixing the pixel, judge Google Ads on a week of data compared by conversion time, not on the next morning's numbers.
Comparing Meta with Shopify
Meta stores often run the browser Pixel and the Conversions API side by side. Meta only treats them as one purchase when the IDs and names match: the Pixel's eventID must equal the server's event_id, and the Pixel's event must equal the server's event_name (Meta, Handling Duplicate Pixel and Conversions API Events). Meta suggests the order number as the ID for purchases (Meta, Original Event Data Parameters). Matches sent within 48 hours of each other are counted once, and when the two arrive within 5 minutes Meta favours the browser event (Meta, Server Event Parameters).
The Shopify Community post mentioned earlier gives a practical 30-day check. It is a community post rather than official documentation, but the method is sound:
- export daily purchases from Ads Manager using 7-day click only, and daily Online Store orders from Shopify, with matching time zones
- small, steady differences are normal, because Meta attributes later purchases to ad interactions and may date them by the interaction, while Shopify records every order by order date
- a sudden doubling from one date usually means an old pixel left in the theme next to the Facebook & Instagram app, a second tracking app, or browser and server events without a shared event ID
- in Events Manager > Test events, place a test order: Purchase should appear once, or be marked deduplicated
The gap that consent leaves on purpose
Even a perfect setup will not send every order to the ad platforms. The ICO's final guidance, published 29 April 2026, covers cookies, pixels and fingerprinting under the name storage and access technologies (ICO). Ad measurement still needs consent (ICO, Guidance on the use of storage and access technologies). Analytics used solely for statistical purposes can rely on an exception, but only if visitors get clear information and a simple, free way to object (ICO, What are the exceptions?). Assume EU visitors are covered by different rules.
In practice, a banner that respects a no means some purchases never reach Google Ads or Meta. That part of the gap is correct, and the answer is not to fire tags before the visitor has chosen. If a gap appears the day a new consent app goes in, place a test order, accept and then decline, and watch what each pixel sends before you blame the tags themselves.
When to hand the job over
If the gap began after a platform move, the migration SEO checklist includes the analytics and conversion-tag checks to repeat on the new store. If orders arrive but nobody is buying, that is a different problem; our traffic but no sales checklist covers it. If the sales are real and only the counting is wrong, keep a simple monthly check of Shopify orders against GA4 purchases, so the next break is caught in days rather than at the quarterly review. When a custom pixel needs rewriting, theme leftovers need removing or the gap still makes no sense after one test order has been followed through every system, our fixes and support work covers it, and the same people who investigate the fault build, test and document the change. Before you get in touch, note the date the gap started, the order number of your test order and a screenshot of your Customer events list. That is usually enough for us to say what is wrong and what fixing it involves.
Sources
- Shopify, checkout.liquid (read November 2026)
- Shopify, Shopify Help Center | Pixels overview (read September 2026)
- Shopify, About web pixels (read October 2026)
- Shopify, checkout_completed (read October 2026)
- Google, Minimize duplicate key events with transaction IDs (read November 2026)
- Google, Recommended events (read October 2026)
- Google, Set up a purchase event (read October 2026)
- Google, GA4 About events - Analytics Help (read November 2026)
- Google, Validate your ecommerce setup (gtag.js) (read October 2026)
- Google, Understand your conversion tracking data (read October 2026)
- Google, Data discrepancies: Factors and troubleshooting (read October 2026)
- Google, About attribution models (read October 2026)
- Google, GA4 Get started with attribution (read October 2026)
- Meta, Handling Duplicate Pixel and Conversions API Events (read November 2026)
- Meta, Original Event Data Parameters (read November 2026)
- Meta, Server Event Parameters (read November 2026)
- Shopify Community, Meta vs Shopify purchases: a 30-day check that tells you which kind of gap you have (read November 2026)
- ICO, Final storage and access technologies guidance published (read November 2026)
- ICO, Guidance on the use of storage and access technologies (read November 2026)
- ICO, What are the exceptions? (read November 2026)






