Scripts blocked by CookieBot auto mode

Created on 30 October 2023, about 1 year ago
Updated 24 November 2023, 12 months ago

Problem/Motivation

Thanks for the great module - it has helped to get all of my scripts in the right place.

I created a small module of my own - to add a further default consent state (all denied) - as documented here: https://support.cookiebot.com/hc/en-us/articles/360009192739-Google-Tag-...

All seems to render on page as expected - but when using: data-blockingmode="auto" - my scripts seem to get blocked.

I can workaround this by setting data-cookieconsent="ignore" - but I do not want to have to retro tag every library on site with that attribute. Currently - when denied I get a JS console error:

Uncaught ReferenceError: jQuery is not defined

As CookieBot assumes it is dropping non-essential cookies I expect.

At the moment I've set the blocking mode to manual - as all the sensitive scripts are loaded through GTM - which is complying with the consent of the user.

How are others implementing this - does anybody have success of the auto detect feature? I'm running Drupal 10.1.5 Would be nice to revert back to auto though...

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom newaytech

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024