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).
- Customer buysOne order is placed
- Pixel sends eventeventID = abc123
- CAPI sends eventevent_id = 98765
- Meta deduplicationIDs differ, no merge
- 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.
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
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.
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.
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.
Inspect the browser event
Open DevTools, Network tab, filter for
facebook.com/tr. Trigger a conversion and check the request for aneidparameter. That is the browser event_id.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.
// 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 })
});{
"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>"]
}
}
]
}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.
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.
Use the Facebook & Instagram sales channel
In Shopify admin open Sales channels, Facebook & Instagram, Data sharing, and set the level so the Pixel and Conversions API are both sent by the app, which manages matching IDs.
Remove duplicate Pixel code
Check theme.liquid and Settings, Customer events for old manual Pixels or custom CAPI apps. Keep one source per event.
Create an event ID variable
Add a Custom JavaScript variable that returns a UUID, or use the order ID on purchase pages. Push it to the data layer once per action.
Add it to the Pixel tag
In your Meta Pixel tag, pass the variable as the event ID (eventID in a custom HTML tag, or the Event ID field if your template has one).
Send the same value to the server container
If you use server-side GTM, make sure the client forwards the same ID and the Meta CAPI tag maps it to event_id. Check the tag's preview in both containers.
Generate the ID in the page script
In Project settings, Custom code, or an embed on the form page, create the ID on submit and pass it to
fbqas eventID.Forward it to your CAPI endpoint
Send the same ID to your server, automation tool or middleware that calls CAPI, and map it to event_id there.
Check how Meta events are sent
If a workflow sends a CAPI event and the funnel page also fires the Pixel, confirm whether both use a shared ID. If the platform does not let you set the ID, send only one channel for that event.
Prefer one source per event
Keep either the browser Pixel or the CAPI action for a given event until you can pass a matching event ID.
Use the built-in Meta integration
In Marketing Integrations, connect Facebook and Instagram Pixel and Conversions API through Wix's own connection so it handles IDs.
Remove manual duplicates
Delete any extra Pixel code in Custom Code that fires the same events.
Check what Squarespace sends
Squarespace has a Facebook Pixel setting in Marketing. If you add your own CAPI through a third party, make sure that tool does not duplicate events the Pixel already sends without a shared ID.
Use one channel if IDs cannot be shared
Pick either the browser Pixel or the server feed for each event rather than both.
Create the ID once
Generate a UUID in the browser at the moment of the action, or use the order or submission ID.
Send it to both channels
Pass it as eventID in fbq and as event_id in the CAPI request body. Keep event_name identical, including case.
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
- 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
- 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.
Related issues
- TRK-178event_id missing on browser eventsFix guide
- TRK-180CAPI events missing entirelyFix guide
- TRK-174PageView firing twice per pageFix guide
- TRK-168Two Pixel IDs firing, events splitFix guide
- TRK-170Lead event fires on thank-you page reload (duplicate leads)Fix guide
- TRK-183Event Match Quality low (no em/ph/external_id)Fix guide