• Resolved Valdinia

    (@valdinia)


    I completed the 3 steps to enable the consent banner on my website (so I enabled prior consent by applying the attribute “data-cookieconsent” to cookie-setting script tags on my website)
    I also added the script to load Google Analytics if the user has accepted Cookies (with the CookiebotCallback_OnAccept asynchronous callback from https://www.cookiebot.com/en/developer/)

    I opened Chrome in incognito mode. (anyway all cookies were cleared already)
    Using the Consent Banner I accepted all cookie-categories.
    In Chrome I see the following cookies from the Statistics category:
    _utma, _utmb, _utmc, _utmt, _utmz, _ga, _gid
    Then I withdraw my consent regarding the statistics cookies.
    Usually the statistics cookies are unset.
    But sometimes the statistics cookies are not affected, they persist even if I refresh the page or I go to another page. Sometimes if I withdraw my consent for Preferences cookies the statistics cookies are also removed.
    What could be the problem? Un-setting (removing) cookies seems to function randomly.
    (if I click the Withdraw cookies consent button, as expected, only the essential cookies remain)

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author cookiebot

    (@cookiebot)

    Hi @valdinia,

    When withdrawing cookies, all cookies are unset regardless of their type. When renewing consent, they are then re-set (sometimes upon page reload, sometimes immediately) according to the new consent.

    Using the Consent Banner I accepted all cookie-categories.
    In Chrome I see the following cookies from the Statistics category:
    _utma, _utmb, _utmc, _utmt, _utmz, _ga, _gid
    Then I withdraw my consent regarding the statistics cookies.
    Usually the statistics cookies are unset.
    But sometimes the statistics cookies are not affected, they persist even if I refresh the page or I go to another page. Sometimes if I withdraw my consent for Preferences cookies the statistics cookies are also removed.

    Would it be possible to create a video demonstrating the issue, as we are not able to reproduce it.

    • This reply was modified 6 years, 5 months ago by cookiebot.
    Thread Starter Valdinia

    (@valdinia)

    Please give me an email address where I could send you the link
    Thank you

    Plugin Author cookiebot

    (@cookiebot)

    @valdinia you can send the link to [email protected]

    Thread Starter Valdinia

    (@valdinia)

    Sent, thank you!

    Plugin Author cookiebot

    (@cookiebot)

    @valdinia

    I’ve checked your video, and Cookiebot works as it is meant to.

    We do not delete cookies on change of consent, only on withdraw. If you try to withdraw and browse your site (and if you have implemented prior consent correctly) then the cookies that can be deleted through javascript will be gone.

    If you want to delete Cookies on change of consent, then you can call the Cookiebot.removeCookies() function together with a callback of your choice, e.g.

    function CookiebotCallback_OnAccept()
    {
      if(Cookiebot.changed) //check if new consent has just been submitted
      {
         Cookiebot.removeCookies();
      }
    }
    • This reply was modified 6 years, 5 months ago by cookiebot.
    Thread Starter Valdinia

    (@valdinia)

    Thank you for your answer!
    Cookiebot.changed property and removeCookies() method are not documented in https://www.cookiebot.com/en/developer/
    could you please add them?

    Thread Starter Valdinia

    (@valdinia)

    If I use
    Cookiebot.removeCookies();
    or
    Cookiebot.withdraw();
    all cookies are unset, so not only the category the user has just unchecked.
    I tried to set the cookies back using runScripts, but no result.
    So what could be the right solution to allow the user to change their consent? (for instance to un-check the Statistics cookies, but keep the Marketing cookies checked)

    Plugin Author cookiebot

    (@cookiebot)

    @valdinia we do not delete cookies on individual level.

    You can force a page reload and then marketing cookies will be set again, if e.g. statistics have been unchecked, and marketing have been checked. In normal circumstances this will happen automatically as the user browses to another page.

    function CookiebotCallback_OnAccept()
    {
      if(Cookiebot.changed) //check if new consent has just been submitted
      {
         Cookiebot.removeCookies();
         location.reload();
      }
    }
    • This reply was modified 6 years, 5 months ago by cookiebot.
    Plugin Author cookiebot

    (@cookiebot)

    Thank you for your answer!
    Cookiebot.changed property and removeCookies() method are not documented in https://www.cookiebot.com/en/developer/
    could you please add them?

    We are aware that there are some functions and callbacks missing in our documentation. We will update it as soon as possible. Thanks anyway!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Statistics cookies are not unset (randomly)’ is closed to new replies.