On this page
What this issue is
Meta lets you send the same conversion twice: once from the browser (the Pixel) and once from your server (the Conversions API). To avoid counting it twice, Meta looks for a matching event name plus a matching event_id. This is called deduplication.
This issue means the browser half has no id. The Pixel call looks like fbq('track', 'Lead') instead of fbq('track', 'Lead', {}, {eventID: 'abc123'}). Without the id, there is nothing for the server event to match against.
Why it costs you leads or sales
Without an id, Meta may count one lead twice (browser and server), or discard one copy using weaker matching rules. Both distort the numbers your ads are optimised on.
- Reported leads or purchases are inflated, so cost per result looks better than it is.
- Ad delivery learns from duplicated or inconsistent signals and targets the wrong people.
- Reports in Events Manager disagree with your CRM or shop orders.
- You cannot trust tests of new campaigns because the baseline is noisy.
- Visitor submits formOne real lead
- Browser Pixel fires LeadNo event_id attached
- CAPI sends LeadHas an id, nothing to match
- Meta counts resultsDuplicate or dropped
The browser event has no id, so the server event cannot be matched to it.
Example: with no shared id, Meta may report more than the true number. With a shared id it reports one per real lead.
How to check if your site has it
Open the page and DevTools
Open the page with the conversion (form, thank-you or checkout). Press F12 and go to the Network tab.
Filter for Pixel requests
Type
facebook.com/trin the filter box, then trigger the event, for example by submitting a test lead.Read the request parameters
Click the request named for your event (the
evparameter, such as Lead). Look in the Payload tab foreid. That is the event id. If it is absent, the id is missing.Cross-check in Events Manager
In Meta Events Manager, open your Pixel, then the Overview tab and the event. If Browser and Server both appear, look at the deduplication or event id diagnostics Meta shows.
How to fix it
The id must be unique per action, created once, and used in both the browser call and the server call. A random UUID or the order id are good choices. Do not use a value that is the same for every visitor.
var eventId = (crypto.randomUUID ? crypto.randomUUID() : String(Date.now()) + Math.random());
fbq('track', 'Lead', {}, { eventID: eventId });
// Send the same id to your server so CAPI can reuse it
fetch('/api/lead', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ event_id: eventId /* plus form data */ })
});Use a plugin that supports CAPI
If you use the official Meta plugin (Facebook for WordPress) or another Pixel plugin with Conversions API, check its settings: it normally generates the shared id itself. Update it and make sure both browser and server events are enabled.
Custom Pixel code
If the Pixel is added by hand in a theme or snippet plugin, add the eventID argument as in the code above and pass the same id to your server handler.
Use the Meta (Facebook & Instagram) channel
In Shopify admin open Sales channels, then Facebook & Instagram, then Settings, and check Data sharing. The channel handles ids for standard events when set up at its maximum level.
Remove duplicate hand-coded Pixels
If an old Pixel snippet sits in the theme or a custom pixel, it may send events with no id. Remove it or add eventID there.
Create an id variable
Add a Custom JavaScript variable that returns a unique value, for example a UUID, and push it to the dataLayer as event_id when the action happens.
Pass it in the Pixel tag
In a Custom HTML tag, call fbq('track', 'Lead', {}, {eventID: {{DLV - event_id}}}). Send the same dataLayer value to your server container or CAPI endpoint.
Edit the custom code
In Project settings, then Custom code, or in the page's own code, add the eventID argument to your fbq calls and send the same id to your server endpoint or automation tool.
Check how events are sent
If you use the built-in Facebook Pixel and Conversion API settings, test whether the browser event shows an eid. If it does not, add a tracking code snippet with the eventID call and send the same id through your own server request.
Use Marketing Integrations or custom code
If you use the Wix Facebook Pixel and Conversions API integration, check its events for an eid. If you add code through Settings, then Custom code, add the eventID argument yourself.
Use Code Injection
Under Settings, then Advanced, then Code Injection, add eventID to your fbq calls. The built-in Pixel field does not let you set it per event, so custom code is needed if you also send CAPI.
Generate once, use twice
Create the id when the action happens, pass it to fbq as eventID, and include it in the request your backend uses to build the CAPI event as event_id.
Before
- fbq('track', 'Lead')
- No eid in the network request
- Server event cannot be matched
After
- fbq('track', 'Lead', {}, {eventID: id})
- eid appears in the request
- Server sends the same event_id
How to confirm it's fixed
Repeat the network check
Trigger the event again and confirm the
facebook.com/trrequest now has aneidvalue.Compare with the server event
Check that your CAPI payload uses the same value in
event_idand the same event name.Use Test Events
In Events Manager, open Test Events, enter your test code, and trigger the action. You should see the browser and server event with the same id, shown as deduplicated.
Watch the counts
Over the next days, compare Meta's reported conversions to your CRM or orders. They should be close.
How to prevent it happening again
- Make event id creation part of one shared function, not copied into many tags.
- Re-test deduplication after theme, plugin or tag manager changes.
- Remove old Pixel snippets when you add a plugin or integration.
- Document which events are sent from browser and server.
- Run a scheduled check of your key journeys so a broken tag is noticed quickly.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your real journeys, such as a lead form or checkout, on a schedule from the EU or the US. It records the tracking hits sent to Meta and checks the id rules: whether the browser events carry an event id. If a check fails, it is re-checked from a second region before one alert is sent by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.
Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent), never clicks real ads and never enters real card details. The Free plan covers 1 site and 2 journeys with daily checks and no card. A free read-only website audit is also available.
Questions people ask
Why is my Meta Pixel event_id missing?
The Pixel call was probably written without the fourth argument, so it sends no eid. Plugins, themes or old snippets often do this. Add {eventID: yourId} to the fbq('track', ...) call and send the same id from your server.
How do I add event_id to a Meta Pixel event?
Pass it as the fourth argument: fbq('track', 'Lead', {}, {eventID: 'abc123'}). Generate a unique value per action, such as a UUID. Use the same value as event_id in your Conversions API event.
What is event_id used for in Meta Pixel and Conversions API?
It lets Meta recognise that a browser event and a server event describe the same action. Meta then keeps one and drops the duplicate. Event name and event id must both match.
Do I need event_id if I only use the browser Pixel?
Not for deduplication, since there is no second copy to match. It becomes important as soon as you add the Conversions API for the same events. Adding it early avoids problems later.
What should I use as an event_id?
Use a value that is unique for each action and available to both browser and server, such as a random UUID or an order id. Do not reuse one fixed value for every visitor, or Meta may treat different actions as one.
How can I see if an event has an event_id?
Open DevTools, go to the Network tab, filter for facebook.com/tr, and trigger the event. The eid parameter in the request payload is the event id. If it is not there, the id is missing.
Will missing event_id double count my conversions?
It can. If both browser and server send the event with no shared id, Meta may count both, or use weaker matching that drops some. Either way your reporting becomes less reliable.
Can FunnelGuard tell me if event_id is missing?
Yes. FunnelGuard detects this by running your journeys and checking the id rules on the Meta tracking hits it records. It alerts you with a screenshot and a likely cause after re-checking from a second region.
Related issues
- TRK-179CAPI not deduplicating with browser event (event_id mismatch)Fix guide
- TRK-180CAPI events missing entirelyFix guide
- TRK-174PageView firing twice per pageFix guide
- TRK-168Two Pixel IDs firing, events splitFix guide
- TRK-171Lead event missing on submitFix guide
- TRK-183Event Match Quality low (no em/ph/external_id)Fix guide