Advertising vendor · Meta Platforms, Inc.
Meta Pixel Cookies: List With Purpose and Retention
Last verified 2026-10-16 · Updated 2026-10-16
On this page
Cookies Meta Pixel Sets on Your Site
Meta Pixel sets 2 cookies on your domain, _fbp for every visitor and _fbc after a click on a Meta ad, and 2 local storage keys for the referrer.
| Name | Type | Category | Party | Retention | What it does |
|---|---|---|---|---|---|
_fbc | Cookie | Advertising | First-party | 90 days (3 months) | The _fbc cookie stores the fbclid click ID of a Meta ad for 90 days, so Meta credits a later conversion to the ad click. |
_fbp | Cookie | Advertising | First-party | 90 days (3 months) | The _fbp cookie is a Meta Pixel advertising cookie that identifies a browser for 90 days and needs consent under the ePrivacy Directive. |
lastExternalReferrer | Local storage | Advertising | First-party | No expiry | The lastExternalReferrer local storage key keeps the last external page that sent the visitor, which Meta Pixel reads for attribution. |
lastExternalReferrerTime | Local storage | Advertising | First-party | No expiry | The lastExternalReferrerTime local storage key keeps the time of that last external referral. |
Scripts, Pixels, and Endpoints Meta Pixel Loads
Meta Pixel loads 4 known scripts, pixels, and data endpoints. Each row gives the host to look for in the Network tab of Chrome DevTools or in a cookie scanner report.
| Type | Resource | Host | What it does |
|---|---|---|---|
| Script | Meta Pixel library (fbevents.js) | connect.facebook.net | The Meta Pixel library loads from connect.facebook.net and writes the _fbp and _fbc cookies. |
| Script | Meta Pixel configuration (signals/config) | connect.facebook.net | The configuration script loads the settings of your pixel ID, such as automatic events and advanced matching. |
| Pixel | Meta Pixel image pixel (noscript) | www.facebook.com | The image pixel in the <noscript> part of the base code reports a page view from browsers without JavaScript. |
| Data endpoint | Meta Pixel event endpoint (facebook.com/tr) | www.facebook.com | The event endpoint receives every page view and conversion, with the identifier from the _fbp cookie. |
Does Meta Pixel Need Consent?
Yes, the Meta Pixel cookies need consent in the EU and the UK, and need no prior opt-in in California. The table gives the rule for each law, taken from the page of the _fbp cookie.
| Law | Consent before the cookies are set | Opt-out right | Source |
|---|---|---|---|
| EU ePrivacy Directive + GDPR | Required | Withdraw at any time | Article 5(3), ePrivacy Directive |
| UK PECR | Required | Withdraw at any time | Regulation 6 and Schedule A1, PECR |
| California CCPA | No general opt-in | Opt out of sale and sharing | Cal. Civ. Code 1798.120 |
The consent table describes what each law requires and is not legal advice. Whether a law applies to your site depends on where your visitors are, where your business is based, and how you set up Meta Pixel, such as Limited Data Use.
Read the reason for each answer in the consent rules for the _fbp cookie.
How to Add Meta Pixel to a Consent Banner
Add Meta Pixel to a consent banner by holding back the Meta Pixel base code until the visitor accepts advertising cookies. Both TermsFeed products block Meta Pixel in the Advertising category.
Add Meta Pixel to TermsFeed Free Cookie Consent
TermsFeed Free Cookie Consent runs a tagged script only after the visitor accepts its category. Change type="text/javascript" to type="text/plain" and add data-cookie-consent="targeting".
<script type="text/plain" data-cookie-consent="targeting">
!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>
Cookie Consent is free and needs no account. Build your free consent banner with TermsFeed Free Cookie Consent.
Add Meta Pixel to TermsFeed Privacy Consent
Add Meta Pixel from its template in TermsFeed Privacy Consent, and the pixel loads only after the visitor accepts the Meta Pixel vendor. The template holds the base code in an Advertising vendor, turns on Limited Data Use, and sends the Meta Pixel consent signal for you.
The Meta Pixel template asks for the Pixel ID and fills every other field of the vendor. Pick the "Meta Pixel" card under Advertising, enter the Pixel ID, and click "Add Meta Pixel". Find the Pixel ID in Meta Events Manager under Data sources › your pixel › Settings. The illustration shows the template form in the TermsFeed app.
Privacy Consent detects the location of each visitor and records every answer in a consent log. Set up Meta Pixel from its template with TermsFeed Privacy Consent.
Follow every step, the vendor settings, and the check in Chrome DevTools in how to block the _fbp cookie.
Who Runs Meta Pixel
Meta Platforms, Inc. runs Meta Pixel from the United States, and Meta Platforms Ireland Limited provides the Meta business tools to advertisers in the European Economic Area (EEA) and Switzerland.
Read how Meta Platforms, Inc. handles the data in the Meta Pixel privacy policy, and sign the Meta Data Processing Terms before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.
Meta Pixel Cookie FAQs
Does Meta Pixel need consent?
Yes, the Meta Pixel cookies need consent in the EU and the UK, and need no prior opt-in in California. Firstly, the ePrivacy Directive requires consent before a site sets the advertising cookies of Meta Pixel. Secondly, the UK PECR requires consent before a site sets the advertising cookies of Meta Pixel. Thirdly, the CCPA sets no general opt-in requirement for the advertising cookies of Meta Pixel, and the table gives the opt-out right of visitors. The consent section of this page gives the table for each law.
How long do Meta Pixel cookies last?
Each cookie of Meta Pixel in the current setup lasts 90 days (3 months). The retention column of the cookie list gives the lifetime of each cookie.
How do I block Meta Pixel cookies?
Block the Meta Pixel cookies by holding back the Meta Pixel base code until the visitor accepts advertising cookies. Tag the Meta Pixel base code with data-cookie-consent="targeting" in TermsFeed Free Cookie Consent, or add Meta Pixel as a vendor in TermsFeed Privacy Consent. The page of the _fbp cookie gives the full steps and the settings of Meta Pixel.
Sources for the Meta Pixel Cookies
The facts on this page come from the documentation Meta publishes, checked on 2026-10-16. The list gives every source, so you check each fact yourself.
- Meta for Developers, fbp and fbc parameters
- Meta for Developers, Meta Pixel and the GDPR
- GDPR, Recital 30
- TermsFeed website auditor scan, 25 September 2026 (internal)
- Meta Pixel privacy policy
- Meta Data Processing Terms