- Issue created by @matthiasm11
We now only check if marketing cookies are allowed. Shouldn't we also support the other categories? So we can have a blocked element message for "preferences", "statistics" and "marketing".
Example of HTML created by Cookiebot when multiple categories are required: data-cookieconsent="statistics,marketing"
Beware for not showing 2 messages if for example both statistics and marketing are required.
!cookiebot_required_categories
to the default message_placeholder_cookieconsent_optout_marketing
.[data-cookieconsent="marketing"]
to [data-cookieconsent]
in the config form item title and description.[data-cookieconsent="marketing"]
to [data-cookieconsent]
in javascript, get the required categories from this
and use them to replace the !cookiebot_required_categories
token. Use vanilla javascript for this code.Active
1.0
Code