6 min read

Field note
By the Brewant team
Published 2026-03-10

How to tell if your Shopify tracking is actually working

Broken Shopify tracking almost never throws an error. Here are the checks we run first, in order, so you can diagnose your own setup in about an hour without hiring anyone.

Short answerCompare last month's Shopify orders with GA4 purchase events. A small, stable gap is normal; a swinging gap, or GA4 above Shopify, is not. Then list every pixel under Settings, then Customer events, and in your theme code, and put a test order through with the network tab open to confirm each purchase fires once with the right value.

Most broken Shopify tracking looks fine from the admin. A pixel is installed. Reports fill up. Revenue appears. Tracking does not fail loudly; it fails partially, and partial data reads exactly like real data.

That is how it survives for years inside well-run stores. Someone notices GA4 showing fewer orders than Shopify, or Meta claiming more revenue than the business made, and the answer is to shrug and keep spending on Meta ads regardless.

You can check most of it yourself in about an hour. Here are the checks in the order we run them, with the mechanism behind each.

Start with one number: orders versus purchases

Before touching a tag, compare two counts for the same period: total orders in Shopify last month, and purchase events in GA4 for the same month. Write both down.

They will not match, and are not supposed to. Ad blockers, declined consent and browser privacy restrictions all remove events. Two things matter more than the size of the gap: whether it is stable, and which way it runs.

  • GA4 slightly below Shopify, month after month, by a similar margin: normal. Record the margin and move on.
  • GA4 far below Shopify, or a gap that swings monthly: something is firing conditionally. Consent, sandbox identity, or a tag that loads on only some templates.
  • GA4 above Shopify: usually duplicate purchase events, or test orders and internal traffic counted as real.
  • Purchase count roughly right but revenue wrong: a value or currency problem, not a firing problem.

Check the timezones first. Your GA4 property has a reporting timezone and your store has its own. If they differ, every daily comparison is offset by hours and you are chasing a clock, not a bug. Compare whole months.

Find every tag that is actually running

Stores accumulate tracking. A developer adds a tag, an app installs its own, a freelancer hardcodes a snippet, the app is uninstalled and the snippet stays. Several pieces of code end up claiming the same events.

Three places to look, all in your own admin.

  1. 01Settings, then Customer events. This lists app pixels installed by channel apps and custom pixels written by hand. Read every custom pixel. If nobody can explain one, that is already a finding.
  2. 02Your theme code. Search theme.liquid and your layout files for gtag, GTM-, fbq and the IDs themselves. Code here runs on storefront pages; Shopify renders checkout separately, so a theme snippet is not what measures your checkout.
  3. 03Your installed apps list, cross-referenced against those pixels. Orphaned code from a removed app is common, and usually the thing double-counting.

Then load the storefront, open the network tab and filter for collect. GA4 collection requests carry a tid parameter naming the measurement ID that received the hit. Two different IDs means two properties are collecting, and half your team reads the wrong one. If nothing appears, the tag may be routing through a first-party or server-side endpoint; widen the filter to the domain.

NoteDecide which system is the source of truth for orders and revenue. For a Shopify store that is Shopify. GA4, Meta and Google Ads estimate where those orders came from; they are not second opinions on how many there were.

Put an order through and watch it happen

Reports tell you something is wrong. A test order tells you where. Turn on a test payment method, open the store in a clean browser profile with no extensions, and go the whole way: product page, cart, checkout, thank-you page. Keep the network tab open.

  • GA4: filter for collect and read the en parameter, which carries the event name. Look for view_item, add_to_cart, begin_checkout and purchase. GA4 can batch several events into one request, so count event names rather than requests.
  • Meta: filter for tr and read ev. Look for ViewContent, AddToCart, InitiateCheckout and Purchase, one of each.
  • On the purchase hit, read the value and currency off the request and compare them to the order total in the admin. GA4 sends currency in cu; Meta sends value and currency inside cd parameters.
  • Reload the thank-you page once and watch for a second purchase event. Careful implementations guard against it; the ones that do not are how one order gets counted twice.

GA4 DebugView and the Test Events tool in Meta Events Manager are worth having open alongside. One caveat: Shopify runs pixels in a sandboxed context with restricted access to the page around them, so extensions expecting an ordinary page can report nothing while tracking is fine. Trust the network tab over the extension.

Afterwards, cancel the test order and filter out internal traffic by IP or a marked parameter.

The four failures behind most bad Shopify data

