If a user does not consent, how does Cookiebot block cookies from being placed?
Trying to communicate to our marketing automation system how marketing cookies might be blocked, but I can't find the answer about the actual mechanics of it.
-
Hey Molly,
When you implement prior consent, you are changing script data type. Browsers use that attribute to interpreter what to run.When the type is changed to "text/plain" you are essentially telling the browser "not to run this code", which sets the cookies. So in combination with Cookiebot attribute you are adding to the script ( e.g. data-cookieconsent="marketing" ), you achieve the goal to ask visitors for their consent.
When user accepts the cookies, Cookiebot executes this block of code that you have changed to "text/plain" and sets everything that is inside ( external js files, etc.. ) and the cookies are set.Regards,
Martin0
Please sign in to leave a comment.
Comments
1 comment