Disable automatic cookie blocking for a specific script

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”


<script data-cookieconsent="ignore"></script>

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:

  • type="text/plain"
  • data-cookieconsent with 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 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

14 day free trial Cookiebot

Cookie scanner, cookie banner, cookie declaration and cookie consent in one solution.

  • Use cookies on your website compliant with GDPR, ePrivacy and cookie legislation
  • Cookie management completely automated
  • Cookie banner based on your corporate identity
  • Automatic composed cookie declaration, always up to date

The Cookiebot solution runs on 1.4 million websites, manages 5.2 billion monthly User Consents and supports 47+ languages.