If a user does not consent, how does Cookiebot block cookies from being placed?

Comments

1 comment

  • Avatar
    Martin Iv. – vConnect

    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,
    Martin

    0
    Comment actions Permalink

Please sign in to leave a comment.