Google Consent Mode + OneTrust
-
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)
Viewing 1 replies (of 1 total)
The topic ‘Google Consent Mode + OneTrust’ is closed to new replies.