Cookiebot script priority in wp_head – update needed
-
I noticed cookiebot wasn’t working properly on my site – when I rejected all cookies, they didn’t get deleted (in fact even more got added). I checked the documentation of the manual installation, where it was stressed that it needs to be the very first script in the head. When I checked my DOM, I noticed there are other scripts in front of it.
I then checked the code and in cookiebot.php line 190 I found that it’s added with priority -9997 in wp_head. I modified this to priority 0 and it started working. I recommend this priority update to be included in the next release.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cookiebot script priority in wp_head – update needed’ is closed to new replies.