How can I show the cookie banner to all users and automatically opt-in non-EU users?

Answered

Comments

3 comments

  • Avatar
    Elina - vConnect - Community Supporter

       Hi Jake,

       Regarding your point 2, you can either

           1) display the banner and ask for consent also for non-EU users or

           2) not display the banner to non-EU users.

       The combination of displaying the banner (which is made and in place for obtaining a consent) and then not giving the user the option to submit their consent as they wish is not possible.
       If you would like to notify the non-EU users about your cookie policy, you could perhaps implement a notice or pop-up of some kind on your website and then link to the Cookie Declaration (https://support.cookiebot.com/hc/en-us/articles/360004374474-What-is-the-Cookie-Declaration-cookie-policy-and-what-is-included-in-it-) or to elsewhere on your site where you describe your policy.



    NOTE: 
    You can use a property on the Cookiebot object called

    Cookiebot.isOutsideEU

    to detect the non-EU users and display a notice if you want.


    Regards,

    Elina

    0
    Comment actions Permalink
  • Avatar
    Hisham Hassan

    Hi Elina, can you show example how this property can be implemented and where do we inset this property?

     

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Elina - vConnect - Community Supporter

    Hi Hisham,

    Bearing in mind that Cookiebot loads asynchronous, so the Cookiebot object may not be available at the time the function is called, here is a sample that you can look at:

    <script>
      function MyFunction() {
        if (typeof Cookiebot !== "undefined") {
          // pop up notice message here
        } else {
          setTimeout(MyFunction, 100);
        }
      }
    </script>

    Regards,
    Elina

    0
    Comment actions Permalink

Please sign in to leave a comment.