Problem/Motivation
There is a need to allow users to manually set Google Consent Mode settings to avoid blocking storage of analytics (and other types of storage) that clients may need to grant access to.
Steps to reproduce
Inspect a page on a project where the module is installed and look in the head to see the scripts being loaded. There is no script for Google Consent Mode settings as described on the Cookiebot implementation page found here: https://support.cookiebot.com/hc/en-us/articles/360009192739-Google-Tag-....
Proposed resolution
A patch was created to add the suggested script as described on the Cookiebot implementation page above and form elements were added for users to specify which storage types to grant or deny access to as required.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | enable_google_consent_mode_settings-3378719-2.patch | 4.5 KB | roaldnel |
| #2 | enable_google_consent_mode_settings-3378719-1.patch | 4.15 KB | roaldnel |
Comments
Comment #2
roaldnel commentedThe proposed patch as promised in the issue details.
Comment #3
roaldnel commentedHere is an updated patch. I have added checks to apply the correct text to the different storage options.
Comment #5
fabianderijk