• Hi!

    OneTrust recommends to add this script before the GTM script (in this case, should be the 1st head script, right?)

    <script>
      // Define dataLayer and the gtag function.
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
    
      // Default ad_storage to 'denied'.
      gtag('consent', 'default', {
        'ad_storage': 'denied',
    'wait_for_update': 500
    
      });
    
      // Default analytics_storage to 'denied'.
      gtag('consent', 'default', {
        'analytics_storage': 'denied',
    'wait_for_update': 500
    
      });
    
    </script>

    Anything else needed to be done to comply and use Google Consent MOde?

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Consent Mode will work even if you do not add these lines but in that case, all flags will default to “granted”.

    I am not aware of any additional need while setting this up but I guess OneTrust has more information about their Consent Mode implementation and their (pre-)requirements.

Viewing 1 replies (of 1 total)

The topic ‘Google Consent Mode + OneTrust’ is closed to new replies.