How to remove or change a Facebook pixel on Shopify

Updated

A Facebook pixel can be installed in four different places on a Shopify store, and removing it from one leaves the others firing. Check the Facebook sales channel, your installed apps, Settings under Customer events, and the theme code. Clearing all four is what actually stops the events, and it is also the step that fixes most duplicate-event problems.

Quick steps

  1. Check the Facebook sales channel. Open the Facebook & Instagram channel, go to Settings, and disconnect the data sharing or remove the pixel there.
  2. Review installed apps. Any pixel or tracking app can hold an ID. Open each one and clear the pixel, or uninstall the app entirely.
  3. Check customer events. In Settings, Customer events, delete or edit any custom pixel that contains fbq code.
  4. Search the theme. In your theme code editor, search theme.liquid and any snippets for "fbq" or "connect.facebook.net" and remove those blocks.
  5. Confirm it is gone. Load a product page with Meta Pixel Helper. No Facebook pixel should be detected.

The four hiding places

The Facebook sales channel is the obvious one, and often the only one people check. Open it, go to Settings, and disconnect data sharing or clear the pixel selection.

Apps are the second. A previously installed pixel app keeps firing until you clear its configuration or uninstall it. Uninstalling usually removes the web pixel registration, but clear the IDs first so a reinstall does not resurrect them.

Settings then Customer events holds custom pixels. These are easy to forget because nothing on the app list points at them. Look for any snippet containing fbq.

Theme code is the fourth. Open the code editor and search theme.liquid, plus any header or analytics snippet, for fbq or connect.facebook.net. On older stores this is where a long-departed freelancer left a snippet nobody remembers.

Changing a pixel rather than removing it

Swapping an agency pixel for your own is the usual reason. Do not simply delete the old one and add the new: run both for a short overlap so campaigns keep converting while the new pixel gathers signal.

Meta ad sets pointing at the removed pixel will stop optimising the moment the events stop. A new pixel also has no conversion history, so it re-enters the learning phase and cost per acquisition rises for a week or two while it recovers.

A pixel app makes the overlap trivial. Pixelfy holds both IDs at once, so you add the new pixel, watch it collect for a fortnight, then remove the old entry once campaigns have migrated.

Do not delete the pixel in Meta

Removing the pixel from Shopify stops event collection. Deleting the pixel in Events Manager destroys its history, and that history is what your lookalike and retargeting audiences are built from.

If you are ending a relationship with an agency, remove their access in Business settings instead of deleting the asset. If the pixel belongs to the agency Business Manager, you cannot take it with you at all, which is the argument for creating pixels under your own Business Manager from the start.

Verify nothing is left

Load the storefront with Meta Pixel Helper. It should report no pixel found. Then check a product page and the cart, since some installs only fire on specific templates.

Open Events Manager for the old pixel a day later and confirm the activity graph has flatlined. Events still arriving after 24 hours mean one of the four locations was missed, and Customer events is the usual culprit.

Questions

Will removing the pixel delete my Meta audiences?
No. Audiences live in Meta and keep the data already collected. They will stop growing once events stop, and they decay as older visitors fall outside the retention window.
Why does Pixel Helper still show a pixel after I removed it?
Almost always a second install you have not found yet, most often a custom pixel under Settings, Customer events. Clear your browser cache first, then work through all four locations again.

Related guides