Skip to content
DataMentari
All insights

GA4 vs Shopify Analytics: Find the Orders GA4 Misses

GA4 and your store rarely agree on revenue. Match orders by transaction ID, sort the gap into three groups and price it in ringgit before you move budget.

In this article

Picture a store whose finance report shows RM200,000 in orders for the month while GA4 shows RM173,000. Those figures are made up for this article, but the situation will be familiar: the numbers differ, and the founder asks which one is right. It matters because ad budgets follow the GA4 number. A channel that looks like it returns RM2.00 for every ringgit spent may return more, and a budget cut made on the lower figure takes real revenue out of the business.

Both numbers can be correct. They count different things in different ways, so a perfect match is not a realistic goal. What you can do is find which orders GA4 does not have, which it has twice, and which it values differently. The size of each group tells you how far to trust GA4, and which fix to make first.

Matching GA4 purchases to store orders by transaction ID shows which revenue your marketing reports miss, and that gap is the first number to fix before you move ad budget. Below is the match for Shopify and WooCommerce, and what the gap does to a budget decision in ringgit.

Why GA4 and your store will never match exactly

GA4 and Shopify count different things. Shopify records every order your store takes. GA4 records only the purchase events a browser or server sent it, so blocked tags, declined consent and duplicate tags change its total. To find the gap, match the two by transaction ID and sort orders into missing, counted twice and different value.

Shopify’s Help Center lists why the two differ even when everything is set up well. Google can only count visitors who have JavaScript and cookies turned on. Customers can use browser extensions that block Google Analytics from tracking their sessions and purchases. The two tools can report in different time zones. And Shopify says it is unlikely that two services use identical tracking mechanisms, so visitors are not recorded equally. None of that points to a mistake on your side.

Timing adds noise. Google says GA4 processing can take 24 to 48 hours, and some data can arrive up to 7 days late. Compare a closed period, such as the last full calendar month, and use the same reporting time zone on both sides.

Shopify also notes that its session measurement changed in a rollout from 21 to 23 September 2026, which does not necessarily mean orders changed. Sessions move when a counting rule changes. That is why this method compares orders and not sessions.

If you have not yet confirmed that your purchase event fires at all, start with the 10-minute GA4 setup check, in particular its section on finding the event behind your main business outcome.

Make both sides count the same orders, on Shopify and on WooCommerce

Before you match anything, decide what an order is. Shopify’s Help Center says its sales report and its order export are built differently: the sales report shows the goods exchanged, while the export shows the current total of each order. Test orders are left out of sales reports but included in the orders export. Gross sales include canceled, pending and unpaid orders. Compare an uncleaned export with GA4 and you will count orders GA4 was never meant to see.

So build a clean store list first. Export a closed month, remove test orders, and decide how to treat cancelled and unpaid orders. Write the rule down so you apply it the same way next month. Keep order number, date, item total, shipping and tax in separate columns.

On the GA4 side, Shopify sends the purchase event through its Google and YouTube sales channel. Google’s help page for the Shopify integration explains the setup, and Shopify’s own guide says certain ecommerce events are tracked automatically once GA4 tags are set up. The part that matters here is the identifier. Open GA4 DebugView, place a test order, and look at the transaction ID on the purchase event. Then compare it with what your Shopify admin shows for the same order. Use whichever Shopify field matches, and use it for every order in the match. I have not found Google or Shopify documentation that names the field, so check it yourself rather than assume.

WooCommerce needs the same care, with two details worth knowing. The official Google Analytics for WooCommerce plugin documents that purchase tracking needs a payment gateway that redirects the shopper to the thank you page after payment. From that I would reason, and this is my inference and not a statement from the plugin’s authors, that an order paid for without the shopper returning to that page is a candidate for the missing group.

The second detail is the ID itself. The plugin’s version 2.2.0, released on 9 June 2026, changed the transaction ID to use the WooCommerce order number. The GitHub issue behind the change says the plugin had been sending the internal database ID, which can differ from the order number a store shows when it uses a sequential or custom order number plugin. If your GA4 history spans that update, a match on order number may wrongly report the older orders as missing. Version 2.4.4, released on 20 October 2026, also stopped the plugin sending a purchase event for failed and cancelled orders.

Match by transaction ID, not by totals

Totals hide the problem. If GA4 is RM27,000 below the store, you cannot tell whether 130 orders are missing or 400 carry lower values. Matching by transaction ID turns one gap into a list of named orders.

Google’s help page on transaction IDs gives the rules that make the match possible. A transaction ID is a unique identifier for each transaction, such as an order confirmation number. GA4 deduplicates purchases that share a transaction ID. Google also warns against sending an empty string as the ID, because GA4 then deduplicates all purchase events with an empty ID into one.

