Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta CAPI not deduplicating: fix event_id mismatch

TRK-179High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

The Meta Pixel runs in the visitor's browser. The Conversions API (CAPI) sends the same events from your server. Many setups run both so that ad blockers and browser limits cost you fewer conversions.

To avoid counting each action twice, Meta deduplicates. It treats a browser event and a server event as one when they share the same event_name and the same event_id (the browser side calls it eventID). An event_id mismatch means the two sides send different values, so Meta sees two separate conversions.

Typical causes: the server generates its own random ID, the browser and server each build the ID differently, the browser ID is created on page load but the server uses an order number, or the event names differ in case (Purchase vs purchase).

How a mismatch double counts one purchase
  1. Customer buysOne order is placed
  2. Pixel sends eventeventID = abc123
  3. CAPI sends eventevent_id = 98765
  4. Meta deduplicationIDs differ, no merge
  5. ReportsPurchase counted twice

Both events describe one order, but the IDs differ, so Meta keeps both.

Why it costs you leads or sales

Inflated conversion counts make campaigns look better than they are. Cost per lead looks lower, ROAS looks higher, and you may scale ads that are not paying back. Meta's delivery system also learns from the duplicated signals, so optimisation is trained on noisy data.

The numbers also stop matching your CRM, shop orders and GA4. That leads to arguments about which report is right and slow decisions.

Purchases reported vs real ordersExample numbers
Purchases reported vs real orders (example)Real orders: 100 purchases; Reported with mismatch: 190 purchases; Reported after fix: 102 purchases073146100190102Real ordersReported with mismatchReported after fixpurchases

Example: 100 real orders are reported as 190 in Ads Manager because most Pixel and CAPI events fail to merge.

How to check if your site has it

Check deduplication in Meta and in the browser
  1. Open Events Manager

    Go to Events Manager, pick your dataset (Pixel), and open the Overview tab. Click a key event such as Purchase or Lead.

  2. Read the deduplication and event sources

    Look at the event's source breakdown. If it shows both Browser and Server, check for a Deduplicated figure or warnings about missing or mismatched event_id. Large Browser and Server counts with little deduplication is a bad sign.

  3. Compare counts with real data

    Compare the event count for a day with real orders or leads in your shop or CRM. Counts well above reality point to double counting.

  4. Inspect the browser event

    Open DevTools, Network tab, filter for facebook.com/tr. Trigger a conversion and check the request for an eid parameter. That is the browser event_id.

  5. Inspect the server event

    In Events Manager open Test Events, send a test conversion with your test event code, and compare the event_id shown for the server event with the browser one. They must be identical.

How to fix it

The principle is the same everywhere: create one unique ID for each action, send it with the browser event as eventID, and send the same value with the server event as event_id. Use a stable value such as the order ID for purchases, or a UUID generated when the form is submitted.

Browser side: Pixel with eventIDjavascript
// Generate one ID per action and reuse it on the server
const eventId = crypto.randomUUID();

fbq('track', 'Lead', { value: 10, currency: 'USD' }, { eventID: eventId });

// Send the same ID to your server with the form data
fetch('/api/lead', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ email: 'user@example.com', event_id: eventId })
});
Server side: CAPI payload with the same event_idjson
{
  "data": [
    {
      "event_name": "Lead",
      "event_time": 1735689600,
      "event_id": "the-same-uuid-as-the-browser",
      "action_source": "website",
      "event_source_url": "https://www.example.com/contact",
      "user_data": {
        "em": ["<sha256 hashed lowercase email>"]
      }
    }
  ]
}
Fix by platform
  1. Use one integration for both channels

    If you use the official Meta for WordPress / Facebook for WooCommerce plugin, enable both Pixel and Conversions API inside that one plugin so it shares IDs itself. Turn off any second plugin that also sends the Pixel or CAPI.

  2. Avoid mixing a custom Pixel snippet with a plugin CAPI

    A hand-pasted Pixel plus a plugin's CAPI will use different IDs. Remove one side or move both into the same tool.

Event IDs before and after

Mismatch

  • Pixel sends eventID abc123
  • CAPI sends a different or empty event_id
  • Meta keeps both events
  • Conversions are double counted

Matched

  • One ID is created per action
  • Pixel eventID and CAPI event_id are identical
  • Event names match exactly
  • Meta merges them into one conversion

How to confirm it's fixed

Confirmation checks
  • In Test Events, the browser and server events for one action show the same event_id
  • The event is marked as deduplicated in Events Manager
  • Event counts for a day are close to real orders or leads
  • No warning about missing or mismatched event_id remains on the event
  • Event names match exactly on both sides
  • A single test submission creates one conversion, not two

How to prevent it happening again

Prevention habits
  • Let one tool or one codebase own both Pixel and CAPI where you can
  • Document how the event_id is built and who sets it
  • Retest Test Events after changing themes, plugins, checkout or tag setups
  • Compare Meta event counts with orders or CRM leads every month
  • Keep event names in one shared list so case never differs
  • Remove old Pixels and abandoned CAPI apps when you switch tools

How FunnelGuard handles this

FunnelGuard does not check this yet. Comparing browser and server event IDs would need access to Meta's server events, so it is a possible future check, not a current feature.

What FunnelGuard does today is run your real journeys, such as lead forms and checkouts, on a schedule from the EU or the US. It checks the tracking hits sent to platforms including Meta, and whether test leads reach your inbox and CRM. That can show when a browser Pixel event stops firing on a step. It does not compare IDs against server events.

To watch for deduplication problems manually, check the event sources and diagnostics in Events Manager each month, run a Test Events session after any tracking change, and compare Meta counts to real orders or leads.

Questions people ask

Why is Meta counting my conversions twice?

Most often the Pixel and the Conversions API send the same conversion with different or missing event_id values. Meta then cannot tell they are one action and keeps both. Make both send the same event_id and the same event_name.

How does Meta deduplicate Pixel and Conversions API events?

Meta matches a browser event and a server event that share the same event_name and the same event_id. The browser side sends it as eventID and the server side as event_id. If they match, Meta keeps one.

How do I add event_id to the Meta Pixel?

Pass it as the fourth argument of fbq, for example fbq('track', 'Lead', {}, {eventID: 'your-id'}). Generate one unique value per action and send the same value to your server for the CAPI event.

What should I use as the event_id for a purchase?

A stable unique value such as the order ID works well, because both the browser and the server already know it. For leads, generate a UUID when the form is submitted and pass it to both sides.

How can I test if Meta deduplication is working?

Use Test Events in Events Manager. Trigger one conversion and check that the browser and server events show the same event_id and are marked as deduplicated. Also compare event counts with your real orders or leads.

Can I use both the Pixel and the Conversions API?

Yes, Meta recommends sending both so you lose fewer conversions to blockers and browser limits. You just need matching event_id and event_name so the events merge into one.

Does FunnelGuard detect event_id mismatches?

No. FunnelGuard does not check Meta deduplication yet, and it is a possible future check. For now, review Events Manager diagnostics and Test Events yourself.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: dedupe_key_feedback: share of browser / server events with event_id; Meta dataset quality (Stage 22, daily with the site's Meta connection; Meta's answer format to be confirmed on the first real dataset).

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.