Selling on ChatGPT in multiple countries? The only app with country-specific feeds

Facebook Pixel Deduplication on Shopify: Fix Double Events

  • Oct 05, 2026
  • Alex
  • 1,100 view(s)

Facebook pixel deduplication is how Meta merges the browser (Pixel) copy and the server (Conversions API) copy of the same event into one, using a shared event ID and the same event name. If your Shopify store shows two, three or four AddToCart or Purchase events for one action, either the two copies are not carrying a matching ID, or more than one tool is firing the same event.

Those are different problems with different fixes. Meta merges a browser and a server copy only when they reach the same pixel within 48 hours with a matching event ID; two copies from the same source are never merged. Pick your fix by setup:

  • Several pixels, Pixel plus Conversions API from one place: a pixel app such as our OC Meta Pixel sends both copies with a shared ID. Remove every other source of the same events on that pixel.
  • Shopify’s Facebook & Instagram channel: keep it as the only source for that pixel and delete old theme code and manual events.
  • The “identical events share a matching deduplication key” warning: the two copies don’t share an event ID. Fix the ID, then wait a few days.

This guide covers, in order: how Meta deduplication works, what the warning means, a symptom-to-fix table, a 10-minute ratio test, a 4-step fix, and how to prevent it with one tool.

Facebook pixel deduplication on Shopify: one event, one count
One action should reach each pixel once from the browser and once from the server, with one shared ID.

How Meta deduplication works (the three rules that matter)

Meta’s developer guide on handling duplicate Pixel and Conversions API events sets out the rules. Three of them explain almost every Shopify case:

  1. Match on event_id plus event name. The browser sends eventID (the fourth argument of the fbq('track', …) call) and the server sends event_id. When those values match and the event names match (Purchase = Purchase, not “purchase”), Meta keeps one copy.
  2. The 48-hour window. Copies are merged only when they reach the same pixel within 48 hours of the first event with that ID. A server event delayed by a queue or a retry beyond that window is counted again.
  3. Same-source duplicates are never merged. Meta states that duplicates within one source (two browser events, or two server events) are not discarded. That is why event_id alone cannot fix “four AddToCart events for one click.”

There is also a fallback method that matches the event name plus fbp or external_id. It only works when the browser event arrives before the server event, so treat it as a backup, not your main key.

What the “matching deduplication key” warning means

Events Manager shows the warning “Make sure identical events share a matching deduplication key” when it receives the same event from the Pixel and from the Conversions API but cannot pair them. The usual Shopify causes are:

  • Only one side sends an ID (for example, the server sends event_id but the theme pixel sends none).
  • Each side builds its own ID, such as the order number on the server and a random string in the browser.
  • Event names differ in spelling or case between the two sides.

After a fix, the warning can take a few days to clear. If it is still there after a week, or Meta’s purchase count stays far above Shopify’s, the problem is not solved.

Diagnose first: symptom, likely cause, fix

Merchants report three patterns again and again in public ad and Shopify forums. They look alike in Ads Manager but need different fixes:

What you see Likely cause What to do
One add to cart shows a Browser and a Server AddToCart, but the server row is not marked deduplicated Deduplication failing between Pixel and CAPI Make both copies carry the same event_id and event name
One add to cart shows 3–4 AddToCart events, several marked “Browser” Two or more tools fire the same event (same-source duplicates) Keep one source per pixel; remove theme code, manual events, extra apps
Diagnostics say your Purchase events all send the same price A hand-built event sends a fixed or empty value instead of the order total Delete the manual event; let your main source send value and currency
AddToCart or Purchase does not appear at all Not a duplicate problem: the event is missing Check the connection and data sharing level; see our Pixel and Conversions API errors guide

Data checked 29 Oct 2026 against Meta’s developer documentation and the Shopify Help Center pages linked in this article.

The 10-minute ratio test

Before you change anything, compare numbers for the same 7 days. Divide Meta’s Purchase count for the pixel by the number of paid Shopify orders that could have fired it (skip draft orders and POS sales):

  • About 1.0: deduplication is working. Small gaps are normal.
  • About 2.0: browser and server copies are not merging. Fix the event ID.
  • 3.0 or more: an extra source is firing on top of the Pixel and CAPI pair. Hunt for the extra tool first.
  • Below 0.8: events are being lost, not doubled. That is a tracking gap, not a deduplication issue.

One trap: if your ad account uses two pixel IDs, each pixel counts its own Purchase. Meta only merges copies sent to the same pixel, so two pixels reporting the same sale is expected, not a bug. Compare one pixel at a time.

Then open Events Manager > your pixel > Test Events, add one product to the cart in another tab, and count the rows. One Browser row plus one Server row with the same event ID, and the server row marked as deduplicated, is the healthy result.

