Shopify analytics and tracking setup

Checkout scripts are gone on Shopify, so tracking runs through apps and customer events. How to set up GA4, Meta and Google Ads tracking properly, and how far apart Shopify, GA4 and Meta numbers normally are.

On this page
  1. What changed with Shopify tracking?
  2. How should you set up each tool?
  3. Which report should you trust for what?
  4. What's the hard case for tracking?
  5. Frequently asked questions

On Shopify today, set up tracking through apps and customer events, not theme code: GA4 and Google Ads through the Google & YouTube app, Meta through the Facebook & Instagram app, and anything else through a custom pixel in Shopify's customer events. Then accept that Shopify's own reports, GA4 and Meta will never show the same numbers, and decide which one you trust for which question. Shopify's orders are the truth for sales.

This is for store owners and marketers setting up or fixing tracking. It's written for stores on Shopify's current checkout, now that the old checkout scripts have been removed.

Disclosure: Cloudgramam sets up, migrates and markets Shopify stores, so we have an interest in this topic. You pay Shopify, app makers and payment providers directly; we don't resell plans, apps or hosting. Prices and features were checked on Shopify's own pages on 15 November 2026 and change often, so check them again before you decide.

What changed with Shopify tracking?

The old ways of adding tracking code to checkout are gone. Shopify removed checkout.liquid and the "additional scripts" box on the thank-you and order status pages, and per Shopify's developer documentation, script tags stopped running on the order status page on 28 August 2025 for Plus stores and 26 August 2026 for others. If your purchase tracking relied on any of those, it has probably stopped.

The replacement is web pixels. Shopify's help page on custom pixels says to use an app pixel where one exists and a custom pixel only when none does. Custom pixels run in a sandbox and can track checkout and post-purchase pages, though not every script works there.

How should you set up each tool?

ToolSet up throughCheck
GA4Google & YouTube appA test purchase appears in GA4's real-time report with the right value
Google Ads conversionsGoogle & YouTube appPurchase conversion action shows recent conversions
MetaFacebook & Instagram app, data sharing set to Enhanced or MaximumEvents Manager shows browser and server purchases, deduplicated
Other tools (Hotjar, affiliate, others)The tool's own Shopify app, or a custom pixelThe tool's own debug view

Remove any old tracking code pasted into theme files once the apps are working, or you'll count things twice. Our Meta Conversions API guide shows how that double counting happens.

Which report should you trust for what?

  • Sales, refunds and revenue: Shopify's own analytics. They come from actual orders.
  • Which pages and channels people come through, and what they do before buying: GA4.
  • Whether a Meta campaign is working: Meta's reports for comparing ads with each other, and Shopify's sales for whether the total is real.
  • Speed: Shopify's web performance report. See the speed checklist.

What's the hard case for tracking?

Three tools, three different sales numbers for the same week. Shopify says the store took 412 orders last week. GA4 shows 371 purchases. Meta says its ads drove 290 purchases, and Google Ads claims 180. That adds up to 470 from ads alone, more than the store sold, and the founder wants to know which team is lying.

Nobody is. Here's why the numbers differ:

  • GA4 misses some purchases: shoppers who block analytics, decline cookies, or pay by UPI and never return to the thank-you page.
  • Meta and Google each count a sale if their ad was involved within their own attribution window. A customer who saw a Meta ad and later clicked a Google ad is claimed by both.
  • Time zones and the moment each tool records a sale can shift orders from one day to the next.

What to do:

  • Take Shopify's 412 as the total. Never add ad platforms' numbers together.
  • Expect GA4 to show fewer purchases than Shopify; there's no official figure for how many fewer. Track the gap week by week. A sudden jump usually means a broken pixel or a payment flow that no longer returns to Shopify.
  • Use each ad platform's numbers to compare its own campaigns, and the total sales trend to judge whether spend is working.
  • Write this down for the team, with which report answers which question.

Frequently asked questions

How do I add GA4 to Shopify?

Through the Google & YouTube app, which connects GA4 and sends ecommerce events including purchases.

Can I still add scripts to Shopify's thank-you page?

No. Additional scripts have been removed. Use app pixels or a custom pixel in customer events.

Why doesn't GA4 match Shopify's sales?

Blocked tracking, declined consent and payments that don't return to Shopify all mean GA4 misses some orders. Shopify's orders are the accurate count.

Do I need Google Tag Manager on Shopify?

Usually not. The official apps and customer events cover most stores. Tag Manager can't run on checkout pages the way it used to.

Want tracking set up and checked end to end? See our Shopify analytics and tracking setup service, or start from the Shopify setup checklist for India.

shopifyshopify analytics setupshopify ga4shopify customer eventsshopify tracking

Gowtham D

Full Stack Digital Marketer and Full Stack Developer

Gowtham D is a full stack digital marketer and full stack developer, a Microsoft Power Platform developer, content writer and data analyst with 15 years of experience.

Gowtham D on LinkedIn

Build or grow your online store

Shopify setup, migrations and the marketing that grows sales, from one team.