If the Cookiebot script blocks scripts on your website, then this is likely due to our scanner determining that the script is responsible for setting one or more cookies on your website, which needs to be prevented until consent has been given.
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, by adding an attribute to your script tag with the name data-cookieconsent and the value "ignore"
Example: data-cookieconsent="ignore"
You shouldn't use this attribute arbitrarily though. Any element that has this attribute can set tracking without the user's consent.
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.
Please note: In the context of GDPR, a tracker is deemed necessary if blocking the tracker would render the website inoperable, or unable to provide the service it is intended to provide.
However, if the script should be still blocked from loading prior consent, then you should use manual blocking. In that case the value of data-cookieconsent will be one or more of the available non essential categories: "Preferences, Statistics, Marketing". Make sure that the script you assign this attribute to is in fact being blocked. This is done by changing the value of the type attribute to "text/plain. Example:
type="text/plain"-
data-cookieconsentwith one, or a combination of these values separated with commas: "Preferences, Statistics, Marketing"
If you require further manual control, you may choose a complete manual implementation either by using our manual cookie consent script and marking up scripts individually as described here: Manual implementation guide
Or you my implement our solution using Google Tag Manager or a other tag management solutions. See our Google Tag Manager deployment guide here: Google Tag Manager deployment
Comments
1 comment
Thanks for the details.
Please sign in to leave a comment.