Nearly everything we find sorts into four buckets. Which one you are in decides who fixes it, and whether it is a code problem at all.

  • Consent. Under Settings, then Customer privacy, Shopify can withhold analytics and marketing pixels until a visitor accepts. If the banner covers regions you did not intend, tracking is behaving as configured and still reporting almost nothing.
  • Identity across the sandbox. Shopify isolates pixel code from your storefront page, and the isolation rules differ between app pixels and hand-written custom pixels. When the identifier your storefront tag uses does not carry across, checkout looks like a new visitor: sessions read fine, purchases land under Direct. Compare the cid parameter on a storefront hit against the one on the purchase hit from the same test order.
  • Duplicates. Two pixels firing the same purchase, or a page that re-fires on reload. Meta deduplicates browser and server events only when both send a matching event ID and event name, so a server-side tracking setup added without that counts twice.
  • Value definition. Does your purchase value include tax and shipping? Is the Shopify figure gross, or net of discounts and refunds? Two systems can each be correct and still disagree, and nobody notices until return on ad spend is calculated from the wrong one.

The last two cause the longest arguments, because both systems look right in isolation. Write the revenue definition down once, and make every reporting dashboard say which one it shows.

Why every platform claims the same order

Add up the conversions reported by Google Ads, Meta and your email tool. The total will exceed your real order count. That is not a bug you can patch: each platform reports the orders it believes it influenced, on its own attribution window.

Some of the overlap is fixable, and it is worth separating the two kinds.

  • Referral overwrite. Off-site payment steps and wallets can return the customer as a fresh referral, overwriting the original source. GA4 data streams carry a list of unwanted referrals in their tag settings. Check whether your payment providers are on it.
  • Lost campaign parameters. Click one of your own live ads and watch whether the UTMs survive the redirects and any consent interstitial. Often they do not.
  • Accelerated checkout. Express payment buttons can skip the cart entirely, so steps you assumed always fire never happen for those buyers. Your drop-off report, and any conversion rate optimization built on it, describes a path they never took.
  • Windows and view-through. Look up the default attribution window on each platform before comparing anything. Two platforms counting one order over different windows will never reconcile.
The question is never whether the platforms agree. It is whether you can explain, in one sentence, why they disagree.

What to ask whoever manages this

If a developer or a Shopify agency runs your tracking, five questions separate a maintained setup from one that was installed and left.

  1. 01Which system is our source of truth for orders and revenue, and what variance should we expect against GA4?
  2. 02Show me one recent test order arriving in GA4 and in Meta with a matching value. Not a dashboard screenshot. The event.
  3. 03Which of our events require consent, in which regions, and what happens to reporting when a visitor declines?
  4. 04Does our purchase value include tax and shipping, and does that match how finance reports revenue?
  5. 05If we removed every app pixel tomorrow, what would stop working, and who would notice?

Specific answers are fine whatever they contain, including bad news. Answers that arrive as reassurance mean nobody has looked.

NoteRe-run these checks quarterly, and after every theme change, app install, checkout edit or domain move. Tracking is not something you set up once. It breaks quietly whenever the store changes.

About the author

The Brewant team

Brewant is a Mumbai-based website design and Shopify development agency for D2C brands. It builds Shopify stores, D2C and ecommerce websites, and the marketing, WhatsApp and email automation and analytics around them, alongside business websites, custom software, AI and film production, as one connected system.

More about Brewant

The services this article relates to, and the industries where it comes up most.

Questions we get asked

01Why does GA4 show fewer orders than Shopify?

They measure different things. Shopify counts every order it processed. GA4 counts purchase events that successfully reached it from a browser, so ad blockers, declined consent and privacy restrictions remove some of them. A stable gap in that direction is expected. A large or moving gap usually points at consent settings or a pixel firing on only some paths.

02Do I still need to put tracking code in the checkout template?

No. Shopify moved checkout customization to extensions and tracking to Customer Events, so pixels now belong under Settings, then Customer events, as either an app pixel or a custom pixel. If your setup still depends on scripts pasted into a checkout template or a scripts box, treat that as the first thing to verify rather than the last.

03How do I know if my Meta pixel is double counting purchases?

Put a test order through with the network tab open and filtered for tr, then count the requests carrying ev=Purchase. One is correct. Two means either a second pixel is installed somewhere, or your browser and server events are not being deduplicated, which requires both to send the same event ID and the same event name.

04How often should I check that Shopify tracking still works?

Every quarter, and after any change to the theme, checkout, apps or domain. Most breakages we find were introduced by a routine change nobody connected to analytics: an app removed, a theme rolled back, a consent banner switched on. Nothing alerts you when it happens, so the check has to be scheduled rather than remembered.