Connecting Shopify Checkout Extensibility to GA4
Shopify replaced checkout.liquid with a sandboxed extension model, and the thank-you page — where nearly every store put its conversion tracking — was the last thing to go. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Shopify order before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Shopify Checkout Extensibility to GA4: purchase after the cutover
If GA4's purchase tag lived in Additional Scripts, it stopped at the upgrade. Choose one sender among the Google & YouTube app, a GTM custom pixel with page_location set explicitly, or a Measurement Protocol send from the order webhook using client_id and session_id from cart attributes and the order ID as transaction_id. Then compare GA4 purchases to Shopify orders daily.
If the GA4 `purchase` tag lived in Additional Scripts or on the old order status page, it stopped loading at the upgrade. There are now three replacements, and stores often end up running two of them at once: Shopify's Google & YouTube app, a GTM container inside a custom pixel, and a server-side send from the order webhook. GA4 has no deduplication of its own, so pick one sender for `purchase` and turn the others off for that event.
A custom pixel runs in a sandbox, and GA4 events sent from inside it can report the sandbox's URL as `page_location`. Checkout and purchase rows then show strange page paths and `(not set)` landing pages. Set `page_location` explicitly from the event context the pixel receives rather than letting gtag read it from the frame.
The server route avoids the sandbox entirely: read the GA4 `client_id` and `session_id` on your storefront, write them into cart attributes, and send `purchase` from the order webhook through the Measurement Protocol with the order ID as `transaction_id`. Refunds go out from the refund webhook as a GA4 `refund` with the same ID. After switching, compare GA4 purchases to Shopify orders day by day for two weeks to confirm nothing is still double-firing.
Checkout Extensibility → GA4 · what breaks
Why this join usually fails — Checkout Extensibility → GA4
- 01
The GA4 client_id never reaches Checkout Extensibility
Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.
- 02
Conversion tracking that silently stopped
This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.
- 03
Everything lands under (direct)/(none)
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
- 04
Nothing reconciles afterwards
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Checkout Extensibility → GA4 · the fix
What working looks like — Checkout Extensibility → GA4
The GA4 client_id on every order
Conversions arriving in GA4
Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.
Reconciled against the source
Shopify Checkout Extensibility's own records are the reference, not either dashboard.
Checkout Extensibility → GA4 · architecture
How Checkout Extensibility and GA4 actually connect
- 1
Shopify Checkout Extensibility holds the truth
Additional Scripts and script tags on the order status page are gone. Any tracking that lived there has already stopped firing or will, and the store owner usually finds out from a revenue report rather than an error.
- 2
GA4 needs a click to match
GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.
- 3
The identifier is the bridge
The GA4 client_id, captured at the visit and carried into the Shopify order.
- 4
The event source decides reliability
Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.
- 5
Deduplication at the destination
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Checkout Extensibility → GA4 · normal or broken
Working vs. broken, side by side — Checkout Extensibility → GA4
Normal, not a fault
The GA4 client_id present on the order
Visible on the record itself in Shopify Checkout Extensibility, not merely captured somewhere on the site.
Sent from the Shopify order webhook, server-side
Deduplicated correctly
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Reconciles with the source
GA4's count and Shopify Checkout Extensibility's records agree within a few percent over a closed window.
Actually broken
The GA4 client_id missing on most records
Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.
Sent from the browser
This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.
Counted twice, or not at all
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Shopify Checkout Extensibility.
Checkout Extensibility → GA4 · diagnose
Diagnostic order — Checkout Extensibility → GA4
- 01
Count orders carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Compare Shopify order count against platform-reported conversions for the last 60 days
A sharp divergence with no change in actual sales is the signature. Check what was in Additional Scripts before assuming anything else.
- 04
Check whether server events carry a session and a source
In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.
- 05
Read the match rate, not the success message
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Checkout Extensibility → GA4 · prove
How it gets proven — Checkout Extensibility → GA4
Against Shopify Checkout Extensibility's own records, not against either platform's dashboard.
Source of truth
Shopify orders by creation date, read from the order record rather than from anything rendered on a page.
- The GA4 client_id confirmed present on a live order.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Orders reconciled from the webhook against imported conversions for a settled week, with no dependence on anything rendered at checkout.
Checkout Extensibility → GA4 · free audit
What we check in the free audit
- Count orders carrying the GA4 client_id
- Follow one real conversion end to end
- Compare Shopify order count against platform-reported conversions for the last 60 days
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Shopify orders by creation date, read from the order record rather than from anything rendered on a page.
Free30 minutesNo obligation
Checkout Extensibility → GA4 · when not to buy
When you don't need this — Checkout Extensibility → GA4
- If GA4 already reports conversions that reconcile against Shopify Checkout Extensibility's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
- If you were already sending conversions server-side from the order webhook, this migration does not affect your tracking at all — which is exactly why server-side was worth doing before it was forced.
- GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.
Checkout Extensibility → GA4 · what we deliver
What gets built — Checkout Extensibility → GA4
Identifier capture into Checkout Extensibility
Capture the identifier on your own storefront, persist it into cart or order attributes, and send the conversion server-side from the order webhook rather than from any page.
Event source: the Shopify order webhook, server-side
Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.
Dispatch to GA4
Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.
Reversals where they exist
Refunds and cancellations reverse from their own webhooks.
Written guarantee
95%+ tracking accuracy
Measured against Shopify orders by creation date, read from the order record rather than from anything rendered on a page.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Checkout Extensibility → GA4 questions, answered
Purchase tags in Additional Scripts or the old order status page stopped loading. Send purchase from the Google & YouTube app, a custom pixel, or the order webhook, and only one of them.
Custom pixels run in a sandbox, so GA4 can read the sandbox's location instead of the checkout's. Set page_location from the event context inside the pixel.
Almost always because the GA4 client_id never reached the Shopify order. Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded. Measure coverage before debugging the dispatch.
The client_id, from the _ga cookie. Measurement Protocol events without it are rejected or create a brand-new user with no session and no source, which is how server events end up filed under (direct)/(none) and make paid channels look worse than they are. Send session_id alongside it so the event joins the existing session, and include engagement_time_msec or the event may not appear as expected in reports.
The Shopify order webhook, server-side. Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
More on Checkout Extensibility → GA4
- Checkout Extensibility → Google AdsConnecting Shopify Checkout Extensibility to Google Ads
- Checkout Extensibility → MetaConnecting Shopify Checkout Extensibility to Meta Conversions API
- Checkout Extensibility → HubSpotConnecting Shopify Checkout Extensibility to HubSpot
RELATED GUIDES
Where Checkout Extensibility → GA4 fits in the rest of your tracking
- Squarespace → GA4Connecting Squarespace Commerce to GA4
- Medusa → GA4Connecting Medusa to GA4
- Saleor → GA4Connecting Saleor to GA4
- Checkout Extensibility → PostHogConnecting Shopify Checkout Extensibility to PostHog
- Checkout Extensibility → MixpanelConnecting Shopify Checkout Extensibility to Mixpanel
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- nopCommerce → GA4Connecting nopCommerce to GA4
- WooCommerce Subscriptions → GA4Connecting WooCommerce Subscriptions to GA4
Free · 30 min
Get Checkout Extensibility and GA4 joined properly
Free30 minutesNo obligation
