Home
Meta Pixel Consent: How to Run the Pixel Under GDPR and CCPA

Meta Pixel Consent: How to Run the Pixel Under GDPR and CCPA

17 days ago
João Bruno Soares
9 minutes

Meta pixel consent means the pixel only sends events to Meta when the visitor's choice allows it. In practice you pause the pixel until the visitor agrees, resume it on a yes, and keep it paused on a no. Meta gives you a switch for this, and a consent management platform is what flips it at the right moment.

The rules differ by market. In Europe the pixel needs a yes first. In California and some other US states the issue is opt-out: sending data to Meta for advertising counts as sharing, so visitors must be able to stop it. This guide covers both, with the code and a test you can run today.

Why the Meta pixel needs consent control

The pixel is a script that sends information about what visitors do on your site to Meta, so you can measure and target ads. That makes it a third-party tracker, which is the kind of tool consent rules were written for. If it loads before the visitor decides, the consent exists in the banner and not in the network traffic.

Europe: the burden is on you

Meta's Business Tools Terms say that, where consent is required to store or access cookies or other information on a user's device, as in the European Union, you must ensure in a verifiable way that the visitor gives all necessary consents before you use Meta Business Tools. The terms are in Meta's Business Tools Terms.

European case law points the same way. In Fashion ID (C-40/17, decided on 29 July 2019) the Court of Justice found that a website operator that embeds a social plugin, which makes the visitor's browser send data to the provider, can be a controller for the collection and transmission it decides on.

Consent and the duty to inform fall on the operator for those steps. The ruling applied the old Data Protection Directive, not the GDPR, but the logic is still useful: embedding a third-party tool is your choice, so the consent question is yours. The judgment is on EUR-Lex. Our guide to GDPR and cookies covers the broader rules.

California and other US states: sharing and opt-out

California describes "sharing" as sharing personal information for cross-context behavioral advertising, and gives people the right to opt out of it. Businesses must offer a clearly visible link, usually titled "Do Not Sell or Share My Personal Information", as the California Attorney General's CCPA page explains.

A pixel that sends events to Meta for ad targeting is a typical example. A browser signal such as GPC counts as a valid opt-out request there, which we cover in our guide to Global Privacy Control. See also our guide to California's CCPA.

See how AdOpt blocks tags until consent if you run pixels in more than one market.

How to control the Meta pixel

Meta's pixel has a consent switch built in. According to Meta's documentation on the pixel and GDPR, you use fbq('consent', 'revoke') to pause pixel fires and fbq('consent', 'grant') to send them once the visitor agrees.

The code

Meta's example revokes consent before the pixel is initialized, so nothing fires until the visitor decides:

fbq('consent', 'revoke');   // before init
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');

// After the visitor accepts in the banner:
fbq('consent', 'grant');

Your CMP normally makes the grant call for you after the visitor accepts. If a visitor rejects or closes the banner, the pixel stays revoked.

With Google Tag Manager

Many sites load the pixel through Google Tag Manager. That works well when the tag is set to fire only with the right consent, so it is held back until the visitor agrees. Check every Meta tag in the container, since one forgotten tag is enough to send data. Our guide to tag categorization explains how to sort tags by purpose.

Pixels pasted into the site

A pixel pasted straight into a theme or loaded by a plugin ignores your CMP. It is the most common reason a "no" in the banner does not stop Meta requests. Move it into the tag manager, or let your CMP block it, and test again.

Limited Data Use for US visitors

For US state laws, Meta offers an option called Limited Data Use (LDU). In the pixel it looks like this:

fbq('dataProcessingOptions', ['LDU'], 1, 1000);

The first number is the country: 0 lets Meta work it out from the visitor's location and 1 means the United States. The second is the state: 0 for the same automatic detection, or a code such as 1000 for California and 1001 for Colorado. The same options exist for the Conversions API. The details are in Meta's data processing options page.

Meta describes LDU as giving you more control over how your data is used in its systems, and warns it can reduce campaign performance and limit retargeting and measurement. LDU is a tool for Meta's side. Your opt-out link and the handling of browser signals remain your job.

Server-side events

If you also send events from your server through the Conversions API, treat them the same way as pixel events. Meta's pixel documentation on consent does not cover the Conversions API, so a safe approach is to send server events only for visitors whose choice allows it. Otherwise the pixel could respect a "no" while the server keeps sending the same events.

What you lose when visitors decline

When a visitor says no, the pixel sends nothing, so those visits do not appear in Meta's reporting. That is the point. Expect fewer tracked events, especially in markets where many people decline, and plan your reporting around the visitors who agreed.

