• It seems enabling Google Consent Mode in Google Tag Manager settings effectively writes the following piece of code:

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

    as outlined in your article: https://support.cookiebot.com/hc/en-us/articles/360016047000-Cookiebot-and-Google-Consent-Mode

    However, there doesn;t seem to be anywhere to select the default values of the GCM? It would be great to optionally set the values of ad_storage and analytics_storage to ‘granted’ and set ads_data_redaction to ‘false’ to enable a default opt-in under CCPA.

    We would also appreciate any advice on how to test Google Consent Mode is actually working?

    Please advise.

Viewing 1 replies (of 1 total)
  • Plugin Support Richard

    (@rvcybot)

    Hi @dgilfillan,

    Currently you can only add the script where you are opted out by default.
    Our WordPress plugin doesn’t know the location of the visitor. If you need to have the script behave differently, depending on where the visitor is located, you would need to add some logic that uses geo location information which would need to be fetched by a third party solution.

    In order to check if Consent Mode is working properly, we’ve created an article that describes some checks you can perform: Checking if Consent Mode is properly implemented

Viewing 1 replies (of 1 total)
  • The topic ‘Default opt-in under CCPA’ is closed to new replies.