On this page
Short answer: when you send the same purchase from the browser (Meta Pixel) and from your server (Conversions API), Meta only keeps one copy if both copies carry the same event name and the same event ID. On the Pixel that ID goes in eventID, on the server it goes in event_id. Use the order number for purchases. If the IDs are missing or different, Meta counts the purchase twice, your reported sales go up and your cost per purchase looks better than it really is.
This guide explains how the matching works, where it usually breaks, and how to check your own store in about 10 minutes.
Why you send every event twice
Running the Pixel and the Conversions API together is Meta's recommended setup. The browser copy can be lost to ad blockers, cookie banners and closed tabs. The server copy can't see everything the browser sees, such as the fbp and fbc cookies, unless you pass them along. Sending both gives Meta the best chance of receiving every purchase with good customer data. On Shopify, whether the server copy exists at all depends on your data sharing level.
The catch: Meta now has two copies of the same purchase. Deduplication is how it decides they are one event, not two.
How Meta matches the two copies
Meta treats a browser event and a server event as the same event when both of these match:
| Browser (Meta Pixel) | Server (Conversions API) | Must match |
|---|---|---|
event (for example Purchase) |
event_name |
Exactly the same name |
eventID |
event_id |
Exactly the same value |
A few rules from Meta's documentation that matter in practice:
- 48 hours. Meta only looks for a matching pair within 48 hours. Send the server copy late, after that window, and it counts as a new event.
- Which copy is kept. Meta generally keeps the copy it receives first. If both arrive within about 5 minutes of each other, it favours the browser copy.
- Only across sources. Deduplication works between the Pixel and the Conversions API. Two identical browser events, for example from a thank-you page that loads twice, are not merged. That's a different problem, covered in why Meta purchases don't match your Shopify orders.
Where the event_id goes
On the Pixel, the event ID is the fourth argument of the fbq('track') call:
fbq('track', 'Purchase', { value: 49.99, currency: 'USD' }, { eventID: 'order_10482' });
On the server, it's the event_id field of the event you send to the Conversions API, next to event_name:
{ "event_name": "Purchase", "event_id": "order_10482", "event_time": 1795180000, "action_source": "website" }
Which value to use:
- Purchases: the order or transaction number. Both the thank-you page and your server already know it, so it's easy to keep identical.
- Other events (AddToCart, InitiateCheckout): a random value is fine, as long as the browser and the server send the same one for that event. In practice that means generating it once in the browser and passing it to the server.
Meta also supports a fallback: matching on event_name plus fbp and/or external_id. It is less reliable and generally only works when the browser copy arrives first, so treat event_id as the main method.
Where deduplication usually breaks
- Two different tools send the two copies. For example, a theme or GTM Pixel in the browser, and a separate app for the Conversions API on the server. Each tool makes its own event ID, so they never match. One tool should own both sides, or you must pass the same ID between them.
- The ID is formatted differently.
10482from one side andorder_10482or#10482from the other are different values to Meta. - The event names differ.
Purchaseon the Pixel andpurchaseor a custom name on the server won't pair. - A second Pixel install. If the Pixel is installed twice, you get two browser copies that no event ID can merge. Remove the extra one first (often leftover code from a tracking app you removed).
- Late server events. Some setups batch server events and send them hours later. Anything outside the 48-hour window counts again.
While you are in the server events, check the warnings in Diagnostics too. A server sender that skips the page URL shows up as event_source_url missing, and it is often the same tool that breaks deduplication.
Test it in 10 minutes
- Open Events Manager, choose your dataset (Pixel) and open Test events. Copy the test code if your Conversions API setup asks for one.
- Place a real test order on your store, the way a customer would, with a cheap product or a 100% discount code.
- In Test events, find the Purchase. You want to see it received from both Browser and Server, with the same event ID, shown as deduplicated.
- Check the value and currency on both copies. They should match each other and the order.
- Then open the Diagnostics tab of the dataset and look for deduplication warnings over the last few days.
If you see two purchases for one order, go back to the list above. Most of the time it's reasons 1 or 2.
What good looks like
- Every Purchase arrives from both browser and server, with the same event ID (the order number).
- Test events shows them as one deduplicated event.
- No deduplication warnings in Diagnostics.
- Over a normal week, purchases received in Events Manager are close to your real store orders. A few missing is normal (blocked browsers, consent choices). More purchases than orders means something is still double counting.
Once deduplication works, the next thing to raise is Event Match Quality: how much customer data each server event carries. If you want to check the rest of your setup too (duplicate pixels, GA4 and Google Ads), the free 15-point tracking audit walks you through it in about 30 minutes. GA4 has its own dedup key, transaction_id: see the GA4 duplicate purchases guide.
Questions people ask
Do I need both the Meta Pixel and the Conversions API?
Meta recommends using both together. The Pixel sees browser data such as cookies, and the server copy still arrives when the browser one is blocked. Deduplication with a shared event_id stops the overlap from being counted twice.
What should I use as the event_id for purchases?
The order or transaction number. It exists on the thank-you page and on your server, so both copies can send exactly the same value. Keep the format identical on both sides.
How long does Meta wait to match the two events?
Meta deduplicates a browser event and a server event with the same event name and event ID if they reach the same Pixel ID within 48 hours. Anything later counts as a new event.
Will deduplication fix purchases firing twice on a page reload?
No. Deduplication only merges a browser copy with a server copy. Two browser copies of the same purchase, for example from a thank-you page that loads twice, both count. Fix that on the page itself, so the Purchase event only fires once per order.
Where do I check whether deduplication is working?
In Events Manager, use Test events while you place a real test order and confirm the Purchase shows from both browser and server as one deduplicated event. Then check the dataset's Diagnostics tab for deduplication warnings.
Sources
- Meta for Developers: Handling duplicate Pixel and Conversions API events
- Meta for Developers: Server event parameters
- Meta for Developers: Using the Conversions API
- Meta for Developers: Dataset Quality API
Platform menus and defaults change often. This guide reflects them as of 29 Nov 2026. Nothing here promises results: they depend on your store, offer, budget and execution.