The temptation is to win the numbers back by loading the pixel anyway, or by moving the same events to the server without checking the choice. Both undo the protection you set up, and both are easy to spot in a network test. If Meta's reporting looks thin, review your banner design and your campaign setup first. Our guide to choosing a cookie banner covers how the design affects the choice people make.

A checklist before you add any ad pixel

The same questions apply to Meta and to any other ad tool:

  • Who owns this tag, and who approved it?
  • Which consent type or category does it belong to?
  • Does it load through the tag manager, where the CMP can control it?
  • Does it have a server-side twin that needs the same rule?
  • How will we test it, and how often?

Answering these before the tag goes live is cheaper than finding out from a complaint.

How to test your Meta pixel setup

You can test without special tools. Follow these steps:

  1. Open your site in a private window.
  2. Reject everything in the banner.
  3. Open the developer tools and check the network tab for requests to Meta, such as facebook.com or facebook.net.
  4. After a rejection there should be no events sent to Meta.
  5. Repeat after accepting. Events should start only from that moment.
  6. For US visitors, switch on GPC and check that ad events stop where required.
  7. Save a screenshot and the date as evidence.

If requests still go out after a rejection, look first for a pixel pasted in the code or a second tag in the tag manager. Check how consent reaches your pixel with AdOpt as a fast way to see it in action.

Keep learning about consent and ad tools

Frequently asked questions

Do I need consent to use the Meta pixel?

In jurisdictions that require consent to store or access information on a visitor's device, such as the European Union, Meta's terms say you must ensure consent is given before using its tools. In California, sending data to Meta for ad targeting counts as sharing, so visitors need an easy way to opt out. Check the rules for your audience.

What does fbq consent revoke do?

It pauses the pixel, so no events are sent to Meta. Calling fbq('consent', 'grant') resumes sending. Meta's example revokes consent before the pixel is initialized, so nothing fires until the visitor decides. Your CMP can make these calls for you, based on the choice made in the banner.

What is Limited Data Use?

It is a Meta option for US visitors that you switch on with dataProcessingOptions in the pixel or the equivalent fields in the Conversions API. You tell Meta the country and state. Meta warns it can reduce campaign performance. It does not replace your opt-out link or the handling of browser signals.

Can I load the pixel through Google Tag Manager?

Yes, and it is often the cleanest way. Set the Meta tag to fire only when the visitor's choice allows it, and make sure no second copy of the pixel is pasted into the site code. Test with a rejection and check that no requests reach Meta.

Tags

Cookies
GDPR
Marketing

Related posts

AdOpt post

Axeptio Strengthens its International Expansion with the Acquisition of AdOpt

Axeptio acquires Brazil's AdOpt, expanding global reach in consent management and LGPD compliance.

AdOpt post

GDPR and Cookies all you need to know

Understanding the General Data Protection Regulation (GDPR) and its impact on cookies is essential. So, let's break it down, step by step.

AdOpt post

IOWA ICDPA and Cookies: All you need to Know

Iowa ICDPA explained: the longest response deadline of all US state privacy laws (90 days), 90-day cure period, opt-out for sensitive data, limited deletion scope, no right to correct, and how it compares to UCPA, VCDPA, and OCPA.

AdOpt post

Colorado CPA: Cookies Policy

What the Colorado CPA requires from your Cookies Policy: mandatory Universal Opt-Out Mechanism from July 2024, targeted advertising definition, dark pattern rules, and the 24-month consent refresh.

AdOpt post

Montana MTCDPA: Privacy Policy

Learn what your MTCDPA Privacy Policy must include after Montana's SB 297 amendments from the conspicuous "privacy" hyperlink and last-updated date requirements to sale disclosures, minor protections, and how to keep your notice operationally aligned with your stack.

AdOpt post

Why Give Consent on Every Website I Visit?

Have you ever noticed that every time you sign up for a service to access information or register on a website for purchases, you need to give consent? If you're wondering why you have to give consent on every website you visit, you'll find the answer here.

AdOpt post

7 Steps to GDPR-Compliant Cookie Banners in 2025

Learn the essential steps for creating GDPR-compliant cookie banners in 2025, ensuring user consent and privacy protection.

AdOpt post

Utah UCPA and Cookies: All you need to know

Utah UCPA explained: the most business-friendly US state privacy law, dual threshold requirement, opt-out for sensitive data, no right to correct, guaranteed 30-day cure period, and key differences from other state laws.

AdOpt post

5 Signs Your Website Needs an Cookie Consent Strategy

