How do you set up conversion tracking for a Shopify store?

If your ads can't see your sales, you're flying blind and paying for it. The 2026 way to wire up Google, Meta, and TikTok tracking on Shopify — without the deprecated methods that silently broke.

Every Shopify store has two versions of reality: the sales that actually happened, and the sales your ad platforms think happened. When those two disagree, you make bad decisions with real money — killing ads that were working, scaling ads that were not, and wondering why the numbers never add up.

Conversion tracking is the wiring that connects them. It tells Google, Meta, TikTok, and Pinterest what happened on your store — who viewed a product, who added to cart, who bought — so your ads can optimize for actual buyers instead of random clicks.

Short answer: in 2026, you set up tracking through Shopify's official channel apps — Google & YouTube for Google Analytics and Google Ads, Facebook & Instagram for the Meta pixel — plus Custom Pixels under Settings for everything else like TikTok. The old way of pasting code into theme files and the Additional Scripts box is deprecated and quietly breaking. Do it the supported way and your purchase data survives checkout.

Why this matters more than most store owners think

Ad platforms are optimization machines, and they optimize for what they can see. If Meta's pixel never reports a purchase, Meta cannot learn who your buyers are. It keeps showing your ads to whoever clicks cheapest — window shoppers, accidental taps, bots. Your cost per acquisition climbs, and the dashboard tells you everything is fine because it literally cannot see the problem.

The numbers: merchants who lose checkout tracking often see reported performance drop while real sales hold steady. Nothing changed in the business. The ads just went blind. This happened at scale when Shopify deprecated the old Additional Scripts field — stores that never migrated kept running on tracking that no longer fires on the new checkout, and their ad platforms slowly starved of data.

Good tracking does not just measure. It feeds the algorithm. Every purchase event is a lesson for the machine about who buys from you. Starve it and it guesses. Feed it and it finds more of the same.

The landscape changed: what got deprecated

For years, the standard advice was to paste tracking code into your theme files or into the "Additional Scripts" box in checkout settings. That era is over.

Shopify moved to a checkout built on extensibility — a sandboxed system where old inline scripts no longer run. The Additional Scripts field is deprecated. If your Meta pixel or Google Analytics snippet is still sitting inline in your theme or in that box, it may be firing on product pages but going silent at exactly the moment that matters: the purchase.

The fix is not to find a cleverer place to paste the code. It is to use the supported paths Shopify built for this. Three of them cover nearly everything.

Step one: Google through the official channel app

For Google Analytics 4 and Google Ads conversion tracking, install the Google & YouTube app from the Shopify App Store. It is free, built by Google, and it runs GA4 through Shopify's supported integration — which means it fires correctly on the new checkout with purchase data intact.

Connect your Google account, select your GA4 property, and follow the onboarding. The app sends the standard e-commerce events automatically: page views, product views, add to cart, begin checkout, and purchase, with revenue attached.

Once it is connected and confirmed working, remove any old inline gtag or analytics snippet from your theme and from the Additional Scripts field. Running both the app and the old code is how you get double-counted purchases — the other classic tracking failure, where every sale shows up twice and your numbers look better than reality.

In GA4, go to your events and mark purchase as a conversion. That is the event that tells Google Ads what a sale is worth.

Step two: Meta through the official channel app

For the Meta pixel, install the Facebook & Instagram app — also free, also official. This is the important one, because Meta's tracking does something the old pixel snippet could not: it uses the Conversions API alongside the browser pixel.

The Conversions API sends conversion data server-side, straight from Shopify to Meta, bypassing the browser entirely. That matters because browser tracking is increasingly blocked — ad blockers, Apple's tracking prompts, browsers that expire cookies early. The server-side path keeps purchase events flowing even when the browser path is cut off. The two are deduplicated automatically, so you do not double-count.

Connect the app, follow the setup wizard to link your Facebook Business account, then open Meta Events Manager and confirm that purchase events are arriving with customer data attached. Only after you see live purchase events should you delete the old inline pixel snippet from your theme.

Step three: everything else as a Custom Pixel

For tracking the channel apps do not cover — TikTok, Pinterest, Snapchat, or any bespoke tag — Shopify's supported method is a Custom Pixel. Go to Settings, then Customer events, then Add custom pixel. This is the sanctioned way to run custom JavaScript tracking on the extensible checkout.

