Compliant with GDPR, CCPA, COPPA, LGPD, PECR, PDPA, PIPEDA, and more.
The UniConsent TikTok Pixel consent tag connects the TikTok 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 TikTok Pixel code, add ttq.holdConsent(); before ttq.load():
// the TikTok Pixel base code
ttq.holdConsent();
ttq.load('YOUR_PIXEL_ID');
ttq.page();
Add this tag after the UniConsent tag, on every page with the TikTok Pixel:
<script async src="https://cmp.uniconsent.com/v2/tiktok-consent.min.js"></script>
| UniConsent state | Call |
|---|---|
ad_storage, ad_user_data and ad_personalization all granted | ttq.grantConsent() |
| Any of them denied | ttq.revokeConsent() |
The tag calls the pixel only when the result changes, on page load and after every choice.
ttq.holdConsent(); before ttq.load(), the pixel sends events before the visitor makes a choice.Contact us: support@uniconsent.com