How to fix duplicate events on Shopify (4 steps)

There are four steps to fix duplicate events on Shopify: list every source that can fire the pixel, keep one source per pixel, make both copies share one ID, and re-test.

Step 1: List every source that can fire the pixel

Check these places on your store, in this order:

  • Settings > Customer events: app pixels and custom pixels. Shopify’s guide to managing custom pixels warns you to remove existing pixel code first so events are not counted twice, and to check theme.liquid and checkout Additional scripts.
  • Sales channels > Facebook & Instagram > Settings > Data sharing settings: which pixel the channel uses and at what level. Shopify’s data sharing page explains that Enhanced and Maximum send the Pixel plus the Conversions API.
  • Your theme code: search theme.liquid for fbq left over from an old install.
  • Meta Events Manager: events created with the Event Setup Tool. A Shopify Community thread traced a doubled AddToCart to a manual Event Setup Tool event running next to the Shopify integration; deleting the manual event fixed it.
  • Other apps: page builders, upsell apps or tracking tools that add their own Meta events.

Step 2: Keep one source per pixel

Pick one tool to send the Pixel and Conversions API for each pixel ID, and turn the others off for that pixel. Disconnect a custom pixel in Settings > Customer events, remove manual theme code, and delete Event Setup Tool events. Disconnecting a custom pixel stops it without deleting it, so you can undo the change.

Step 3: Make sure both copies share one ID

If you built the setup yourself, generate the ID once per action and pass the same value to the browser call and the server call. For Purchase, many teams derive it from the order or checkout ID so it is the same on both sides. Use Meta’s standard names (PageView, ViewContent, AddToCart, InitiateCheckout, Purchase) exactly.

Step 4: Re-test and give it time

Repeat the Test Events check and the ratio test. Test Events updates within minutes; reports and the diagnostics warning can lag for several days. If you are short on time, do Step 1 and Step 2 first: an extra source causes the 3–4x counts that event IDs can never fix.

Preventing it: choose one tool that sends both copies

The way to prevent duplicates is to let one tool send both the Pixel and the Conversions API copy for each pixel. There are three options:

Disclosure: Orichi builds OC Meta Pixel‑ Facebook Pixels. Facts about it below come from its public Shopify App Store listing, checked on 29 Oct 2026.

OC Meta Pixel‑ Facebook Pixels (ours). Its Shopify App Store listing shows 5.0 stars from 114 reviews and says browser and server events are deduplicated. The Free plan lists 1 pixel with Conversions API and 10 tracked orders a month; Lite is $9.99 a month (3 pixels, 100 orders); Pro starts at $19.99 a month with unlimited pixels and orders. Extra Conversions API connections are $4.99 a month on paid plans. It does not deduplicate against Shopify’s Facebook & Instagram channel. If the channel runs at Enhanced or Maximum on the same pixel, turn off the channel’s data sharing for that pixel before you switch to the app; if you are happy with the channel, keep it and skip the app.

Shopify’s Facebook & Instagram channel. Free, made with Meta, and sends the Pixel plus Conversions API at the Enhanced or Maximum level. It works well when you need one pixel and no per-market rules.

A manual or tag manager setup. Gives full control, but you own the event ID logic, the 48-hour timing and every future theme change.

For background on why stores run both copies at all, read Meta Pixel vs Conversions API for Shopify. To see which events fire on a page in real time, use the Facebook Pixel Helper.

FAQ

What is event_id in Facebook pixel deduplication?
A unique value for one action, such as one purchase. The browser sends it as eventID and the server as event_id. Matching values let Meta keep a single copy.

Does duplicate tracking hurt my ads?
It inflates reported results, so campaigns look better than they are and Meta optimizes on wrong numbers. Fix it before you scale budgets.

How long does the deduplication warning take to go away?
Usually a few days after the fix. Use Test Events to confirm it the same day.

Is two pixels on one store a duplicate?
No. Each pixel is its own dataset. Duplicates only exist when one pixel receives the same event more than once.

Does fixing deduplication lower my reported sales?
Yes, if you were double counting. Reported purchases and ROAS fall to match real orders; real sales do not change.

Can I run Shopify’s channel and a pixel app at the same time?
Yes, on different pixels. On the same pixel, use one of them for events, or you risk same-source duplicates that Meta will not merge.

Why do I see Browser and Server rows for every event?
That is normal for a Pixel plus Conversions API setup. The question is whether they share an ID and the server row is marked deduplicated.

Do custom events deduplicate too?
Meta’s rules are the same for any event name: matching event_id and name, same pixel, within 48 hours.

Next step

Run the ratio test today. If you want Pixel and Conversions API events for one or many pixels handled from one app, try OC Meta Pixel‑ Facebook Pixels on its free plan, then remove the other sources for that pixel and test again.

Editor’s Pick