Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta Pixel event_id missing on browser events: how to fix it

TRK-178High impactDetectedBy FunnelGuardPublished Updated
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.

What goes wrong
  • 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.
Where deduplication breaks
  1. Visitor submits formOne real lead
  2. Browser Pixel fires LeadNo event_id attached
  3. CAPI sends LeadHas an id, nothing to match
  4. Meta counts resultsDuplicate or dropped

The browser event has no id, so the server event cannot be matched to it.

Reported leads for 100 real submissionsExample numbers
Reported leads for 100 real submissions (example)Real leads: 100 leads; Reported, no event_id: 160 leads; Reported, with event_id: 100 leads061123100160100Real leadsReported, no event_idReported, with event_…leads

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

Check a browser event for an id
  1. Open the page and DevTools

    Open the page with the conversion (form, thank-you or checkout). Press F12 and go to the Network tab.

  2. Filter for Pixel requests

    Type facebook.com/tr in the filter box, then trigger the event, for example by submitting a test lead.

  3. Read the request parameters

    Click the request named for your event (the ev parameter, such as Lead). Look in the Payload tab for eid. That is the event id. If it is absent, the id is missing.

  4. 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.

Browser event with an event IDjavascript
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 */ })
});
Add the id on your platform
  1. 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.

  2. 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.

Pixel call before and after

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

Confirm the fix
  1. Repeat the network check

    Trigger the event again and confirm the facebook.com/tr request now has an eid value.

  2. Compare with the server event

    Check that your CAPI payload uses the same value in event_id and the same event name.

  3. 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.

  4. 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

Keep ids in place
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: ids rules.

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.