Many stores send each purchase to Meta twice: once from the Meta Pixel in the browser and once from a server through the Conversions API. This gives Meta a second path when the browser event is lost. It also creates a risk of counting one order as two.
The problem: two IDs for one order
eventID: order-10482event_id: 10482What Meta compares
The recommended method uses two values. The event name sent by the Pixel must match event_name from the server. The Pixel’s eventID must match the server’s event_id. Meta treats matching events received within 48 hours of each other as one and keeps the first.
How to fix it
eventID: order-10482event_id: order-10482Add the ID to the browser event:
fbq('track', 'Purchase',
{ value: 42.50, currency: 'USD' },
{ eventID: 'order-10482' }
);
The server request for the same order then sends "event_name": "Purchase" and "event_id": "order-10482".
Choosing a good event ID
An order number works well for purchases because both the browser and the server already know it. For leads, create a unique ID when the form is submitted and pass it to both sides. Do not generate a separate random value in each place, because the two will never match.
- Use identical event names on both sides.
- Do not add a prefix on one side only.
- Never reuse an ID for a different order.
- Send server events promptly.
How to test
- Open Events Manager and start a test events session.
- Place a test order.
- Check that the browser and server events both arrive.
- Compare the two IDs character by character and confirm the events are shown as deduplicated.
Quick answers
Do I need deduplication if I only use the server?
Not for that event. It is needed when the same event is sent from both the browser and the server.
Should I switch the Pixel off after adding the Conversions API?
Not necessarily. Using both with correct deduplication gives each event two paths.
Meta documents the rules on its deduplication page. We set this up as part of our Conversions API service.