How does your website handle LGPD? What strategies does it use to comply with the General Data Protection Law? Have you thought about using a cookie notice but don't know if your site has cookies or if it's enough? If you can't answer these questions, be cautious! Your page may be exposed to fines and other sanctions.

AdOpt post

LGPD: An Opportunity for Digital Marketing Agencies!

Have you ever thought that your marketing agency could find a great business opportunity in LGPD? Well, unlike what many think, it brings changes that can accelerate the demand for the services of these companies.

AdOpt post

Texas TDPSA and Cookies: All You Need to Know

Your website have users accessing from Texas? So be ready… the Texas Data Privacy and Security Act is here to shake things up. Don't worry; we've got your back. This guide will walk you through everything you need to know to ensure your website complies with the new regulations.

AdOpt post

California CCPA: Privacy Policy

What the California CCPA/CPRA requires from your Privacy Policy: 12-month lookback, annual updates, Do Not Sell link, sensitive PI disclosures, toll-free number, and the 7 consumer rights.

AdOpt post

Virginia VCDPA: Cookies Policy

What the Virginia VCDPA requires from your Cookies Policy: targeted advertising disclosure, consent standards, tracker categories, opt-out mechanisms, and the 30-day cure period explained.

AdOpt post

GDPR Legal Basis: An Introduction

In this article, we'll explore the GDPR foundations and provide practical insights from the basics to more advanced concepts of its legal basis.

AdOpt post

Connecticut CTDPA: DSAR Privacy Portal

How to handle DSARs under the Connecticut CTDPA: 5 consumer rights, opt-outs without mandatory authentication, 60-day appeal deadline, 15-day consent revocation, and AG-only enforcement.

AdOpt post

The Impact of Cookie Banners on Your E-commerce - LGPD

Having a cookie banner on your brand's website has become indispensable for many. However, for e-commerce websites, it has practically become an obligation to have one. This is because this type of website has a technological composition in which cookies are a structural part. Login flow, items in the shopping cart, recommendation showcases, remarketing... Most of them rely on cookies.

AdOpt post

Cross-Domain Cookie Consent: One Choice, Several Sites

Cross-domain cookie consent lets one visitor choice apply to several sites. See when sharing is valid, how tags read it and what to test before you launch.

AdOpt post

Colorado CPA and Cookies: All You Need to Know

The Colorado Consumer Privacy Act went into effect July 1, 2023 (CPA). CPA is a vital piece of legislation designed to protect the privacy of residents in Colorado. Understanding its requirements is essential for any business operating in the state. This act is all about giving control back to the consumers regarding their personal data. But what does this mean for you and your business, especially when it comes to managing cookies on your website?

AdOpt post

Key Differences between LGPD and GDPR and the Impact on Internet Cookies

While both regulations share the goal of safeguarding individuals' rights regarding the processing of their personal data, there are some important differences between them. It is crucial to understand these distinctions and their implications, particularly in the context of internet cookies.

AdOpt post

Google Consent Mode: Beginner to Advanced Guide.

Google Consent Mode (GCM) is nothing more than a way for you to integrate the consent you collect from your visitors into Google technologies. In this way, upon receiving this consent information, collection can only occur with authorization, thus complying with the legislation and having direct evidence of compliance as defense for both you and Google.

AdOpt post

10 Marketing Processes You Should Rethink under the LGPD!

In the end, our goal has never been to predict doom for companies or to be part of the LGPD's Apocalypse Cavalry. But, since we've been in the market for some time, these kinds of issues always catch our attention when we start data mapping and having conversations with colleagues.

AdOpt post

Canada PIPEDA: Privacy Policy

How to write a PIPEDA privacy policy: what the ten principles require you to disclose, what to add for Quebec, and a checklist before you publish.

AdOpt post

Global Privacy Control (GPC) Explained: What It Is and Who Has to Honor It

Global Privacy Control (GPC) is a browser opt-out signal. Learn how it works, which US states require you to honor it, and how to test your site.

AdOpt post

California CCPA and Cookies: All You Need to Know

Everything about the California CCPA and CPRA: who must comply, the $25M threshold, 7 consumer rights, CCPA vs CPRA explained, the Do Not Sell link, CPPA enforcement, and cookies.

AdOpt post

IOWA ICDPA: DSAR and Privacy Portal

Iowa ICDPA DSAR guide: 90-day response deadline, 45-day extension, 60-day appeal process, limited deletion scope, opt-out from data sales, targeted advertising disclosure requirement, and 90-day cure period.

AdOpt post

AdOpt CMP

AdOpt CMP: Google-certified consent platform with prior blocking, granular choices, encrypted logs, and GTM/Consent Mode

