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.
- Visitor landsPage loads
- Pixel sets _fbpCookie not created
- Events sentNo browser ID attached
- Meta matchingFewer events matched to ads
The visit and the sale still happen; the browser ID never reaches Meta.
Common causes
| Cause | What you see |
|---|---|
| Pixel not on the page | No fbevents.js request in the Network tab |
| Consent banner blocks the pixel | Cookie appears only after Accept |
| Pixel set to not use cookies | Pixel loads but no _fbp; Meta's first-party cookie setting is off or fbq('set','autoConfig',false) is used |
| Browser or extension blocks it | Missing 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 init | Console errors, fbq is not defined |
How to check if your site has it
Open a clean window
Use a private window with extensions off, so ad blockers don't hide the problem.
Open DevTools
Press F12, go to Application (Chrome) or Storage (Firefox), then Cookies, and pick your domain.
Look for _fbp
If the site has a consent banner, check before and after accepting. The cookie should exist once marketing consent is given.
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.
Test it in the console
Type document.cookie.includes('_fbp') and press Enter. It returns true or false.
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.
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.
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.
Clear caches
Purge the page cache and any optimisation plugin that delays or combines scripts, then retest.
Check the Facebook & Instagram channel
In Sales channels, open Facebook & Instagram, then Data sharing, and confirm your pixel is connected.
Review Customer privacy
In Settings, Customer privacy, check how consent is collected. The pixel only runs for visitors whose settings allow marketing.
Remove duplicates
If you also pasted pixel code into theme.liquid, remove one copy.
Check the base tag
Make sure the Meta Pixel base code tag (Custom HTML or the template you use) fires on All Pages with a valid Pixel ID.
Fix consent settings
If you use Consent Mode or consent triggers, require only marketing consent, and make sure the banner updates consent so the tag then fires.
Preview and publish
Use Preview mode, confirm the tag fires, then publish the container.
Add the pixel in Site settings
Go to Site settings, Custom code, Head code, and paste the Meta Pixel base code once.
Publish
Custom code only runs on the published site, so publish and test on the live domain.
Add the pixel to the funnel
In the funnel or website settings, paste the Pixel base code into the Head tracking code, or use the Facebook pixel ID field if your version has one.
Check each page
Funnel-level code applies to its pages only. Check pages on other funnels or custom domains separately.
Use Marketing Integrations
In Marketing & SEO, then Marketing Integrations, connect the Meta Pixel with your Pixel ID.
Check the cookie banner
In Wix's cookie consent settings, make sure marketing cookies can be accepted, and test after accepting.
Connect the pixel
In Settings, Marketing, Facebook Pixel (or Code Injection, Header, if your plan uses that), add your Pixel ID or base code.
Review cookie banner
If the Cookie Banner is on, check that accepting marketing cookies allows the pixel to run.
Load the standard base code
Put the Meta Pixel base code in the head, run fbq('init') with your ID, and don't disable cookies with fbq('set','autoConfig',false) unless you set _fbp yourself.
Load after consent
Where consent is required, call the pixel only after the visitor accepts marketing cookies.
<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>_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
- _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.
Day 1
A new consent banner is installed and the pixel is left uncategorised.
Day 2
The pixel is blocked for everyone, so no _fbp cookie is created.
Week 2
Meta reports fewer matched conversions and nobody knows why.
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.
Related issues
- TRK-187_fbc cookie not set after fbclid landingFix guide
- TRK-166Meta Pixel missing on funnel pageFix guide
- TRK-177Pixel init called with no ID or invalid IDFix guide
- TRK-180CAPI events missing entirelyFix guide
- TRK-183Event Match Quality low (no em/ph/external_id)Fix guide
- TRK-188fbclid stripped by redirectFix guide