UniConsent
GDPR remarketing
Notice: this article is outdated, please check https://www.uniconsent.com/docs/tutorials/gtm-integration .
If you are using Google Tag manager on your website already, it is possible to setup UniConsent CMP with Google Tag manager.
Some publishers simply put the tag into GTM and load it when page loading, this works for avoiding passing personal cookies via Google DFP for GDPR compliance.
A website is able to load some javascript tags based on user's consent: only load some javascript tags if a user has given the consent.
Add a custom event "unic_allow_cookie" at Google Tag Manager.

Load third party javascript tags such as Facebook pixel based on this event:

You are able to preview the changes made with GTM. Remember to publish the changes once you have finished the test.
Now the marketing cookies and third-party javascript tags only load when the user has given consent.
There are other ways to setup consent based tags:
Please contact us if you need help for the integration.
Compliant with GDPR, CCPA, COPPA, LGPD, PECR, PDPA, PIPEDA, and more.
Activate Google Consent Mode UniConsent to enhance the accuracy of your Google Analytics and Google Ads conversion data.
Set up Google Consent Mode →Get started to make your website and application compliant for EU GDPR, US CPRA, CA PIPEDA etc
Sign up
US CCPA: Ford to Pay $375K Fine for Adding Friction to Opt-Out Process

Custom Purposes: Managing Consent Beyond Standard Privacy Frameworks

US CCPA: Disney to Pay $2.75M for Failed Consumer Opt-Out via Global Privacy Control

How to Verify IAB TCF 2.3 Is Switched On Your Website or App

How to Recover Revenue Lost to Ad Blockers and Consent Rejection in 2026

CPPA Fines Unregistered Data Broker for Selling Custom Audiences
Get started to make your website and application compliant for EU GDPR, US CPRA, CA PIPEDA etc
Sign up