Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta _fbp cookie not set: why it happens and how to fix it

TRK-186Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

_fbp is a first-party cookie (a cookie saved on your own domain) created by the Meta Pixel's JavaScript (the fbevents.js script). It holds a random browser ID, usually in a form like fb.1.1700000000000.1234567890. Meta uses it to recognise the same browser across events.

Why it costs you leads or sales

Without _fbp, Meta has fewer signals to link a lead or purchase back to the person who saw your ad. Event matching gets weaker, which can mean fewer attributed conversions and less data for ad optimisation. Your real leads and sales still happen, but your reports under-count them and campaigns learn from less.

Where a missing _fbp weakens matching
  1. Visitor landsPage loads
  2. Pixel sets _fbpCookie not created
  3. Events sentNo browser ID attached
  4. Meta matchingFewer events matched to ads

The visit and the sale still happen; the browser ID never reaches Meta.

Common causes

Typical reasons _fbp is not set
CauseWhat you see
Pixel not on the pageNo fbevents.js request in the Network tab
Consent banner blocks the pixelCookie appears only after Accept
Pixel set to not use cookiesPixel loads but no _fbp; Meta's first-party cookie setting is off or fbq('set','autoConfig',false) is used
Browser or extension blocks itMissing in Safari/Brave or with an ad blocker
Cookie saved on the wrong domain_fbp exists on a different subdomain or inside an iframe
Script error before initConsole errors, fbq is not defined

How to check if your site has it

Check for the cookie in your browser
  1. Open a clean window

    Use a private window with extensions off, so ad blockers don't hide the problem.

  2. Open DevTools

    Press F12, go to Application (Chrome) or Storage (Firefox), then Cookies, and pick your domain.

  3. Look for _fbp

    If the site has a consent banner, check before and after accepting. The cookie should exist once marketing consent is given.

  4. Check the pixel request

    In the Network tab filter for facebook.com/tr and fbevents.js. If neither appears, the pixel is not loading at all.

  5. Test it in the console

    Type document.cookie.includes('_fbp') and press Enter. It returns true or false.

Quick console checkjavascript
console.log(document.cookie.split('; ').find(c => c.startsWith('_fbp=')) || '_fbp not set');

How to fix it

Work out which cause applies using the table above, then use the steps for your platform. The common fix is to make sure the Meta Pixel loads and is allowed to set cookies once the visitor has consented.

Fix by platform
  1. Confirm one pixel integration

    Use one tool for the pixel (for example Meta's official plugin, or your tag manager), not several. Check that it has your Pixel ID.

  2. Check your cookie plugin

    In your consent plugin, make sure the Meta Pixel is assigned to the marketing category and that it loads after marketing consent.

  3. Clear caches

    Purge the page cache and any optimisation plugin that delays or combines scripts, then retest.

Meta Pixel base code (replace YOUR_PIXEL_ID)html
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
</script>
Before and after

_fbp missing

  • No cookie after accepting marketing consent
  • Events carry no browser ID
  • Fewer events matched to ad clicks

_fbp set

  • Cookie appears on the domain after consent
  • Events and CAPI can send fbp
  • Better matching between ads and conversions

How to confirm it's fixed

Confirmation checks
  • _fbp appears in Application, Cookies for your domain after consent
  • fbevents.js loads and requests to facebook.com/tr return successfully
  • Meta Pixel Helper (browser extension from Meta) shows the pixel without errors
  • Events Manager, Test Events shows PageView arriving from your page
  • The cookie is also present on funnel pages and checkout, not just the homepage

How to prevent it happening again

The cookie usually disappears after a change: a new consent banner, a theme or plugin update, a tag manager edit, or a new landing page without the pixel. Retest the cookie after each of those, on every funnel page and on any separate domain or subdomain.

How it often unfolds (example)
  1. Day 1

    A new consent banner is installed and the pixel is left uncategorised.

  2. Day 2

    The pixel is blocked for everyone, so no _fbp cookie is created.

  3. Week 2

    Meta reports fewer matched conversions and nobody knows why.

  4. Week 3

    The pixel is moved to the marketing category and the cookie returns.

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs your real funnel journeys on a schedule, from the EU or the US, and checks the tracking hits sent to Meta along with each step. When the expected Meta tracking is not working as it should, a failure is re-checked from a second region, and then one alert goes out with a screenshot and a likely cause.

Questions people ask

Why is my _fbp cookie not being set?

The most common reasons are that the Meta Pixel isn't loading on the page, a consent banner is blocking it until the visitor accepts marketing cookies, or the pixel is configured not to use cookies. Check the Network tab for fbevents.js and the Application tab for the cookie, then fix whichever step fails.

What is the _fbp cookie used for?

_fbp is a first-party cookie created by the Meta Pixel that stores a random browser ID. Meta uses it to recognise the same browser across your events, which helps match conversions to ad activity. The Conversions API can also send it as the fbp parameter.

How do I check if the _fbp cookie is set?

Open your site in a private window, press F12, go to Application, then Cookies, and choose your domain. Look for _fbp. You can also run document.cookie.includes('_fbp') in the console, which returns true or false.

Does the _fbp cookie need user consent?

In many regions, such as the EU and UK, marketing cookies like _fbp need consent before they are set. Your consent banner should keep the Meta Pixel off until the visitor accepts marketing cookies, then let it run. Check with your legal adviser for your own requirements.

Is _fbp the same as _fbc?

No. _fbp is a browser ID set for every visitor who runs the pixel. _fbc stores the Meta ad click ID and is only created when someone arrives from an ad with an fbclid in the URL.

Can I still track conversions if _fbp is missing?

Often yes, but matching is weaker. Meta can still use other signals such as _fbc or hashed customer details sent through advanced matching or the Conversions API. Fixing _fbp gives Meta one more signal to work with.

Why is _fbp missing only in Safari or with an ad blocker?

Some browsers and extensions block Meta's script or limit cookie lifetimes, so the pixel can't set or keep _fbp. That is outside your control, so use the Conversions API and customer details as a backup, and test with a clean browser to rule out your own setup.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.