The short version
- Meta merges a browser event and a server event into one when they have the same event name and the same event ID, and arrive within 48 hours of each other.
- The event ID has to identify the event (this purchase), not the visitor. For purchases, the order ID is the most reliable choice.
- If Meta reports more purchases than your store had orders, deduplication is the first thing to check.
Running the Meta Pixel and the Conversions API together is the setup Meta recommends. It’s also the easiest way to accidentally double your reported purchases. The difference between the two outcomes is a single field.
If you’re new to why you’d run both, start with Meta Pixel vs Conversions API. This guide is the deep dive on the part that most often goes wrong.
Table of Contents
The rules Meta uses
When Meta receives two events, it treats them as the same event if:
- the
event_namematches exactly (Purchaseandpurchaseare different), and - the
event_idfrom the server matches theeventIDfrom the pixel, and - they arrive within 48 hours of each other.
Meta keeps one of them and discards the duplicate. If any of the three conditions fails, you get two events.

Meta can also try to match events using browser and user identifiers when no event ID is sent, but that’s less reliable. Don’t depend on it; send an event ID.
Choosing the event ID
The event ID must be:
- the same on both sides, so browser and server must either both know it or pass it to each other;
- unique per event, so two different purchases never share one;
- stable, so a page refresh doesn’t create a new one.
For purchases, the order ID ticks all three. Both the thank-you page and your store’s backend know it, and a refresh of the confirmation page produces the same ID instead of a new purchase.
For earlier events like AddToCart or ViewContent, there’s no order ID yet. The usual approach is to generate an ID in the browser when the event happens and pass the same value to the server, for example through your data layer into a server-side GTM container.
// Browser: generate once, send with the pixel, and pass the same value on
const eventId = 'atc_' + crypto.randomUUID();
fbq('track', 'AddToCart', { value: 29.00, currency: 'USD' }, { eventID: eventId });
dataLayer.push({ event: 'add_to_cart', event_id: eventId });
// Server (Conversions API): reuse the value you received
{ "event_name": "AddToCart", "event_id": "<the same eventId>", ... }The ways deduplication breaks

- Each side generates its own ID. The browser uses a timestamp and the server uses a random string. Both are unique; neither matches.
- Different IDs for the same thing. The browser sends the checkout token and the server sends the order number. Both identify the purchase, but they’re not the same string.
- Event names don’t match.
Purchasein the pixel,purchaseor a custom name on the server. - Two server sources. A platform app sends CAPI events and a server-side GTM container sends them too. Now there are three events, and only one pair can deduplicate.
- Server events sent much later. Some webhook or batch setups send purchases hours or days later. Past 48 hours, they won’t merge.
My view: on Shopify, if the Facebook & Instagram app is set to Maximum data sharing, it already handles both routes and their IDs. Most duplication problems there come from adding a second CAPI app or a server-side container on top. Pick one source of server events and stick to it.
How to test it
- In Events Manager, open your dataset and go to Test events. Use the test code it gives you on the server side while testing.
- Place a test order. You should see a browser Purchase and a server Purchase arrive with the same event ID, and the server one marked as deduplicated.
- Refresh the thank-you page. No new Purchase should be counted.
- Remove the test code when you’re done, so live events aren’t sent as test events.
- After a few days, check the event’s overview in Events Manager for the deduplication rate, and compare a week of Meta purchases with your real orders.
Symptoms that point to a deduplication problem
- Meta reports more purchases than your store had orders.
- Purchases roughly doubled the day a CAPI app or server container went live.
- Cost per purchase dropped suddenly with no change in sales.
- Events Manager shows browser and server events, but few or none deduplicated.
Seeing double? I set up Meta Pixel and Conversions API with matching event IDs so each sale is counted once. See Meta Conversions API setup or ask for a free tracking check.



