• Resolved Jedi82

    (@jedi82)


    Hy guys, i just implemented your tool but i notice that, after the user accept the banner, the site seems to refresh but do not refresh and cookies and google ads never show. I have to refresh multiple time before see the cookies.

    Is there a way to auto refresh the page after accepting the cookie banner?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Richard

    (@rvcybot)

    Hi @jedi82,

    You can do this with one of these scripts:

    Reload on accept:

    CookiebotCallback_OnAccept = () =>
      Cookiebot.changed && document.location.reload();

    Reload on decline:

    CookiebotCallback_OnDecline = () =>
      Cookiebot.changed && document.location.reload();

    Reload on any type of consent:

    window.addEventListener('CookiebotOnConsentReady', () => {
      Cookiebot.changed && document.location.reload();
    })
    Thread Starter Jedi82

    (@jedi82)

    thanks Richard but where and how i can add this script? I can use Snippets maybe?

    Plugin Support Richard

    (@rvcybot)

    Hi @jedi82,

    Since these are all callbacks it doesn’t really matter where you add them.
    You can just put them in a par of <script> tags and add them anywhere on the page.

    So as long as you put one of the above between scripts-tags can add indeed add them using Snippets.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘After accepting the banner, site do not refresh…but have to’ is closed to new replies.