Disable Cookiebot automatic cookie blocking for a specific script
If the Cookiebot script blocks scripts on your website, then this is likely due to the Cookiebot cookie scanner. The cookie scanner determines that the script is responsible for setting one or more cookies on your website, which needs to be prevented until consent has been given by your website visitor.
There are situations where you may need the script to execute regardless of consent and have employed alternative ways of ensuring that the cookies are only set after consent has been obtained.
You can exclude a specific script from the control of the Cookiebot automatic blocking functionality. You can do so by adding an attribute to your script tag with the name data-cookieconsent and the value “ignore”
You shouldn’t use this attribute arbitrarily though. Any element that has this attribute can set tracking without the user’s consent.
Furthermore, make sure that the script you assign this attribute to is in fact being blocked. You can check this by ensuring that the script has these attributes:
data-cookieconsentwith one or more of these values: “Preferences, Statistics, Marketing”
Assigning this attribute to a script that wouldn’t be blocked anyway, can interfere with the automatic cookie blocking function’s ability to process the page, resulting in errors which can break the page.
If a script fails to execute, despite it not setting cookies, adding the attribute won’t fix the issue.
If you require further manual control, you may choose a complete manual implementation of the Cookiebot scripts. Either by using the manual cookie consent script and marking up scripts individually as described here: Manual implementation guide
Or you may implement our solution using Google Tag Manager or another tag management solution. See our Google Tag Manager deployment guide here: Google Tag Manager deployment