Cookiebot Google Consent Mode

PHOTO EMBED

Fri Oct 22 2021 16:17:25 GMT+0000 (Coordinated Universal Time)

Saved by @dphillips #cookie #consent #script #head #tracking

<script data-cookieconsent="ignore">
    window.dataLayer = window.dataLayer || [];
    function gtag() {
        dataLayer.push(arguments);
    }
    gtag("consent", "default", {
        ad_storage: "denied",
        analytics_storage: "denied",
        functionality_storage: "denied",
        personalization_storage: "denied",
        security_storage: "granted",
        wait_for_update: 2000,
    });
    gtag("set", "ads_data_redaction", true);
</script>
content_copyCOPY

The Cookiebot Google Consent script should be the first script loaded, followed by Google Tag Manager / gtag . If the actual Cookiebot script is inserted manually instead of through Google Tag Manager, it should be sandwiched between Consent Mode and Tag Manager scripts.

https://support.cookiebot.com/hc/en-us/articles/360016047000