Skip to main content

Hide cookie dialog on specific pages

Comments

3 comments

  • Martin Iv. – vConnect

    Hey David, 

    If the user visit your pages without the dialog, it's looks like his/her consent is not given or asked at all. From that standpoint, it`s not be a good solution to hide the dialog. But please give more info about the domain and add inquiry via support system or email:
    support@cookiebot.com

    https://support.cookiebot.com/hc/en-us/requests/new

    Regards. 

    0
  • Martin Iv. – vConnect

    Hello again David, 

    if you have not yet contacted support there is a script that you can hide the dialog without setting cookies.
    Please add it to pages about describing privacy and cookie policy and they shouldn't show the banner:

    <script>
    window.addEventListener(
        "CookiebotOnDialogInit",
        function (e) {
            if (Cookiebot.consent.stamp == 0 && this.top.location !== this.location) {
                Cookiebot.submitCustomConsent(!1, !1, !1);
                window.addEventListener(
                    "CookiebotOnLoad",
                    function (e) {
                        Cookiebot.deleteConsentCookie();
                    },
                    false
                );
            }
        },
        false
    );
    </script>
    0
  • David Strøm

    Hi Martin

    Great, thanks. I will give it a try.

     

    0

Please sign in to leave a comment.