- Part of the gap is not data loss: Shopify's total sales include tax and shipping and subtract returns, while GA4's purchase value leaves out tax and shipping.
- The real loss comes from purchase events the browser never sent: ad blockers, closed tabs, declined consent and checkouts that skip the thank-you page.
- Attribution gaps are a separate problem: GA4 can record the sale but credit it to direct when the client id or the UTM tags were lost.
- Reconcile one week line by line before you fix anything, so you know which part of the gap is definitions and which part is missing purchases.
- A purchase sent from the server with the same transaction_id fills the missing events; GA4 deduplicates purchases that share a transaction ID.
GA4 revenue rarely matches Shopify because the two count different things and because GA4 depends on a browser that does not always report back. Shopify records every order in its database. GA4 records a purchase only when a tag or a server sends it an event, and by Google's own rules that event leaves out tax and shipping.
So the gap has two parts. One part is definitions, and no fix will remove it. The other part is purchases GA4 never received or could not attribute, and that part you can shrink. This guide shows how to split the gap into those parts with one worked example, then goes through each cause with a check and a fix.
Two kinds of difference
- Tax and shipping: in Shopify's total sales, not in GA4's purchase value
- Returns: Shopify subtracts them; GA4 only if refund events are sent
- Orders without a website session: POS, draft orders, some subscription renewals
- Time zone and currency settings of the two accounts
- GA4 processing time: recent days still change
- Purchase events blocked by ad blockers or privacy settings
- Tabs closed before the thank-you page ran its tags
- Consent declined, or consent not passed to Google correctly
- Duplicate or broken GA4 tags
- Lost client id or UTM tags, so sales show as direct
A worked example: one week, line by line
Here is one week of an example store. Shopify's sales report shows $43,800 in total sales. GA4's purchase revenue for the same week shows $33,590. That looks like 23% missing, but most of it is not missing at all.
| Line | Amount | Running total |
|---|---|---|
| Shopify total sales for the week | $43,800 | $43,800 |
| Taxes (GA4's purchase value leaves them out) | −$3,600 | $40,200 |
| Shipping charged (also left out of GA4's value) | −$2,400 | $37,800 |
| Returns Shopify subtracted this week (no refund events sent to GA4) | +$1,200 | $39,000 |
| Comparable product revenue | $39,000 | |
| Orders with no website session (POS, draft orders, renewals) | −$1,500 | $37,500 |
| Orders on the other side of the day boundary (time zone) | −$400 | $37,100 |
| Web purchases GA4 could have received | $37,100 | |
| Purchase events GA4 never received | −$3,510 | $33,590 |
| GA4 purchase revenue | $33,590 |
The order matters. If you start fixing tags before you take out tax, shipping and returns, you chase a gap that no setup can close. If you stop after the definitions, you miss the 9.5% that is real loss. In practice you will not know the exact size of each line on the first try, so match orders by id where you can: export the week's web orders from Shopify and the transaction ids GA4 recorded, and count which order ids are missing.
Why GA4 misses purchase events in the browser
A standard GA4 setup sends the purchase from the visitor's browser, after the order is placed. Several things can stop that event from leaving the browser:
- Ad blockers and privacy extensions that block requests to Google Analytics. See how ad blockers affect tracking.
- Browser limits on cookies and scripts, such as Safari's tracking prevention. See Safari ITP and tracking.
- Slow pages and closed tabs. A shopper who pays and closes the tab before the tag runs leaves an order in Shopify and nothing in GA4.
Check: compare GA4 purchases with Shopify web orders per day and per device. A gap that is larger on mobile or in one browser points here. Fix: send the purchase from the server as well, so it does not depend on the browser (see the last section).
How the checkout can interrupt purchase tracking
Most browser setups fire the purchase on the order status page, the page shown after payment. If that page never loads or its scripts do not run, the event is gone:
- The shopper pays through an external payment page and does not come back to the store.
- A checkout or upsell app adds its own steps, and the purchase fires before or without the final order.
- A theme or app change moves or breaks the script on the order status page.
Check: group the missing order ids by payment method and by the apps involved in their checkout. Fix: remove purchase snippets from old theme code, use Shopify's customer events for browser tracking, and add a server-side purchase that fires when the order is paid, not when a page loads.
Why missing consent means missing revenue
With Google's consent mode, tags adjust to what the visitor allowed. When a visitor denies consent, Google's tags do not store cookies and send cookieless pings instead, and Google Analytics fills part of the gap with modelling. Purchases from those visitors are then missing from, or modelled in, your reports, and their source often shows as direct or unassigned.
The same happens when consent is given but never reaches Google, for example when a consent banner is not connected to consent mode. Check: compare the gap in regions with a consent banner with regions without one. Fix: connect your consent tool to Google consent mode, test that granting consent changes the consent state, and accept that declined visitors will not be tracked with identifiers. See consent mode v2 and GDPR.
How client id loss breaks attribution
GA4 links a purchase to earlier visits through the client id in the _ga cookie. When that cookie is cleared or expires, or the purchase is sent from a context that does not carry it, GA4 still counts the revenue but cannot connect it to the visit that came from your ad. The sale shows up under direct. The total matches better than the channel split does.
Check: look at the share of purchase revenue under direct and unassigned over time. A rising share after a theme, checkout or consent change points here. Fix: a server-side purchase should carry the visitor's original client id and session id, which the storefront script reads from the GA4 cookies. More on this in why GA4 shows so much direct traffic.
Why GA4 can miss order details
Even a recorded purchase can be thin. Some setups send only the value and currency, without items, coupon, tax or shipping. Revenue totals then match, but product and promotion reports in GA4 stay empty or wrong. Check: open one purchase in DebugView or in an exploration and look at its parameters. Fix: send the items array with item ids and prices, and tax, shipping and coupon as their own parameters, as Google's purchase event reference describes.
How session and UTM gaps affect revenue by channel
UTM tags can be stripped by redirects, link shorteners or apps, and a shopper can return days later on another device. GA4 then gets the revenue but assigns it to the wrong source. This does not change total purchase revenue; it changes which channel gets it. If your problem is that Google Ads or Meta looks weaker in GA4 than in the ad platform, read why attribution data does not match before you change tags.
Can GA4 and Shopify revenue ever match?
Not exactly. Shopify counts every order. GA4 counts what it received and was allowed to process. Google also says that GA4 data processing can take 24 to 48 hours and that report data can change during that time, so the last two days always look low.
Instead of chasing a match, track one number: the share of Shopify web orders whose transaction id appears in GA4, per week. That share tells you whether tracking is getting better or worse. The total revenue gap does not, because tax, shipping and returns move it every week.
How to close the gap step by step
- Reconcile one week
Take Shopify's total sales for a closed week, remove tax and shipping, add back returns, remove orders without a web session, and compare with GA4 purchase revenue in the same time zone and currency.
- Match order ids
List the web order ids from Shopify and the transaction ids in GA4. The missing ids are your real loss; group them by device, browser, payment method and country.
- Remove duplicate tags
Keep one browser purchase sender. Check the theme code, Google Tag Manager and the Google & YouTube app.
- Fix consent signals
Make sure your consent banner passes its state to Google consent mode, so consented visitors are not tracked as declined.
- Add a server-side purchase
Send the paid order from the server to GA4 with the same transaction_id, the visitor's client id and the items. GA4 deduplicates it against the browser purchase.
- Track the capture rate weekly
Watch the share of web orders that reach GA4, not the revenue gap.
How ROASaurus shows and closes the gap
ROASaurus starts from the orders, not from the browser. Every paid order from your store arrives with its id, and ROASaurus can send it to GA4 from the server through Google's Measurement Protocol as a purchase with the order id as transaction_id, the items, tax and shipping, and refunds as refund events. When the storefront script read the visitor's _ga client id and GA4 session id, the server event carries them, so the sale keeps its source. You set this up under Connections › Tracking & destinations with your GA4 measurement id and API secret. GA4 is on the Free plan as well.
To see what arrives, open Data quality › Overview. It lists per destination the orders expected, the events sent and the accuracy per day. For GA4, Google answers without a count, so a sent event counts as accepted. Next to it, Marketing › Platform numbers puts what each ad platform reports next to the orders ROASaurus tracked.

Two limits to know. Google's Measurement Protocol accepts events up to 72 hours old, so an order that reaches ROASaurus later is skipped, with the reason in the event log. And for a shopper who declined consent, ROASaurus sends GA4 no identifiers: no client id from the browser, no user data, no IP address and no user agent. Those purchases cannot be tied to a visit. For a quick look at what runs on your store today, use the free tracking audit, and for the full setup see GA4 on Shopify.
Sources
- Google Analytics: Recommended events, purchase
- Google Analytics Help: Minimize duplicate key events with transaction IDs
- Google Analytics Help: Data freshness
- Google Analytics Help: Consent mode on websites and mobile apps
- Google Analytics: Measurement Protocol reference
In ROASaurus
- Server-side tracking in ROASaurus
- Free tracking audit
- Help: over-reporting and duplicates
- Glossary: deduplication