AdOpt post

LGPD and Cookies all do you need to know?

In this article, you will have a great introduction to the topic, as well as various other variations that revolve around the subject: Cookies and LGPD.

AdOpt post

Oregon OCPA: Cookies Policy

What the Oregon OCPA requires from your Cookies Policy: opt-out link, GPC from January 2026, opt-out without authentication, derived data in scope, teen protections, and the elimination of the cure period.

AdOpt post

Why are cookie banners everywhere?

Want to understand why there are cookie banners on every website you visit today? This article is for you!

AdOpt post

Oregon OCPA: Privacy Policy

What the Oregon OCPA requires from your Privacy Policy: actively monitored contact channel, detailed third-party descriptions, derived data in scope, GPC from January 2026, and the elimination of the cure period.

AdOpt post

Consent Management Across Countries: How One CMP Serves Every Market

Consent management across countries: how one CMP applies the right rules to each visitor, passes the choice to Google and Meta, and honors GPC.

AdOpt post

Montana MTCDPA: DSAR Policy

Rights, Policy and how to understand about the DSAR Montana MTCDPA

AdOpt post

Fines in LGPD - What are they, amounts, and compliance deadlines

In this article, we will answer all your questions regarding fines under the LGPD (Brazil's General Data Protection Law).

AdOpt post

IOWA ICDPA: Cookies Policy

What the Iowa ICDPA requires from your Cookies Policy: opt-out for data sales and targeted advertising, opt-out model for sensitive data, no GPC requirement, no specific link text required, and the 90-day cure period.

AdOpt post

Utah UCPA: Privacy Policy

What the Utah UCPA requires from your Privacy Policy: five mandatory elements, opt-out model for sensitive data, no retention periods required, no active contact channel mandate, and the guaranteed 30-day cure period.

AdOpt post

Canada PIPEDA and Cookies: All You Need to Know

PIPEDA is Canada's federal private-sector privacy law. See when it reaches your website, what it requires for cookies, and how to prove consent.

AdOpt post

How to Choose a CMP (Consent Management Platform)?

Using a CMP (Consent Management Platform) is a great way to make efforts to adapt to new privacy regulations like GDPR, LGPD, DPDPA, CCPA and more...

AdOpt post

Florida FDBR: Cookies Policy

What the Florida FDBR requires from your Cookies Policy: targeted advertising across affiliated sites, opt-out for sensitive data and voice recognition, dark patterns, and tripled penalties.

AdOpt post

LGPD for marketing | A practical guideline.

Every day, millions of users generate data on the web, which is used by companies around the globe to improve their offerings. Therefore, in 2018, a law was created to regulate the use of personal data by companies, and this directly impacts digital marketing. We're talking about LGPD.

AdOpt post

Connecticut CTDPA and Cookies: All You Need to Know

The Connecticut Data Privacy Act (CTDPA) is a state regulation designed to protect the privacy of Connecticut residents. It also regards cookies, so in this article we will help you understand all about this new privacy regulation.

AdOpt post

Florida FDBR: DSAR Privacy Portal

How to handle DSARs under the Florida FDBR: 7 consumer rights, two required submission channels, 45-day deadline with only 15-day extension, tripled penalties for children, and compliance guide.

AdOpt post

Canada PIPEDA: Cookies Policy

What a PIPEDA cookie policy must say: purposes, third parties, opt-out, retention and Quebec rules. Plus a checklist to write yours.

AdOpt post

California CCPA: DSAR Privacy Portal

How to handle DSARs under the California CCPA/CPRA: 7 consumer rights, 45-day deadline, toll-free number required, 12-month lookback, private right of action for breaches, and CPPA enforcement.

AdOpt post

New Hampshire NHDPA: DSAR Privacy Portal

What is a DSAR under NHDPA? Complete guide to consumer rights, response deadlines, and building a compliant Privacy Portal for your site.

AdOpt post

What is the difference between cookies, local storage, and session storage?

Despite cookies being more well-known, what is the main difference between cookies and session storage and local storage? Why choose one over the other? This article will help you with these doubts!

AdOpt logoAdOpt logo

Address: 7345 W Sand Lake Road, Ste 210 Office 5898 Orlando, FL 32819

15 Rue du Général Campredon, 34000 Montpellier, France

207 Rue de Bercy, 75012 Paris, France

EIN: 86-3965064

Phone: +1 (407) 768-3792

AdOpt

Resources

Product

Certifications

Google CMP PartnerIAB Europe TCF Registered Vendor

© GO ADOPT, LLC since 2020 - Made by people who love🍪