TikTok, Pinterest, and Snapchat each have their own Shopify channel apps too, and those are the simplest path if you run ads on those platforms: install the TikTok app, the Pinterest app, the Snapchat Ads app, and each auto-configures its tracking. Use Custom Pixels for anything the apps do not handle.

The rule is simple: if there is an official app, use it. If there is not, use a Custom Pixel. Paste nothing into theme files. The theme is for design, not tracking, and anything you paste there is one theme update away from disappearing.

Step four: verify before you trust it

Tracking you have not tested is tracking you do not have. The verification sequence:

Place a test order on your store — a real checkout flow, even with a discount code that makes it a dollar. Then check three places: GA4's realtime view should show the purchase event with the right revenue; Meta Events Manager should show a Purchase event with customer data; your Shopify analytics should agree with both on the order count.

Use the Meta Pixel Helper browser extension to watch events fire as you click through product pages and checkout. It shows you exactly what the pixel sees, page by page.

Check for duplicates last. One purchase should produce one purchase event in each system. If GA4 shows two purchases for one order, you still have old code running somewhere — find it and remove it. Duplicate tracking inflates your numbers and teaches the ad algorithms that every customer buys twice, which is a flattering lie that costs money.

The mistakes that cost the most

The most expensive mistake is the silent one: tracking that broke months ago and nobody noticed. The store keeps selling, the ads keep spending, and the algorithm keeps optimizing on stale data. Audit your tracking quarterly. Place a test order. Look at Events Manager. Ten minutes, four times a year.

The second is running old and new tracking side by side during a migration — the overlap period where everything is double-counted and the numbers look wonderful and wrong. Migrate, verify the new path works, then delete the old code. Never the reverse order.

The third is tracking everything and looking at nothing. Conversion tracking is only useful if someone reads the funnel. In GA4, build a funnel exploration: page view to product view to add to cart to begin checkout to purchase. The step with the biggest drop-off is where your money is leaking. Fix that before you spend another dollar on ads.

What to do when events go missing

Sooner or later, something will stop firing. A purchase shows up in Shopify but not in Meta Events Manager. GA4 shows half the revenue your store actually made. Do not panic and do not reinstall everything at once — diagnose in order.

First, check whether anything changed recently: a theme update, a new app installed, a settings change. Tracking breaks most often right after something else was "improved." Theme updates are the classic culprit — they can wipe custom code, and if you still had any inline snippets, they may have vanished with the update.

Second, isolate the break. If Meta Events Manager is missing purchases but GA4 is fine, the problem is in the Meta path — check the Facebook & Instagram app connection, confirm the pixel ID matches, and look for errors in Events Manager's diagnostics tab. If both are missing the same orders, the problem is earlier: the Custom Pixel or channel app integration itself.

Third, use the browser tools. The Meta Pixel Helper extension shows you live which events fire on each page — walk through a product page, add to cart, and begin checkout, watching for ViewContent, AddToCart, and InitiateCheckout. For GA4, the DebugView in the admin panel shows events as they arrive in real time. These tools turn "tracking is broken" into "the purchase event never fires on the thank-you page," which is a problem you can actually fix.

Fourth, check for the quiet killers: ad blockers in your own test browser (test in an incognito window with extensions disabled), consent banners blocking tags before the visitor accepts, and duplicate pixels from two sources fighting each other. A consent management app that defaults to "deny all" will silently starve every platform at once — the tracking is fine, the permission is missing.

And if you recently migrated from the old Additional Scripts method, confirm the old code is actually gone. The most common "broken tracking" ticket in 2026 is a store running the new channel apps and the old inline snippets, producing double events, panicked removal of the wrong one, and then no events at all. One path per platform. Verify, then delete the other.

What good tracking buys you

None of this is glamorous. Nobody opens a store dreaming about pixel configuration. But conversion tracking is the difference between advertising as gambling and advertising as a system — between "we spent $2,000 and hope it worked" and "we spent $2,000, it returned $6,400, and the machine now knows exactly who to find next."

Set it up once, verify it, and check it quarterly. It is the least exciting hour you will spend on your store, and one of the highest-returning.