Compliant with GDPR, CCPA, COPPA, LGPD, PECR, PDPA, PIPEDA, and more.
The UniConsent Meta Pixel consent tag connects the Meta Pixel to your UniConsent banner through the consent API of the pixel. The pixel waits until a visitor allows advertising, and stops again when the visitor withdraws consent, opts out in the US or sends a Global Privacy Control signal.
In your Meta Pixel code, add fbq('consent', 'revoke'); before fbq('init'):
// the Meta Pixel base code
fbq('consent', 'revoke');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
Add this tag after the UniConsent tag, on every page with the Meta Pixel:
<script async src="https://cmp.uniconsent.com/v2/meta-consent.min.js"></script>
| UniConsent state | Call |
|---|---|
ad_storage, ad_user_data and ad_personalization all granted | fbq('consent', 'grant') |
| Any of them denied | fbq('consent', 'revoke') |
The tag calls the pixel only when the result changes, on page load and after every choice.
fbq('consent', 'revoke'); before fbq('init'), the pixel sends events before the visitor makes a choice.Contact us: support@uniconsent.com