How to find duplicate Meta pixels on Shopify (and which one to keep)
Meta counting sales twice? Where duplicate pixels hide on a Shopify store and how to find each one: Customer events, theme code, apps and server events.
Check four places: Settings → Customer events, your theme code, the Facebook & Instagram
app’s data sharing setting, and any app that sends events to Meta from a server. Then open
your store with the browser’s Network tab filtered to facebook.com/tr: every row is one
event leaving the page, with the pixel ID and event name in it, so a duplicate shows up as
two rows where you expected one.
A Shopify store can send events to Meta from five kinds of source: the Facebook & Instagram app, app pixels and custom pixels in Customer events, pixel code in the theme (directly or through Google Tag Manager), and server-side tools using Meta’s Conversions API. Pixel Helper misses some of these, because Customer events pixels run in a sandbox and server events never touch the browser. So list what’s installed in Shopify, confirm what the browser sends in the Network tab, and check Events Manager for anything sent from a server.
Before you start
You’ll need about twenty minutes and:
- access to Shopify admin, including the theme code editor
- access to the Meta pixel (dataset) in Events Manager
- your pixel ID, from Events Manager, so you can tell your pixel from someone else’s
- a desktop browser with no ad blocker running, or a private window with extensions off
If your store shows a cookie banner, accept it when you test. Shopify doesn’t run marketing pixels for shoppers who decline, and you won’t see anything to count.
Write down every source you find as you go. A simple list of “where, which pixel ID, which events” is all you need for the last step.
Step 1: List everything in Customer events
Go to Settings → Customer events in Shopify. This page lists every pixel that can run on your storefront and in checkout, in two groups:
- App pixels, added by installed apps. The Facebook & Instagram app shows up here, and so does any tracking app that installs its pixel the modern way.
- Custom pixels, pasted in by you, an agency or a previous developer. Open each one and
look for
fbq(or your pixel ID.
Look at the status next to each entry. A disconnected custom pixel doesn’t run, so it isn’t a duplicate, but it’s worth deleting so nobody reconnects it by mistake.
A duplicate that turns up here a lot is the same pixel ID sent twice: once by the Facebook & Instagram app and once by a custom pixel someone added “to be safe” after Shopify’s checkout upgrade.
Step 2: Check the Facebook & Instagram app
Open the Facebook & Instagram app (Shopify lists it as a sales channel, so people often just call it “the channel”) and go to its Data sharing settings. Note two things:
- Is customer data sharing on, and at which level? Standard sends events from the browser only. Enhanced and Maximum also send them server-side through the Conversions API.
- Which pixel is selected? If it’s not the one your ads use, it’s a separate pixel, not a duplicate, and you’ve got a different problem.
If data sharing is on, the channel is a Purchase source. Every other source you find in the next steps is competing with it.
Step 3: Search the theme code and app embeds
Older installs live in the theme, and they’re easy to forget. In Shopify, go to Online Store → Themes, click the … menu next to your live theme and choose Edit code. Use the search box in the file list to look for:
fbq(, which is how Meta’s pixel code calls itselfconnect.facebook.net, the address Meta’s script loads from- your pixel ID
GTM-, which means Google Tag Manager is installed and may load a Meta tag of its own
Check theme.liquid first, then snippets. If you find GTM, open the container in Google Tag
Manager and look for a Meta or Facebook pixel tag. That’s a source too, even though the theme
never mentions Meta.
Then go back to Themes, click Customize, and open App embeds in the left sidebar. Apps can add scripts to every page from here, and switching an app embed off is how you stop that without touching code.
Theme code can’t run in Shopify’s checkout, so a pixel found here sends PageView, ViewContent and AddToCart but not Purchase. It still doubles those events, and it skews the audiences and optimisation that depend on them.
Step 4: Watch what the browser actually sends
Steps 1 to 3 tell you what’s installed. This one tells you what fires. It also catches pixels the Meta Pixel Helper extension can’t see, since the Network tab is the browser’s own log of every request it makes.
- Open your store’s home page in Chrome, right-click and choose Inspect, then open the Network tab.
- Tick Preserve log and type
facebook.com/trin the filter box. - Reload the page.
Each row is one event sent to Meta from the browser. Click a row and open Payload (or
read the request URL): id is the pixel ID and ev is the event name.
Here’s how to read it:
- Two PageView rows with the same
id: the same pixel is installed twice. - Rows with two different
idvalues: two different pixels are running. One of them may belong to an old agency or a previous owner. - One PageView row: no browser duplicate on this page.
Now add a product to the cart and watch for AddToCart rows. If you can, place a real order (or a test order with Shopify Payments in test mode) and count the Purchase rows on the Thank you page. In the browser, Purchase can only come from Customer events, so two Purchase rows means two entries from step 1 or 2 are both sending it.
To work out which source sent a row, hover over its Initiator column. Requests from
Customer events pixels usually start from a file whose path contains web-pixel; requests
from theme code or GTM start from Meta’s fbevents.js loaded by the page itself.
Step 5: Check server events in Events Manager
Server-side sources don’t show up in the browser at all. The Facebook & Instagram app at Enhanced or Maximum, a tracking app using the Conversions API, or a server-side GTM container all send events from a server, so you have to look at what Meta received.
In Events Manager, open your pixel and click into the Purchase event. Meta shows how the events arrived (browser, server, or both) and, in recent versions, a deduplication section showing how many browser and server events it was able to merge.
Browser plus server isn’t a problem by itself. That’s how the Facebook & Instagram app is meant to work, and Meta merges the pair when both carry the same event ID. The problem is two different tools sending Purchase, because each makes up its own event IDs and Meta has no way to tell they’re the same order.
So cross-check against your list. Go to Settings → Apps in Shopify and open the settings of every app that mentions Meta, Facebook, Conversions API or “server-side”. Note which pixel each one sends to. Any app sending to your pixel, plus the channel at Enhanced or Maximum, means two server sources.
What you found, and what it means
| Found | Means | Fix |
|---|---|---|
| Same pixel twice in Customer events | Every event doubled | Disconnect one |
| Facebook app sharing plus tracking app | Purchases doubled | Turn one off |
Theme fbq( plus Customer events pixel |
Storefront events doubled | Delete theme code |
| GTM Meta tag plus another source | Storefront events doubled | Pause the tag |
| A pixel ID you don’t recognise | Data going elsewhere | Find the owner |
If you find exactly one source and Meta still shows more purchases than orders, the cause is something else: the Thank you page loading twice for shoppers who pay with a redirect method, or a URL rule in Meta creating purchases. Why Meta shows a different number of purchases than Shopify covers both.
Pick one source and remove the rest
The fix for duplicate pixels is always the same: one source sends events to each pixel, and everything else is turned off, not just hidden.
- Keeping the Facebook & Instagram app? Disconnect any tracking app that sends to the same
pixel, delete custom pixels that duplicate it, remove
fbq(code from the theme and pause any Meta tag in GTM. - Keeping a tracking app? Do the same, and turn customer data sharing off in the Facebook & Instagram app. You can keep the channel installed for your catalog.
Facebook and Instagram app Conversions API vs a third-party app helps you choose. Then repeat step 4 a day later and check that each event shows up once.
Where SuperPixel fits
SuperPixel is the tracking app I build. It won’t find your duplicate pixels for you, and it won’t remove them. That part is the checklist above.
What it gives you is one known source once you’ve cleaned up. It installs its own pixel through Shopify’s customer events right after you install it, so there’s no theme code to edit. It sends page views, product views, add-to-carts, checkouts started and purchases to Meta’s Conversions API from its own server.
Each purchase is matched to Shopify’s paid order, so a reloaded Thank you page or a return from a payment provider is one Purchase, not two. Every event carries a stable event ID, so Meta merges retries. The Live Events page shows the most recent events and which of your pixels each one went to, which makes the “which pixel ID” question easy to answer for this source.
The limit, again: it’s one more source. If you add it without turning off the Facebook & Instagram app’s data sharing or your old pixels, Meta will count those sales twice. It costs $29 a month or $232 a year, billed through Shopify, and your first 5 purchases are sent free so you can test it.
FAQ
Can I have two Meta pixels on one Shopify store?
Yes, if they’re different pixels doing different jobs, for example one for your own ads and one for a partner. What causes trouble is the same pixel ID installed twice, because Meta usually counts each event from each install.
Why doesn’t Pixel Helper show my Shopify pixel?
Customer events pixels run in a sandbox the extension often can’t see into, so it can report no pixel when one is working, or show one pixel when two are running. The Network tab check in step 4 sees every request the browser sends, sandboxed or not.
Will Meta deduplicate the extra events for me?
Only when the duplicates share the same event name and event ID. Two tools almost never generate the same IDs, so Meta treats their events as separate. The Facebook & Instagram app’s own browser and server events do share IDs, so those are merged.
I uninstalled an old tracking app. Can its pixel still be running?
Yes. Code an app pasted into your theme can stay after you uninstall it. Search the theme for
fbq( and your pixel ID, and check that the app’s entry is gone from Customer events and App
embeds.
How long until Events Manager shows the fix?
Test events and the Network tab show the change straight away. The daily totals in Events Manager take a day or two to settle, so compare a full week after the fix with Shopify orders.
Try it on your store
If you’ve cleaned up and want a single source you can watch, you can try SuperPixel free on your first 5 purchases and check the Live Events page while you place a test order. If you get stuck working through the checklist, email me at hello@superpixel.app and tell me what you found.