To run the match, export your purchase events from GA4 with the Transaction ID dimension and the purchase revenue figure. GA4’s Explore section can do this, and so can the BigQuery export if you have switched it on. Google’s BigQuery export page says daily tables are updated for up to three days after each date, so wait that long after a month closes. Then look each store order number up in the GA4 list.

Before the lookup, count the purchase events with no usable ID and the IDs that appear more than once. Both predict a messy match.

Read the three groups: missing, counted twice, different value

After the lookup, every store order is either matched cleanly or falls into one of three groups.

Missing. The store has the order and GA4 does not. Likely causes are a browser extension that blocks the tag, declined consent, an order paid for without the shopper returning to the thank you page, and a tag that does not run on the checkout. When the purchase leaves your order system as a server event, blocked tags and shoppers who never reach the thank you page stop costing you orders. Declined consent still applies on that route. The server-side tracking post covers that route in its section on when the order system sends the event.

Counted twice. GA4 shows the same order more than once. Google says GA4 keeps only the first event when the same event fires twice with the same transaction ID. So a true duplicate usually means the two events carried different IDs, for example one tag sending the order number and another sending the database ID, or no ID at all. Google’s guidance on validating ecommerce also names a possible cause: using both the Google tag and Google Tag Manager on the same pages, which double counts certain events. Look for orders that appear twice in GA4 under different IDs.

Different value. The order matches, but the amounts differ. The usual cause is what each side puts in the total. Google’s ecommerce guide shows the purchase value as the sum of price times quantity, with tax and shipping sent in their own parameters, and its metric definitions treat purchase revenue as net of refunds. If your store total includes shipping and tax, or if refunds were not sent to GA4, the two totals will differ even when both counted the same order. Check whether your store figure includes them before you call the difference an error.

Here is the method on a small illustrative month. These numbers are invented for the example and are not from any client or store.

GroupOrdersEffect on GA4 revenue (RM)
Store orders for the month1,000200,000
Missing from GA4130minus 26,000
Counted twice in GA410 extraplus 2,000
Matched, GA4 value lower60minus 3,000
GA4 total880173,000

The gap is RM27,000, or 13.5% of the store figure. Missing orders explain RM26,000 of it. The duplicates push GA4 up by RM2,000, and the value differences take RM3,000 off. A team that saw only the RM27,000 total would not know that nearly all of it is one problem.

What the gap does to your ringgit budget decisions

A gap is only a measurement problem until someone changes a budget because of it. Take the same illustrative store. Suppose paid social spend was RM20,000 for the month, and GA4 credits that channel with RM40,000 of revenue. That is a return of 2.0. Say finance says the channel needs 2.2 to break even. On the GA4 number, you would cut it.

Now suppose your match shows that 15% of the orders from that channel are missing from GA4. This is an assumption for the example. It would have to come from your own matching, split by the order’s source, and the split only works if you can tie orders to the channel in the store data. Revenue would then be about RM47,059 (RM40,000 divided by 0.85), and the return would be about 2.35. The same channel now clears the break-even line. The first reading cuts a profitable channel. The second keeps it.

Notice what the example does not say. It does not say the store number is the truth about marketing. The store knows how many orders were taken, but not which ad led to each one. GA4 links orders to channels only for the orders it received. A sensible reading is that the store number sets the total and GA4 shows the split, with a margin of error that your match has now measured.

That gives you a rule for when to act. If the gap on a channel is smaller than the revenue change you expect from the budget move, leave it alone. If it is larger, fix the measurement first, or run a test before you move the money.

Fix the largest group first

Rank the three groups by ringgit, not by order count. In the illustrative month, missing orders (RM26,000) outrank duplicates (RM2,000) and value differences (RM3,000), so they come first.

If missing orders lead, confirm the purchase event fires for every payment method you offer, and look at the missing share by payment gateway and by browser. If the cause is blocking, consider sending the event from the order system, and carry each shopper’s consent choice through to it. Declined consent is not a fault to fix: a server event does not change what the shopper agreed to share.

If duplicates lead, count the tags that fire on the order confirmation page, keep only one of the Google tag or Google Tag Manager, and make every tag send the same transaction ID.

If value differences lead, agree one definition of order value with finance and make GA4 send it. Then confirm that refunds reach GA4 with the original transaction ID, which Google’s ecommerce guide marks as required for refunds.

Repeat the match each month and record the three group sizes. A falling missing group shows a fix worked, and it is a number you can show a founder.

If you would like help with the match, or with moving the purchase event to your order system, you can reach me through the DataMentari contact page. DataMentari builds websites with tracking and SEO included. The services section describes the work.

Let’s talk.

Tell us what you’re working on and what you want to improve.

Get in touch