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 Privacy 2026: State Laws, FTC Actions, and Class Action Risk

GDPR Enforcement and Fines 2026: Business Categories, Top Cases, and Country
CIPA Lawsuits 2026: How Pre-Consent Tracking Is Exposing Website Operators
CNIL Issues Formal Guidance on Email Tracking Pixels: Email Marketing Compliance Requirements

Google Consent Mode June 2026 Update: Unified Control for All Google Ads Data
UniConsent Mobile SDK: Sync Native Consent to WebViews
Get started to make your website and application compliant for EU GDPR, US CPRA, CA PIPEDA etc
Sign up