If you for any reason prefer not making use of Consent Mode, you have the option to disable it by preventing Cookiebot from sending Consent Mode signals to Google Tag Manager.
You will obviously need to omit the Consent Mode script from this guide.
Please see Alternative methods for conditionally loading tags to configure tags which track your visitors to be configured in such a way that these are not loaded prior consent.
To disable Consent Mode, add the following attribute to the Cookiebot script tag: data-consentmode="disabled"
This could look similar to this:
<script
id="Cookiebot"
type="text/javascript"
src="https://consent.cookiebot.com/uc.js"
data-cbid="12345678-90ab-cdef-1234-567890abcdef"
data-blockingmode="auto"
data-consentmode="disabled"
></script>
Alternatively, you can add this setting as a query parameter.
This is particularly useful if you implement Cookiebot using a custom HTML tag in Google Tag Manager, since non-standard attributes are stripped. This makes the use of data attributes impossible.
To disable Consent Mode, you will have to replace the Cookiebot CMP tag with a custom HTML tag that looks similar to this:
<script>
var CookiebotScriptContainer = document.getElementsByTagName("script")[0],
CookiebotScript = document.createElement("script");
CookiebotScript.type = "text/javascript";
CookiebotScript.id = "Cookiebot";
CookiebotScript.src = "https://consent.cookiebot.com/uc.js" +
"?cbid=12345678-90ab-cdef-1234-567890abcdef" +
"&consentmode=disabled";
CookiebotScriptContainer.parentNode.insertBefore(
CookiebotScript,
CookiebotScriptContainer
);
</script>
Your tag should look similar to this:
You'll obviously want to replace the value of the "cbid" query parameter with your own Domain Group serial (CBID).
Please note that the cookie_consent_update
event will no longer be available when Consent Mode is disabled.
Comments
0 comments
Please sign in to leave a comment.