Let the TikTok Pixel follow every UniConsent choice. It holds its events until consent in the EEA and the UK, and stops after a US opt-out or Global Privacy Control.
The TikTok Pixel needs consent before it sets cookies or sends the data of visitors in the EEA and the UK. With the UniConsent TikTok 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.
| Visitor choice | TikTok Pixel |
|---|---|
| No choice yet | Waits, with ttq.holdConsent(); in your pixel code |
| Allows advertising | ttq.grantConsent(): the pixel sends its events |
| Rejects or withdraws | ttq.revokeConsent() |
| US opt-out or Global Privacy Control | ttq.revokeConsent() |
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.
A single choice in the UniConsent banner updates Google Consent Mode v2, Microsoft UET Consent Mode, Amazon Consent Signal and the TikTok Pixel together, with IAB TCF and IAB GPP for programmatic partners.
Add ttq.holdConsent() before ttq.load() in your pixel code, and add the UniConsent TikTok Pixel consent tag. The pixel holds its events until the tag calls ttq.grantConsent() for a visitor who allows advertising, and the tag calls ttq.revokeConsent() when the visitor rejects or withdraws.
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.
After a US "Do Not Sell or Share" opt-out or a Global Privacy Control signal, the tag revokes consent, so the TikTok Pixel stops sending events.
Only one line: ttq.holdConsent() before ttq.load(). Without it, the pixel can send events before the visitor makes a choice.
No. It is a separate tag that you add only on sites with the TikTok Pixel. The main UniConsent tag does not change.
ttq.holdConsent(); before ttq.load() in your TikTok Pixel code:// the TikTok Pixel base code
ttq.holdConsent();
ttq.load('YOUR_PIXEL_ID');
ttq.page();
<script async src="https://cmp.uniconsent.com/v2/tiktok-consent.min.js"></script>
Certified Google CMP Gold tier partner for Consent Mode integration.
Learn more →Certified Microsoft UET Consent Mode CMP for Microsoft Advertising and Bing Ads.
Learn more →Ad storage and user data consent for Amazon Ads tags and pixels, with IAB TCF and GPP strings.
Learn more →Get started to make your website and application compliant for EU GDPR, US CPRA, CA PIPEDA etc
Sign up