Skip to main content

Cookiebot and Consent Mode - not detecting all cookies

Comments

2 comments

  • Patrick Gehrs

    Hi Jakub,

    Thank you for the message.

    Since you are using manual blocking mode you should make sure that all scripts are marked up correctly.

    So the GA scripts especially, should be marked up with the attribute: data-cookieconsent='marketing'

    Let me know how it works out.

    Best,
    Patrick

    1
  • Jakub Podolski

    Hi Patrick, 

    Thank you for the response!

    Just to verify, should I add the data-cookieconsent='marketing' to the Google Tag Manager script like so:

    <script data-cookieconsent='marketing'>
    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-XXXXXXX');
    </script>

    Or should I add it in another place/modify the existing Google Analytics Universal script tag? (like it is shown here https://www.cookiebot.com/en/manual-implementation/)
    Consent Mode and Google Tag Manager scripts tags are the only ones that I have on my site.

    Additional question, is it possible to have automatic blocking mode with Google Tag implementation and Consent Mode?

    Regards, 
    Jakub 

    0

Please sign in to leave a comment.