Google Consent Mode and CMP for Google Tags

UniConsent CMP works with Google Consent mode allows you to adjust how your Google tags behave based on the consent status of your users.



  • Google Consent Mode for Google Tags

    UniConsent CMP works with Google Consent Mode allows you to adjust how your Google tags behave based on the consent status of your users.


    Get Started Now

    How Google Consent Mode works

    Google Consent Mode allows a website integrate with UniConsent CMP and adjust Google tag behavior based on consent.

    You can block Google Analtyics cookies, Google Ads cookies on your website with UniConsent's Google Consent Mode support.

    UniConsent integrates with Global site tag (gtag.js) or Google Tag Manager to support Google Consent Mode.

    Google Consent Mode works with Google Analytics with analytics_storage signals and Google’s ad platforms with ad_storage signals.


    Google products support Google Consent Mode:

    • Google Ads (including Google Ads Conversion Tracking and Remarketing)
    • Google Analytics
    • Floodlight
    • Conversion Linker

    How to setup Google Consent Mode

    1. Put the following tag at the top of your website:

    window.dataLayer = window.dataLayer || [];
    function gtag() { window.dataLayer.push(arguments); }
    gtag('consent', 'default', {
      ad_storage: 'denied',
      analytics_storage: 'denied',
      wait_for_update: 500,
      region: ['GB', 'DE']
    });
                                        

    2. Integrate with UniConsent callback API to grant Google cookies and tracking:

    gtag('consent', 'update', {
      ad_storage: 'granted',
      analytics_storage: 'granted'
    }); 
    

    Compared with the other CMP, Google Consent Mode is supported without tag changes.

  • Compare with the other CMP for GDPR / CCPA

    Features UniConsent CMP Other Free CMP Other Paid CMP
    IAB Europe Transparency & Consent Framework
    Customisable multiple stages
    One-tag Implementation
    Wordpress plugin
    Multiple languages support
    Google Tag Manager support
    Tracking and Insight
    Google DFP support
    Header bidding support
    JavaScript tags blocking and cookies blocking
    Cookies scan and disclosing
    Custom purpose
    Support
Trusted by 1000s of global publishers and marketers

Get started to make your website compliant for EU GDPR, US CCPA.

Sign up