Conversions API duplicate events: how Meta deduplicates with event_id

When you send the same event from the browser pixel and from your server with the Conversions API, Meta keeps one of the two only if both copies have the same event name and the same event ID. If the IDs are missing or different, Meta counts both and your conversions are inflated. The fix is to create one ID per event and send it with both copies.

Why send the same event twice at all

The Meta Pixel (formerly Facebook Pixel) runs in the visitor's browser. Ad blockers, browser privacy features and slow connections can stop it. The Conversions API sends events from your server instead, so they arrive even when the browser copy does not. Meta recommends sending both: the browser copy carries details the server cannot see, and the server copy fills the gaps.

The cost is that most events now arrive twice. Meta has to know which browser event and which server event are the same action, so it can count it once. That is what deduplication does.

How Meta deduplicates with event_id

According to Meta's documentation, a browser event and a server event are treated as one when:

  • they have the same event name (for example both are Lead), and
  • they have the same event ID: the eventID option in the pixel call and the event_id field in the server payload.

The two copies must also arrive within a time window, which Meta documents as 48 hours. After that, a second copy is not matched to the first.

In the browser, the ID goes in the fourth argument of the pixel call:

fbq('track', 'Lead', { content_name: 'Car finance', currency: 'EUR', value: 0 }, { eventID: 'lead-7f3a9c21' });

On the server, the same ID goes in the event you send to the Conversions API:

{
  "data": [
    {
      "event_name": "Lead",
      "event_id": "lead-7f3a9c21",
      "event_time": 1795700000,
      "action_source": "website",
      "event_source_url": "https://example.com/apply/",
      "user_data": { "client_ip_address": "203.0.113.7", "client_user_agent": "Mozilla/5.0 ..." }
    }
  ]
}

Note the different spelling: eventID in the browser, event_id on the server. The value must be exactly the same string.

Meta's documentation also describes a fallback that uses other identifiers, such as the browser ID (fbp) or an external_id, when no event ID is present. It is less reliable than a shared event ID, so do not depend on it.

Common mistakes

  1. Two different random IDs. The browser creates a random ID and the server creates another one. Both copies have an ID, so the setup looks correct, but the IDs never match and Meta counts every event twice. The ID must be created once and passed to the other side.
  2. The same ID for different conversions. Some setups use a fixed value, such as the form name or the page address, as the ID. Then two real leads from different visitors, or two genuine purchases, share one ID, and Meta may treat the second as a duplicate and drop it. You lose real conversions instead of removing fake ones.
  3. Server events with no ID for events the browser also sends. A plugin or platform sends a server-side Purchase, the pixel also sends Purchase, and neither has an ID. Meta has nothing to match on. Either add a shared ID or send that event from one side only.
  4. Different event names. The browser sends Lead and the server sends lead or SubmitApplication. The names must match exactly for the pair to be recognised.
  5. Fixing the wrong duplicate. If the browser itself fires an event twice (a reload, a second pixel), a shared ID between browser and server does not solve that. Fix the browser side first; see Meta Pixel firing twice on WordPress.

How to check deduplication

  1. Look at the IDs in the browser. In the developer tools Network tab, filter for facebook.com/tr and find your event. The event ID is sent with the request (as the eid parameter). Note it down.
  2. Look at the IDs on the server. Check your server's log or your plugin's event log for the same event and compare the ID. It must be identical.
  3. Use Test events. In Events Manager, open Test events, use a test event code for the server events, and trigger one conversion. You should see the browser and server copies of the same event, and Events Manager shows whether they were deduplicated.
  4. Check the event overview. In Events Manager, open the event (for example Lead) on the Overview tab. The event details show how many events arrived from the browser and from the server, and information about deduplication. If server events are reported as not deduplicated, the IDs or names do not match.

Meta's screens change over time, so the exact labels may differ in your account. The idea is the same: each conversion should arrive from both sources and be counted once.

How Pixelonce handles this

Pixelonce, a free WordPress plugin, sends an optional Conversions API copy of each browser event and handles the ID for you:

  • One ID per fire, shared by both copies. When an event fires in the browser, Pixelonce creates its ID once and uses it for the pixel call and for the server copy, so the pair always matches.
  • A new ID for every legitimate re-fire. If an event is allowed to fire again (for example a click set to fire every time), each fire gets its own ID, so Meta does not drop real events as duplicates.
  • Only the events the site declares. The server copy is sent only for events you set up in Pixelonce. Events listed under Events sent elsewhere, such as a Purchase your payment system already sends from its server, are never copied.
  • The browser decides, the server only relays. The fire-once rules run in the browser. The server never sends an event the browser did not fire, so the server copy cannot add duplicates of its own.
  • Still counted when the pixel is blocked. If an ad blocker stops the browser copy, the server copy is still sent from your own site and Meta counts it.

Every server send is listed in the plugin's event log with its event ID and Meta's answer. Setup is in the Conversions API docs.

Pixelonce server event log: recent events sent to Meta's Conversions API, each with its event id, pixel and result: sent, a retried error, and one dry run on a non-live host.
Server log: every Conversions API send, its event id and Meta's answer.