Learning Image

Start Growing Today

Sign up with your Email and start sharpening your digital marketing skills.

Gain access to our free Full of Beans Academy courses

Exclusive email lessons

Updates on latest digital marketing trends and useful insights

Not interested

  • Full of Beans Academy
  • ×
    ×

    Google Consent Mode V2

    Google Consent Mode is a powerful tool for managing user consent and enhancing privacy compliance on your website.

    Google has made it mandatory to have Consent Mode implemented before March 2024, so if you rely on Google Services such as Google Ads and Google Analytics, now is the time to get it implemented.

    In this article you'll get a full overview on what the Consent Settings mean, how Consent Mode works, and how to set it all up using Google Tag Manager.

    What is a gtag?

    A gtag is a JavaScript library that helps you send event data to Google Analytics, allowing you to track user interactions on your website.

    Example on a gtag:

                
        <!-- Google tag (gtag.js) -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=your_ga_measurement_id"></script>
        <script>
            window.dataLayer = window.dataLayer || [];
            function gtag() {
                dataLayer.push(arguments);
            }
            gtag('js', new Date());
        
            gtag('config', 'your_ga_measurement_id');
        </script>
                
            

    Gtag with the Statistical Consent Settings:

                
        <!-- Google tag (gtag.js) -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=your_ga_measurement_id"></script>
        <script>
            window.dataLayer = window.dataLayer || [];
            function gtag() {
                dataLayer.push(arguments);
            }
            gtag('js', new Date());
        
            gtag('consent', 'update', {
                ad_storage: "denied",
                ad_user_data: "denied",
                ad_personalization: "denied",
                analytics_storage: "granted",
                functionality_storage: "denied",
                personalization_storage: "denied",
                security_storage: "granted"
            });
        
            gtag('config', 'your_ga_measurement_id');
        </script>
                
            

    What does the different settings mean?

    What does the consent settings: ad_storage: "granted" mean?

    
    ad_storage: "granted"
    
    

    This means that the website or application is allowed to collect and store information for advertising purposes. The user has explicitly given permission for the storage of such data.

    What does the consent settings: ad_user_data: "granted" mean?

    
    ad_user_data: "granted"
    
    

    Sets consent for sending user data related to advertising to Google.

    What does the consent settings: ad_personalization: "granted" mean?

    
    ad_personalization: "granted"
    
    

    Enables consent for personalized advertising (remarketing).

    What does the consent settings: analytics_storage: "granted" mean?

    
    analytics_storage: "granted"
    
    

    Enables cookie storage related to analytics.

    What does the consent settings: functionality_storage: "granted" mean?

    
    functionality_storage: "granted"
    
    

    Enables storage that supports the functionality like language settings and other functions which requires cookies to work.

    What does the consent settings: personalization_storage: "granted" mean?

    
    personalization_storage: "granted"
    
    

    Enables storage related to personalization like video recommendations.

    What does the consent settings: security_storage: "granted" mean?

    
    security_storage: "granted"
    
    

    Enables storage related to security such as authentication functionality, fraud prevention, and other user protection.