Tracking

Why GA4 revenue does not match Shopify

GA4 revenue is lower than Shopify for two reasons: different definitions and purchases GA4 never received. How to tell them apart and close the gap.

·8 min read·By the ROASaurus team

Key takeaways
  • 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

Different definitions (expected)
  • 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
Missing or misattributed data (fixable)
  • 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
Work through the left column first. Whatever is left after it is the part of the gap tracking can close.

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.

LineAmountRunning 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
Example store, one week. Of the $10,210 difference, $3,510 is tracking loss: 9.5% of the $37,100 GA4 could have received. The rest is definitions.

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.

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

  1. 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.

  2. 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.

  3. Remove duplicate tags

    Keep one browser purchase sender. Check the theme code, Google Tag Manager and the Google & YouTube app.

  4. Fix consent signals

    Make sure your consent banner passes its state to Google consent mode, so consented visitors are not tracked as declined.

  5. 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.

  6. 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.

The ROASaurus Mac app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
Per destination: orders expected, events accepted and the accuracy. A destination below the threshold you set raises an alert. In ROASaurus: Data quality › Overview. Public demo with a fictional store and simulated data.

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

  1. Google Analytics: Recommended events, purchase
  2. Google Analytics Help: Minimize duplicate key events with transaction IDs
  3. Google Analytics Help: Data freshness
  4. Google Analytics Help: Consent mode on websites and mobile apps
  5. Google Analytics: Measurement Protocol reference

In ROASaurus

Keep reading

AnalyticsToo much direct traffic in GA4: causes and fixesWhat direct traffic in GA4 really contains, how to find the landing pages behind it, when a high share is a tracking problem and how to fix the causes.TrackingWhy attribution numbers don't match across platformsShopify, GA4, Meta and Google Ads each credit the same order differently. See why their attribution numbers never match and how to get one consistent view.PrivacyGoogle Consent Mode v2 and GDPR for online storesGoogle Consent Mode v2 for online stores: the consent signals, basic and advanced mode, Shopify setup, GA4 consent settings and what EU law asks.

FAQ

Questions, answered

More answers in the FAQ and the help center.

Why is GA4 revenue lower than Shopify?

Partly because the definitions differ: GA4's purchase value leaves out tax and shipping, and returns only reach GA4 as refund events. The rest is purchases GA4 never received, for example because of ad blockers, closed tabs or declined consent.

Does GA4 purchase revenue include tax and shipping?

Not by Google's rules. Google's purchase event reference asks for the value as the sum of item price times quantity, with tax and shipping sent as separate parameters.

What is a normal gap between GA4 and Shopify?

There is no fixed number that fits every store. Reconcile one week to remove the definitional differences, then measure the share of web orders whose transaction id appears in GA4 and follow that share over time.

Why does GA4 show more purchases than Shopify?

Usually a purchase is sent twice, by two tags or apps. GA4 deduplicates purchases with the same transaction ID, so duplicates with a different or empty ID still count.

Will server-side tracking make GA4 match Shopify?

It closes the part of the gap caused by events the browser never sent. It does not remove the definitional differences, and purchases from visitors who declined consent stay without identifiers.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.