Meta Pixel Consent CMP

Let the Meta Pixel follow every UniConsent choice. It waits for consent in the EEA and the UK, and stops after a US opt-out or Global Privacy Control.

Microsoft certified CMP - UniConsent CMPIAB certified CMP - UniConsent CMPIAB TCF V2 certified CMP - UniConsent CMPIAB TCF Canada certified consent manager - UniConsent CMPGoogle-certified CMP Gold tire - UniConsent CMPGoogle-certified CMP partner
Trusted by 5000+ of global publishers and marketers
  • sej
  • football365
  • sharethrough
  • districtm
  • pf1
  • tower cast
Meta Pixel Consent at a Glance
Supported
Yes: with the UniConsent Meta Pixel consent tag
Consent signal
fbq('consent', 'grant' / 'revoke')
Works with
Google Consent Mode v2, Microsoft UET, IAB TCF, IAB GPP

Meta Pixel Consent from Your UniConsent Banner

The Meta Pixel needs consent before it sets cookies or sends the data of visitors in the EEA and the UK. With the UniConsent Meta Pixel consent tag, the pixel follows the choice each visitor makes in your UniConsent banner, on page load and after every change, through the consent API of the pixel itself.

How the Pixel Follows Each Choice

Visitor choiceMeta Pixel
No choice yetWaits, with fbq('consent', 'revoke'); in your pixel code
Allows advertisingfbq('consent', 'grant'): the pixel sends its events
Rejects or withdrawsfbq('consent', 'revoke')
US opt-out or Global Privacy Controlfbq('consent', 'revoke')

The tag grants consent when Google Consent Mode ad_storage, ad_user_data and ad_personalization are all granted, so it works the same with IAB TCF, Consent Categories and the US banners.

One Banner for Every Ad Platform

A single choice in the UniConsent banner updates Google Consent Mode v2, Microsoft UET Consent Mode, Amazon Consent Signal and the Meta Pixel together, with IAB TCF and IAB GPP for programmatic partners.

Frequently Asked Questions

How does UniConsent work with the Meta Pixel?

Add fbq('consent', 'revoke') before fbq('init') in your pixel code, and add the UniConsent Meta Pixel consent tag. The pixel waits until the tag calls fbq('consent', 'grant') for a visitor who allows advertising, and the tag revokes consent again when the visitor withdraws.

Which UniConsent choice turns the Meta Pixel on?

Consent to advertising: Google Consent Mode ad_storage, ad_user_data and ad_personalization all granted. With IAB TCF or Consent Categories, the choice in the banner sets these values.

What happens after a US opt-out?

After a US "Do Not Sell or Share" opt-out or a Global Privacy Control signal, the tag revokes consent, so the Meta Pixel stops sending events.

Do I need to change my Meta Pixel code?

Only one line: fbq('consent', 'revoke') before fbq('init'). Without it, the pixel can send events before the visitor makes a choice.

Does the Meta Pixel consent tag slow down other sites?

No. It is a separate tag that you add only on sites with the Meta Pixel. The main UniConsent tag does not change.

Set Up Meta Pixel Consent

  1. Sign up at app.uniconsent.com and install the UniConsent tag.
  2. Hold the pixel until consent: add fbq('consent', 'revoke'); before fbq('init') in your Meta Pixel code:
// the Meta Pixel base code
fbq('consent', 'revoke');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
  1. Add the Meta Pixel consent tag after the UniConsent tag:
<script async src="https://cmp.uniconsent.com/v2/meta-consent.min.js"></script>

Technical Documentation

Microsoft certified CMP - UniConsent CMPIAB certified CMP - UniConsent CMPIAB TCF V2 certified CMP - UniConsent CMPIAB TCF Canada certified consent manager - UniConsent CMPGoogle-certified CMP Gold tire - UniConsent CMPGoogle-certified CMP partner
Trusted by 5000+ of global publishers and marketers
  • sej
  • football365
  • sharethrough
  • districtm
  • pf1
  • tower cast

Get started to make your website and application compliant for EU GDPR, US CPRA, CA PIPEDA etc

Sign up