If Shopify and GA4 show different purchase totals, compare order IDs before changing your tracking. A difference in totals tells you how large the gap looks. Matching IDs tells you which orders to check.
- Choose the same completed dates and time zone. Export the eligible Shopify orders and the
purchasetransaction IDs from the matching GA4 web stream. - Find one known purchase in both exports. Check whether GA4 stores Shopify’s order name or its long ID. Keep IDs as text so leading zeros and prefixes survive the export.
- Take out any known test orders from both lists. Compare the remaining Shopify IDs against the GA4 IDs and make a list of Shopify orders with no match.
For a quick local check, put the IDs in shopify.csv and ga4.csv with a transaction_id header. Remove blank IDs, report placeholders, and test orders first. This Python example prints the Shopify IDs that are absent from the GA4 file:
import csv
def read_ids(filename):
with open(filename, encoding="utf-8-sig", newline="") as file:
return {row["transaction_id"].strip() for row in csv.DictReader(file)}
for order_id in sorted(read_ids("shopify.csv") - read_ids("ga4.csv")):
print(order_id)
Here’s what that looks like with fictional data:
| Check | Result |
|---|---|
| Shopify orders exported | 33 |
| Known test orders excluded | 1 |
| Eligible Shopify orders | 32 |
| Orders matched by transaction ID | 25 |
| Orders to investigate | 7 |
Pick one of those seven and check the property, stream, checkout source, consent state, and reporting delay. An aggregated report can show which IDs appear. Use event-level data if you also need to check whether the same purchase was sent twice. Shopify order exports · GA4 Explorations
Built by Angelo is testing a $149 one-time review of two minimized exports for one Shopify store, one GA4 web stream, and seven completed days. If you have this issue, leave a comment describing the mismatch. Keep store exports and order IDs private. Codex drafted this walkthrough and ran the comparison locally on fictional data.
Top comments (0)