PURCHASE TRACKING

Old tracking code still runs after uninstalling a Shopify app

You removed a tracking app from your store. A week later, Meta's browser extension (Meta Pixel Helper, now Meta Ads Data Advisor) still finds its pixel, purchases still count twice, or your browser console shows errors from a script you thought was gone. Uninstalling an app does not always take its code with it. This page shows where old tracking code hides on a Shopify store, how to find it, and how to remove it without breaking what still works.

By Rytis Balys, founder of Tikra Tracking · Checked 12 November 2026

Why it happens

The app added code to your theme. Shopify's help says some apps add code to your online store theme that is not removed automatically when you uninstall the app, and asks you to check the app's listing or its developer for extra uninstall steps. Older tracking apps often pasted their pixel into theme.liquid or a snippet file.

A custom pixel was added by hand. A pixel pasted into Settings > Customer events as a custom pixel belongs to your store, not to the app. Uninstalling the app does not delete it.

Code sits in the checkout's old script boxes. Shopify's help lists theme.liquid, checkout.liquid on Shopify Plus, and the Additional scripts box in the checkout settings as places where pixel code can live, and says to remove existing pixel code manually from each place it exists.

A tag manager still holds the tags. If the app's tags were set up in Google Tag Manager, they keep firing from your container after the app is gone.

Something outside Shopify keeps sending. A server container you run with another provider, or a platform's own integration, is not part of the Shopify app, so uninstalling the app does not stop it.

Check it yourself

  1. 1Read the old app's listing and help for its uninstall steps. Shopify asks you to check them, because some theme code is not removed for you.
  2. 2In your Shopify admin, go to Settings > Customer events. Look at the app pixels and at the Custom pixels tab. Disconnect or delete any custom pixel that belonged to the old app. Deleting a custom pixel cannot be undone, so note what it did first.
  3. 3Go to Online Store > Themes, open the menu next to your live theme and click Edit code. Search theme.liquid and the snippets folder for the old app's name and for pixel calls such as fbq(, ttq., pintrk( or gtag(. Before you delete anything, duplicate the theme as a backup.
  4. 4In Settings > Checkout, the Additional scripts box has been view-only since 28 August 2025, and Shopify says additional scripts are not supported on the upgraded Thank you and Order status pages, which every store has had since 26 August 2026.
  5. 5If you use Google Tag Manager, open the container and pause or remove the old app's tags. Publish the container.
  6. 6In Meta Events Manager, open Datasets, choose your dataset and open Overview. Click the Purchase row, then View Details, and read the Event breakdown with Data source picked. Browser or Conversions API events that keep coming after the uninstall date show that something still sends.
  7. 7Place a test order and check in each platform's own event view that it got one purchase. Meta's browser extension can also show a leftover pixel still loading on your pages.

If purchases now count twice on one platform, read Duplicate purchases after switching tracking apps and Meta counts purchases twice.

Run the free diagnosis

FAQ

Does uninstalling an app remove its pixel?

Not always. Code an app added to your theme, a custom pixel you pasted and tags in a tag manager stay until you remove them. Shopify asks you to check the app's own uninstall steps for this reason.

Can I just delete every pixel I find?

No. Remove only what belonged to the old app. Your new tool, Shopify's own sales channels and other apps may rely on the rest. Duplicate the theme first, so you can go back.

Why do my purchases count twice after switching apps?

The old code and the new tool both send the same purchase, and without a shared event ID Meta cannot tell they are one. Removing the old code is usually the fix.

What if I cannot find where the code is?

Search the theme code for the old app's name and the platform's pixel calls, check Customer events and your tag manager, and ask the old app's developer. Their uninstall steps say where they put it.

Related

Problem

Purchases counted twice after you switched tracking apps

Meta or GA4 counts more purchases than Shopify since you changed tracking apps. Where the old app's pixel, server connection or theme code keeps sending, and how to find it.

Problem

Purchases dropped after a theme or app change on Shopify

Meta or GA4 purchases fell the week you changed your Shopify theme, a checkout app or the cookie banner, while orders did not. Where the pixel stopped and how to check it in ten minutes.

Problem

Facebook & Instagram app connected, but Meta gets few purchases

The Facebook & Instagram app is installed and connected on Shopify, but Events Manager shows few or no Purchase events. Five places where the purchase stops, and how to check each one.

Guide

Black Friday tracking checklist for Shopify

Ten checks to run on your Shopify store's purchase tracking before Black Friday on 27 November 2026: counts against orders, test events, pixels, duplicates, consent, Google Ads delay and a change freeze.

All tracking problems · All guides