Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta CAPI events missing fbp and fbc: how to find and fix it

TRK-370Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Meta's Conversions API lets your server send events such as Lead or Purchase straight to Meta. To link each event to a person, Meta looks at the identifiers you send in user_data. Two of them come from the browser.

Why it costs you leads or sales

Meta uses matched conversions to report results and to train ad delivery. When events arrive without fbp or fbc, fewer of them can be tied to the ad click or the browser that produced them. Your reported conversions can drop, and the campaign gets less signal to find similar people.

It is rated medium impact because the events still arrive and may match on email or phone. But click and browser IDs are often the strongest signals for visitors who did not give an email in the same session.

Where the identifiers get lost
  1. Ad clickURL carries fbclid
  2. Pixel sets cookies_fbp and _fbc stored
  3. Form or checkoutCookies not sent to your server
  4. CAPI eventuser_data has no fbp or fbc
  5. Meta matchingWeaker click and browser match

The browser holds fbp and fbc. If the server never reads them, the CAPI event goes out thin.

Share of server events matched to an ad clickExample numbers
Share of server events matched to an ad click (example)Without fbp/fbc: 35 %; With fbp/fbc: 70 %027543570Without fbp/fbcWith fbp/fbc%

Example: illustrative numbers only. Adding fbc and fbp to server events typically raises how many can be matched.

How to check if your site has it

Check your server events
  1. Open Events Manager

    In Meta Events Manager, select your dataset (Pixel), then open the Overview tab and click a server event such as Lead or Purchase.

  2. Review Event Match Quality

    Open the event and look at the customer information parameters. See whether Click ID (fbc) and Browser ID (fbp) are listed as received, and the share of events that carry them.

  3. Use Test Events

    Open the Test Events tab, enter your test event code in your server request, submit a test lead, and inspect the payload Meta shows for fbp and fbc.

  4. Inspect your own payload

    Log the JSON your server sends to the graph.facebook.com events endpoint. Check that user_data contains fbp and, for visits that came from an ad, fbc.

  5. Confirm cookies exist in the browser

    Visit your site with ?fbclid=test123 added to the URL, then check Application > Cookies in browser dev tools for _fbp and _fbc. If they are absent, the Pixel is not running or consent is blocking it.

How to fix it

The fix has three parts: capture the values in the browser, keep them until the conversion happens, then add them to the server event. The exact place depends on your platform.

Pass fbp and fbc by platform
  1. Create cookie variables

    Add two First-Party Cookie variables named for the cookies _fbp and _fbc.

  2. Send them to your server container

    In the web tag or client that sends data to your server-side GTM container, add fbp and fbc as event parameters using those variables.

  3. Map them in the Meta CAPI tag

    In the server container, check the Meta Conversions API tag reads the values. Many CAPI tag templates pick up the _fbp and _fbc cookies automatically if the request comes from your own domain; if not, set them in the tag's user data fields.

Fill hidden form fields with fbp and fbcjavascript
function getCookie(name) {
  var m = document.cookie.match('(^|;)\\s*' + name + '=([^;]*)');
  return m ? decodeURIComponent(m[2]) : '';
}

function getFbc() {
  var c = getCookie('_fbc');
  if (c) return c;
  var id = new URLSearchParams(location.search).get('fbclid');
  return id ? 'fb.1.' + Date.now() + '.' + id : '';
}

document.addEventListener('DOMContentLoaded', function () {
  document.querySelectorAll('form').forEach(function (f) {
    ['fbp', 'fbc'].forEach(function (n) {
      var i = f.querySelector('input[name="' + n + '"]');
      if (i) i.value = n === 'fbp' ? getCookie('_fbp') : getFbc();
    });
  });
});
CAPI event with fbp and fbc in user_datajson
{
  "data": [{
    "event_name": "Lead",
    "event_time": 1735689600,
    "event_id": "lead_12345",
    "action_source": "website",
    "event_source_url": "https://example.com/contact",
    "user_data": {
      "em": ["<sha256 hashed email>"],
      "fbp": "fb.1.1735689000000.1234567890",
      "fbc": "fb.1.1735689000000.AbCdEfGhIj",
      "client_ip_address": "203.0.113.10",
      "client_user_agent": "Mozilla/5.0 ..."
    }
  }]
}

How to confirm it's fixed

Run a test conversion
  1. Visit with a test click ID

    Open your landing page with ?fbclid=test123 appended and complete the form or a test checkout.

  2. Check Test Events

    In Events Manager > Test Events, find the server event and confirm fbp and fbc appear in the received parameters.

  3. Check deduplication

    Confirm the browser and server events share the same event_id so Meta counts one conversion, not two.

  4. Watch Event Match Quality

    Over the next few days, check that the share of events with Click ID and Browser ID goes up in the event's details.

How to prevent it happening again

Keep fbp and fbc flowing
  • Keep hidden fbp and fbc fields in every lead form that feeds a server event.
  • Store the values in your CRM or order record so later events (qualified lead, sale) can reuse them.
  • Re-test after changing form builders, themes, consent banners or your CAPI plugin.
  • Review Event Match Quality in Events Manager monthly.
  • Document which system sends each event so a new integration is not set up without these fields.

How FunnelGuard handles this

FunnelGuard does not check this yet. Reading the contents of your server-to-Meta payload is a possible future check, but it is not something the service does today.

What FunnelGuard does cover nearby: a robot visitor runs your real lead form or checkout on a schedule and checks that the tracking hits to ad platforms, including Meta, are sent from the browser, and that test leads reach your inbox and CRM. If the Pixel stops firing, so no _fbp cookie is set, you can be alerted to that. It cannot tell you whether your server event includes fbp or fbc.

Questions people ask

What are fbp and fbc in Meta Conversions API?

fbp is the browser ID stored in the _fbp cookie, set by the Meta Pixel. fbc is the click ID built from the fbclid URL parameter and stored in the _fbc cookie. Both are sent in the user_data object to help Meta match server events to people and ad clicks.

Why is my Meta CAPI event missing fbc?

The most common reasons are that the visit did not come from a Meta ad, so there was no fbclid, or that your server never read the _fbc cookie. Check that the landing URL kept fbclid and that your form or checkout passes the cookie value to your server.

What is the fbc format for the Conversions API?

The format is fb.1.<timestamp in milliseconds>.<fbclid>, for example fb.1.1735689000000.AbCdEfGhIj. The Pixel normally creates this in the _fbc cookie. If it is missing, you can build it from the fbclid in the URL, keeping the fbclid case exactly as received.

Should I hash fbp and fbc before sending to Meta?

No. Send fbp and fbc exactly as stored, without hashing. Hashing with SHA-256 applies to personal data such as email and phone number, not to these browser identifiers.

Do I need fbp and fbc if I already send email and phone?

They are not required, but they help. Email and phone only match when the person supplied them, while fbp and fbc tie the event to a browser and an ad click. Sending all available identifiers usually gives Meta more to match on.

How do I get fbp and fbc from the browser to my server?

Read the _fbp and _fbc cookies with JavaScript and post them with your form or checkout, for example in hidden fields. Server-side GTM can also read them from the cookies sent with the request to your own domain. Then add them to user_data in your CAPI call.

Can FunnelGuard tell me if my server events are missing fbp or fbc?

No. FunnelGuard does not check this yet. It can run your lead form on a schedule and verify the browser-side Meta tracking hit, but you need Meta's Events Manager to inspect server payloads.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: match key coverage (fbp, fbc) in event match quality; 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.