Shopify tracking and analytics
Your ads say one number.Shopify says another.
We find the duplicate tags, missing purchases and broken pixels behind your reports, and move tracking into Shopify’s Customer events, where it runs in checkout and follows consent. Then we explain which gaps are normal and which are broken.
- The numbers will not match to the cent. We tell you why, and what close enough looks like.
What breaks tracking
The tags are firing.Just not the right ones.
GA4 counting everything twice.
The theme has a tag, an app added one, and the Google & YouTube app added another. Page views double and reports stop making sense.
Purchases that never reach GA4.
Old Thank you page scripts stopped running when Shopify upgraded checkout. Orders keep coming in. The report stays flat.
Pixels pasted into the theme.
Code in theme.liquid does not run in checkout and can skip the consent banner. It belongs in Customer events.
Also on our list
- A consent banner that does not stop tags
- Ad platforms claiming sales GA4 never saw
- Checkout steps missing from your funnel
Why Shopify tracking breaks, and how to check yours
Shopify tracking and analytics means sending the events your store produces, such as product views, add to carts, checkouts and purchases, to tools like GA4, Google Ads and Meta once each, with the shopper's consent, in a way that survives theme and checkout changes. On Shopify today, that means pixels managed in Customer events, not code pasted into the theme. When the numbers look wrong, the cause is usually one of the problems below.
Why is GA4 counting my Shopify store twice?
Usually because GA4 is installed more than once. A common pattern: one tag hard-coded in the theme years ago, a second added through Google Tag Manager or an app, and a third from the Google & YouTube app. Shopify warns that adding Google Analytics through Google Tag Manager on top of its built-in integration can result in duplicate tracking. Google's own Shopify setup guide says to check for duplicate tags across the Google & YouTube app, the storefront and custom pixels, and to remove legacy tags.
GA4 removes duplicate purchases that share the same transaction ID. So a double install can look fine in revenue while page views and add to carts are inflated.
How to check yours:
- In your Shopify admin, open Customer events. List every app pixel and custom pixel, and what each one sends.
- In the Google & YouTube app settings, note the G- IDs in the Google tags section.
- In your theme code, search theme.liquid for "gtag", "googletagmanager" and your G- ID.
- In GA4, open the Realtime report, load one product page in a private window, and count the page views that arrive.
If the same G- ID shows up in more than one place, or one visit produces two page views, you have a duplicate.
Why are purchases missing from GA4?
Shopify moved the Thank you and Order status pages to the new checkout. The upgrade deadline was August 28, 2025, and automatic upgrades began in January 2026. Customizations that used additional scripts, script tags or checkout.liquid on those pages were lost. If your purchase tag lived there, it stopped.
Other causes we check:
- A pixel that relied on reading the page. Shopify's pixel sandbox cannot scrape the page for events, form fields or link clicks. Those have to be sent as custom events.
- Consent. In markets set to require it, pixels run only after the visitor gives the permissions the pixel needs.
- A purchase event that fires without an order ID, value or currency, so GA4 records the sale but not the revenue.
How to check: count Shopify orders from the online store for one full week. Leave out POS, draft orders and marketplace sales, because GA4 never saw them. Then count GA4 purchase events for the same dates, in the same time zone. A small, steady gap is normal. A large gap, or one that jumped on a certain date, points to a break. Note the date. It often lines up with a theme publish, an app install or the checkout upgrade.
Should tracking code live in the theme or in Customer events?
In Customer events. Shopify's pixel manager runs app and custom pixels in a sandbox, loads them on the storefront, checkout, Thank you and Order status pages, and applies the visitor's consent choices. Code pasted into the theme does not run in checkout, and it can skip consent, which Shopify says breaks its terms. The trade-off is the sandbox itself: pixels cannot show banners or read the page directly, so some older scripts need rework. Google Tag Manager can run as a custom pixel, but the tags it loads live inside the same sandbox.
How do consent banners affect Shopify tracking?
Shopify's Customer Privacy API checks whether a visitor has allowed analytics, marketing, preferences and sale of data, and applies those choices to pixels and checkout. In regions you set to require consent, non-essential tracking stays off until the visitor says yes.
Google Consent Mode passes the same kind of choice to Google tags. In basic mode, tags do not load until the visitor answers the banner. In advanced mode, tags load with consent denied by default and send measurements without cookies, which Google uses to model conversions. Either way, visitors who decline are not fully counted in GA4. That is the point of asking.
Why don't Shopify, GA4 and ad platforms match?
Because they count different things.
- Shopify counts orders. Every order, from every channel, whether or not the shopper accepted cookies.
- GA4 counts purchase events from browsers that loaded the tag and allowed it. Declined consent, blocked scripts and closed tabs fall out.
- Ad platforms count the conversions they credit to their own ads, using their own attribution rules. Even inside GA4, the attribution model you pick, such as data-driven or last click, changes which channel gets the credit.
What does "good enough" tracking look like?
The totals will never match to the order. Good enough looks like this:
- GA4 purchases move with Shopify online store orders, week by week.
- Each purchase arrives once, with an order ID, value and currency.
- The gap is steady. When it suddenly widens, someone notices within days, not at month end.
- Everyone agrees Shopify is the source of truth for revenue, and GA4 is for behavior and channels.
What we do
One tag per tool.One count per sale.
Measure
2 services
- 01Tracking auditEvery tag, pixel and app that sends data, mapped with what it fires and where.Every tag, pixel and app that sends data, mapped with what it fires and where.
- 02Orders vs purchases checkShopify orders against GA4 purchases and ad conversions, with the gap explained.Shopify orders against GA4 purchases and ad conversions, with the gap explained.
Fix
4 services
- 03Duplicate tag clean-upOne GA4 install, one Google Ads setup, old theme code removed.One GA4 install, one Google Ads setup, old theme code removed.
- 04Move to Customer eventsTheme and Thank you page scripts rebuilt as app or custom pixels.Theme and Thank you page scripts rebuilt as app or custom pixels.
- 05Consent setupBanner, Shopify privacy settings and Google Consent Mode set to agree.Banner, Shopify privacy settings and Google Consent Mode set to agree.
- 06Purchase event dataEvery purchase sent once, with order ID, value and currency.Every purchase sent once, with order ID, value and currency.
Keep
1 service
- 07Monthly tracking checkWe compare orders to GA4 each month and flag drift in your report on the 1st.We compare orders to GA4 each month and flag drift in your report on the 1st.
How we fix tracking, and where we stop
What do we fix first?
- Purchases. If GA4 or your ad platforms miss sales, your reports and your ad bidding both run on bad data. This comes first.
- Duplicates. One tag per tool. We remove the extras and keep a record of what we removed and why.
- Consent. Your banner, Shopify's privacy settings and Google Consent Mode need to agree with each other.
- Everything else: funnel steps, custom events and consistent naming.
What does a typical first month look like?
- First week: we map every tag, pixel and app that sends data, take a snapshot of current numbers, and back up the live theme.
- Next: we remove duplicates and rebuild missing purchase tracking in Customer events. Theme changes go on a duplicate theme with a rollback copy.
- Then: we place test orders and check that GA4 and each ad platform receive every event once, with the right values.
- On the 1st: a plain-English report of what we changed, the gap between Shopify and GA4 now, and what is left.
After that, the orders-to-purchases comparison becomes a monthly check, so drift gets caught early.
The same goes for Meta and other ad pixels. Each one should be installed once, run from Customer events, follow consent, and send purchases with the same order ID and value that GA4 gets. That makes the platforms easier to compare.
What we will not do
- We will not promise numbers that match to the cent. Consent, blocked scripts and attribution rules make that impossible, and anyone who promises it is guessing.
- We will not track visitors who said no. Getting around a consent choice breaks Shopify's terms and may break the law.
- We do not give legal advice on privacy. We set up the tags to follow what you and your lawyer decide.
- We do not run your ad campaigns. We make sure the conversions they bid on are real.
- We do not build data warehouses. Our job is clean events going into the tools you already use.
Where this connects
Tracking feeds everything else. A CRO audit and A/B tests are only as good as the events behind them. Duplicate scripts also slow the store, so this work often pairs with speed optimization. Search reporting sits with Shopify SEO and AEO. If the data is fine but the product pages are not, see product listing optimization. The work runs inside the care plans, and the free store health check already includes a tracking check.
How it works
From first look to a monthly rhythm.
Health checksample
yourstore.com- Speed
- Script tags
- Apps
Step 1: Free health check
We scan your store and record a short walkthrough of what we find.
#Priority fixessample
- 01Remove unused app codeHigh
- 02Compress hero imagesHigh
- 03Fix cart drawer on mobileMed
Step 2: Three priority fixes
You get the top three fixes and a plan recommendation. Keep the report either way.
Collaborator accesssample
- Themes
- Apps
- Orders
Live theme backed up
Step 3: Safe access
Collaborator access you control. We back up your live theme and work on a duplicate.
Report · the 1stsample
- Done
- Cart drawer fixed
- Found
- Unused app script
- Next
- Image compression
Step 4: Report on the 1st
What was done, what we found, and what is next. In plain English.
Fit
What this is, and what it is not.
A good fit if
- Shopify, GA4 and your ad platforms show sales numbers far apart.
- Purchase tracking stopped around the checkout upgrade.
- Several people and apps added tracking over the years, and nobody knows what is live.
- You sell into regions that require consent and are not sure your banner works.
Not a fit if
- You want GA4 to match Shopify to the order.
- You want to track visitors who declined consent.
- You need someone to manage your ad spend.
Pricing
Tracking work inside a care plan.
The free store health check already includes a tracking check. Fixes run on your care plan hours: 30 on Care Essential, 80 on Care Growth and 160 on Care Plus, with unused hours rolling over for one month. A single fix, such as removing a duplicate GA4 tag, can be a One-Off Fix from $149, priced before we start, with a 7-day warranty.
Care Essential
Small stores, under about $500K a year
$399/ month
- Reply
- 2 business days
- Monitoring
- Monthly health report
- 30 hours of fixes and tweaks a month
- Reply within 2 business days
Not included
- Hosting, security patches and core platform updates (Shopify handles these)
Care Growth
Most pickedGrowing stores, about $500K to $5M a year
$1,200/ month
- Reply
- 1 business day
- 80 hours of development a month
- Reply within 1 business day
- Quarterly speed and conversion review
- Shopify deadline migrations handled
- Monthly AI answer check: ChatGPT, Perplexity, Gemini
Not included
- Hosting, security patches and core platform updates (Shopify handles these)
Care Plus
Shopify Plus brands
$2,900/ month
- Reply
- Same day, critical issues
- 160 hours of development a month
- Same-day reply on critical issues
- Functions and checkout extension work
- Monthly planning call
- Monthly AI answer check: ChatGPT, Perplexity, Gemini
Not included
- Hosting, security patches and core platform updates (Shopify handles these)
Not ready for a plan?
Free Store Health Check
Every store. The best place to start.
Free
- Automated scan of your storefront
- Short recorded walkthrough of what we found
- Speed check
- Legacy script tags ahead of the March 1, 2027 cutoff
- App load
- Accessibility basics
- Broken tracking
Not included
- The fixes themselves. You choose who does them.
One-Off Fix
Small stores with one problem
from$149/ per task
- Fixed price agreed before work starts
- Done on a duplicate theme
- 7-day warranty
Not included
- Ongoing monitoring or a monthly report
- Hosting, security patches and core platform updates (Shopify handles these)
All prices in USD. Month to month.
Questions
What people ask about this
Why don't my Shopify and GA4 sales numbers match?
Because they count different things. Shopify records every order; GA4 only records purchases from browsers that loaded its tag and allowed tracking, so declined consent and blocked scripts fall out. A small, steady gap is normal. A large gap, or one that jumped on a certain date, usually means a broken or missing purchase tag.
Should I use the Google & YouTube app or Google Tag Manager on Shopify?
For most stores, the Google & YouTube app. Shopify recommends its built-in Google integration, and warns that adding Google Analytics through Google Tag Manager as well can duplicate tracking. Use Google Tag Manager as a custom pixel when you need tags the app cannot send, and keep GA4 in only one of the two.
How do I check for a duplicate GA4 tag on Shopify?
Look in three places: Customer events in your Shopify admin, the Google tags section of the Google & YouTube app, and your theme code (search for your G- ID). Then open the GA4 Realtime report and load one page. If the same G- ID appears in two places, or one visit produces two page views, you have a duplicate.
Why did my Shopify purchase tracking stop working?
If it relied on additional scripts, script tags or checkout.liquid on the Thank you page, the checkout upgrade removed it. Shopify set an upgrade deadline of August 28, 2025 and began automatic upgrades in January 2026, and those customizations were lost. The fix is to rebuild purchase tracking as an app pixel or custom pixel in Customer events.
Can I track Shopify checkout with a custom pixel?
Yes. Shopify loads app and custom pixels on the storefront, checkout, Thank you and Order status pages. Custom pixels run in a sandbox, so they cannot read the page directly or show anything to the shopper. They receive Shopify's customer events instead, including checkout events.
Do I need Google Consent Mode on my Shopify store?
If you use Google tags and ask visitors for consent, Consent Mode is how those tags learn the answer. Basic mode holds Google tags until the visitor answers the banner; advanced mode loads them with consent denied by default and lets Google model the conversions it cannot observe. What consent you need is a legal question; we set up the tags to follow it.
How close should GA4 be to my Shopify orders?
Close enough to move together, never identical. Compare GA4 purchases with Shopify online store orders for the same dates and time zone, leaving out POS and draft orders. What matters is that the gap is small, steady and explained; a gap that suddenly widens is a break to fix.
Get started
Find out which numbersyou can trust.
The free store health check includes tracking: a scan, a recorded walkthrough and three priority fixes. Or book a 20-minute call and bring your Shopify and GA4 numbers.
Sources
- 1. Shopify Help Center: Pixels overview (checked 2026-11-17)
- 2. Shopify Help Center: Google Tag Manager (checked 2026-11-17)
- 3. Google Ads Help: Shopify: Set up your Google tag (checked 2026-11-17)
- 4. Shopify.dev: Customer Privacy API (checked 2026-11-17)
- 5. Google for Developers: Consent mode overview (checked 2026-11-17)
- 6. Google Analytics Help: Get started with attribution (checked 2026-11-17)