Tracking/Shopify tracking
Shopify tracking that matches your Shopify orders
Since Shopify moved checkout tracking to Customer Events, many stores have duplicate purchases from apps and old scripts, or missing ones from the new checkout. We rebuild Shopify tracking around one clean event stream, add server-side delivery from order webhooks, and check it order by order against Shopify.
Captured from
- Customer Events pixel
- Order webhooks
Processed in
- GTM + server GTM
- Event ID deduplication
Sent to
- GA4
- Google Ads
- Meta CAPI
- TikTok
- Typical timeline
- 2 to 4 weeks
- Works with
- Shopify Customer Events, Shopify webhooks, Google Tag Manager
- Pricing
- Quoted after a short call
- You keep
- Full access and documentation
01/Shopify Tracking, in short
Shopify tracking setup means one clean event stream for GA4, Google Ads, Meta and TikTok, built on Shopify's Customer Events pixel so it covers the new checkout, plus server-side purchase events from order webhooks. Duplicate app and script tracking is removed, and tracked purchases are reconciled order by order against Shopify.
02/Where it breaks
What we usually find first
- 01GA4 shows a different revenue number to Shopify every day
- 02Purchases are counted by an app, a custom pixel and an old script at once
- 03Thank-you page scripts stopped working after the checkout upgrade
- 04Meta's Event Match Quality is low for purchases
- 05Subscription renewals and post-purchase upsells never reach the ad platforms
When it's done
Purchases in GA4 and your ad platforms line up closely with Shopify orders, each counted once, with checkout and upsells included.
03/What you get
What the Shopify setup includes
- Tracking inventory
- A list of every app, pixel and script sending events, and which ones to remove.
- Customer Events pixel
- One custom pixel subscribed to Shopify's standard events, feeding GTM, with the checkout covered.
- Server-side purchases
- Order webhooks sent to server GTM, so purchases reach GA4, Meta and Google Ads even when the browser blocks them.
- Deduplication
- Shared event IDs between browser and server, and one source of truth for each order.
- Consent
- Shopify's Customer Privacy API connected to Consent Mode v2 and your cookie banner.
- Order-level reconciliation
- A report comparing GA4 and ad platform purchases with Shopify orders, so gaps show up early.
04/Under the hood
Custom pixel subscribed to checkout_completed
Runs in Shopify's sandbox and covers the checkout on every plan.
Custom pixel subscribed to checkout_completed
JavaScriptanalytics.subscribe('checkout_completed', (event) => { const c = event.data.checkout; window.dataLayer.push({ ecommerce: null }); window.dataLayer.push({ event: 'purchase', event_id: 'shopify_' + c.order.id, // same ID the webhook uses ecommerce: { transaction_id: c.order.id, value: Number(c.subtotalPrice.amount), currency: c.currencyCode, items: c.lineItems.map((li) => ({ item_id: li.variant.sku, quantity: li.quantity })) } });});IDs are placeholders. In your project this lives in your own accounts, with a written note on what it does and how to change it.
05/Side by side
Shopify apps vs a custom setup
| Topic | Platform apps only | How we build itCustom setup |
|---|---|---|
| Who sends purchases | Google app, Meta app, maybe a third app | One pixel and one server container |
| Duplicates | Common after the checkout upgrade | Shared event IDs across browser and server |
| Control | Each app's defaults | Every parameter and revenue definition |
| Feeds | Handled by the apps | Apps kept for feeds, tracking turned off |
06/Process
Three steps, in this order
- 01
Inventory and compare
We list everything that tracks today and compare a few weeks of platform purchases with Shopify orders.
- 02
Build and place test orders
The pixel, GTM and server container are built, then checked request by request with test orders.
- 03
Go live and reconcile
Old scripts are removed, the new setup goes live, and we compare tracked purchases with orders for two weeks.
07/Who it's for
A good fit if you are
- Shopify and Shopify Plus stores spending on Meta and Google
- Stores with duplicate or missing purchases after the checkout upgrade
- Brands with subscriptions, upsells or a headless storefront
Tools we work in
Shopify Customer Events / Shopify webhooks / Google Tag Manager / Server GTM / GA4 / Meta CAPI / Google Ads / TikTok Events API
Sounds like you? We look at your current setup on a call and tell you what we'd fix first, whether or not you hire us.
Book a call08/Questions
Shopify Tracking: common questions
Why don't GA4 and Shopify revenue match?
A small gap is normal, because of ad blockers, consent choices, refunds and time zone settings. Big gaps usually come from duplicate purchase tags, events firing before the order is confirmed, or tax and currency settings. We work out which of these applies to your store.
Do we still need the Google and Meta Shopify apps?
Often, yes, for product feeds and catalogue sync. We usually keep the apps for that and turn off their tracking, so one setup handles every event and nothing is counted twice.
Does this work with checkout extensibility on Shopify Plus?
Yes. Customer Events covers the new checkout on Plus and standard plans, and server-side order webhooks don't depend on the checkout at all.
Is a tracking app like Elevar or Stape's Shopify app an option?
They can be good choices and we work with both. A custom setup gives you full control over every event and parameter. We'll tell you honestly which suits your store and budget.
Talk to a specialist about Shopify Tracking
Tell us what you're running and what doesn't add up. We'll tell you what we'd check first, usually on a 30 minute call.