Comments

12 comments

  • Hi Martin,

    Could you please tell me something more about the menu that you are using. Are you using a module/plugin or pure javascript for the creating of the menu? Do you know if the menu is setting some cookies on the website? I am asking this questions because some of above mentioned things could cause the problem. 

    A reason for the above described problem could be that the Cookiebot script is not the first one added to the site. You should add the Cookiebot script at the very top within the HEAD-tag of your website. Another solution which might also works is to move/include the other scripts to the footer so they do not conflict with Cookiebot script which should be added into the head tag of your website.

    Regards, 
    Spas

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi Spas,

    Thank you for your quick reply.

    The menu is not a plugin, the menu was build in PHP, JS only adds and removes 'open' class after a user clicks on the hamburger menu.

    I don't see any cookie added to by it, but another company developed it.

    This site loads the cookiebot script right after jQuery. It is loaded async, but I don't see the async attribute added to the script. Changing it to 'none' does not make any difference.

    Theme js loads in the footer.

    What do we need to do next?

    0
    Comment actions Permalink
  • Hi Martin,

    Cookiebot has been released an updated version of the consent service since these were reported several issues. Now everything should work as expected. Could you please check if the is still a problem and you are experiencing the above described issue. If so, please report the domain name you have problem with so we can see and investigate the the problem more detailed. 
    If you would like you could post your domain name here or send it at support@cookiebot.com 

    Regards, 
    Spas

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi Spas,

     

    It's great to hear that the new version of the CookieBot plugin was released. The newest version I see in the Plugin repository is 3.3.1 – 2019-11-27. Unfortunately, the issue is still present on the site. Is there a newer version there this one?

    When I have checked the cookiebot.php file inside the downloaded plugin, it says Version: 3.3.0, which according to the WP Plugin directory was released on 2019-11-09.

    Is this a typo or the WP Plugin directory still has the Version 3.3.0 instead of the 3.3.1?

    Thank you.

    Kind Regards,

    Martin

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi Spas,

     

    Also, I have added data-cookieconsent="ignore" to the script tag. Unfortunately, it didn't load either, which is strange, because I would suspect that it will prevent the CookieBot from blocking this script.

    Any suggestions would be much appreciated.

    Kind Regards,

    Martin

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi Spas,

    We have updated the plugin to version 3.4, but the issue persists, as it can be observed on the staging site: https://bvtexogenst.wpengine.com/uki/patient/

     

    The main JavaScipt file has data-cookieconsent="ignore" attribute, but the Cookiebot still blocks it anyway, Here is the script tag.

    <script data-cookieconsent="ignore" id="klasik-custom" src="https://bvtexogenst.wpengine.com/wp-content/themes/klasik-framework-child/js/custom.js?ver=1.0"></script>

     

    It's important for us to fix it as soon as possible, and start using your service on the live site.

    How can we resolve this issue?

    0
    Comment actions Permalink
  • Hi Martin,

    After investigating your website (https://bvtexogenst.wpengine.com/uki/patient/) I could not reproduce the above described issue. Cookiebot recently released a new updates and those updates could have been resolved the issue. Could you please confirm that the problem still occurs. 

    Regards, 
    Spas

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi Spas,

    Thank you for your response.

    Unfortunately, the plugin is still causing the issue. To work around it, I moved the Javascript code responsible for showing and hiding the menu from the main.js and embedded it into the HTML pages, which is not ideal, but it should be good enough.

    The site uses the most up-to-date version of the plugin, which was updated over a month ago according to the WordPress plugin repository.

    I am afraid there is still some issue with the plugin not working correctly with this site, but I should be able to go around it now.

    Kind Regards,

    Martin

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi Spas,

    I have configured tags firing in the Google Tag Manager the way it was described in the Cookiebot documentation, but I am getting some weird results. I would appreciate any suggestion on how it could be solved.

    When the google tag manager script is added normally as <script>…, it only loads GTM and GA tags if the user consent to all cookies.

    When the google tag manager script is added normally as <script  data-cookieconsent="statistics">, it loads instantly GTM and GA tags.

    When the google tag manager script is added normally as <script data-cookieconsent="ignore">,  it loads instantly GTM and GA tags.

     

    Google Analytics tag firing in Google Tag Manager is configured in the following way:

     

    I have run more tests:

     

    Test 1: All cookie types accepted; standard GTM script without any modifications;  GTM triggers = consent statistics

    1. Event: Initial page load
      1. CookieConsent has consent = -3
      2. GTM script doesn’t load
      3. GA doesn’t fire
    2. Event: All types of cookies accepted in the Cookiebot bar
      1. CookieConsent 1 has consent = -3
      2. CookieConsent 2 has consent = {stamp:'8b2QazYeR7Y2DZ2kXPaWNGV1lwD3jnLR49BZY3nh7NvMPK3zSk80NA=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:true%2Cver:1%2Cutc:1579794432404}
      3. GTM script loads
      4. GA fires
    3. Event: Reload page
      1. CookieConsent 1 is gone
      2. CookieConsent 2 has consent = {stamp:'8b2QazYeR7Y2DZ2kXPaWNGV1lwD3jnLR49BZY3nh7NvMPK3zSk80NA=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:true%2Cver:1%2Cutc:1579794432404}
      3. GTM script loads
      4. GA doesn’t fire

     

    Test 2: Preferences and statistics cookies accepted; standard GTM script without any modifications; GTM triggers = consent statistics

    1. Event: Initial page load
      1. CookieConsent has consent = -3
      2. GTM scripts doesn’t load
      3. GA doesn’t fire
    2. Event: Preferences and statistics cookies accepted in the Cookiebot bar
      1. CookieConsent has consent = {stamp:'TOLq4GmV7Bvl6Py6UCHVtmAlfVSKvZ65tdXKpdNcgp4kq4uV2iak0Q=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:false%2Cver:1%2Cutc:1579798398519}
      2. GTM script doesn’t load
      3. GA doesn’t fire
    3. Event: Reload page
      1. CookieConsent has consent = {stamp:'TOLq4GmV7Bvl6Py6UCHVtmAlfVSKvZ65tdXKpdNcgp4kq4uV2iak0Q=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:false%2Cver:1%2Cutc:1579798398519}
      2. GTM script doesn’t load
      3. GA doesn’t fire

     

    Test 3: All cookie types accepted; GTM script modified to <script data-cookieconsent="ignore">;  GTM triggers = consent statistics

    1. Event: Initial page load
      1. CookieConsent has consent = -3
      2. GTM script loads
      3. GA doesn’t fire
    2. Event: All types of cookies accepted in the Cookiebot bar
      1. CookieConsent 1 has consent = -3
      2. CookieConsent 2 has consent = {stamp:'SMfXGKb8CJAVB+RBixPNWoGhiWB9adso59DJocw9PFDHgI84zjFApg=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:true%2Cver:1%2Cutc:1579799873533}
      3. GTM script loads
      4. GA doesn’t fire
    3. Event: Reload page
      1. CookieConsent 1 is gone
      2. CookieConsent 2 has consent = {stamp:'SMfXGKb8CJAVB+RBixPNWoGhiWB9adso59DJocw9PFDHgI84zjFApg=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:true%2Cver:1%2Cutc:1579799873533}
      3. GTM script loads
      4. GA doesn’t fire

     

    Test 4: Preferences and statistics cookies accepted; GTM script modified to <script data-cookieconsent="ignore">; GTM triggers = consent statistics

    1. Event: Initial page load
      1. CookieConsent has consent = -3
      2. GTM script loads
      3. GA doesn’t fire
    2. Event: Preferences and statistics cookies accepted in the Cookiebot bar
      1. CookieConsent has consent = {stamp:'rUERw4Tf1+HXO6OkZcDVJs01aCdyM468L6PJKx/MQ4f638NsDTuHDQ=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:false%2Cver:1%2Cutc:1579799920207}
      2. GTM script loads
      3. GA doesn’t fire
    3. Event: Reload page
      1. CookieConsent has consent = {stamp:'rUERw4Tf1+HXO6OkZcDVJs01aCdyM468L6PJKx/MQ4f638NsDTuHDQ=='%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:false%2Cver:1%2Cutc:1579799920207}
      2. GTM script loads
      3. GA doesn’t fire

     

    GTM preview URL with debugging enabled

    https://www.googletagmanager.com/start_preview/gtm?uiv2&id=GTM-WQB9WPJ&check_preview_status=1&gtm_auth=4tFdZDKr2qvAJmQqeQ0N7A&gtm_preview=env-5&gtm_debug=x&url=https%3A%2F%2Fbvtexogenst.wpengine.com%2F

    Any feedback will be greatly appreciated. Thank you

    Kind Regards,

    Martin

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi,

     

    I would like to follow up on my last message. We still have not solved the issue described above. I would appreciate any suggestions on how we could resolve it.

     

    Kind Regards,

    Martin

    0
    Comment actions Permalink
  • Hi Martin,

    As I understand from the above described information the problem is related with Google Tag Manager implementation. By looking at the source code of your website (https://bvtexogenst.wpengine.com/uki/patient/) I can see that you have not followed the guidelines correctly. Could you please check the following article:
     https://support.cookiebot.com/hc/en-us/articles/360009192739-Google-Tag-Manager-and-Automatic-cookie-blocking 

    You need to move the GTM script up before the Cookiebot script, as described in the article.
    Also, please make sure that the firing trigger is set correctly on the GA tag in GTM - which I can't see from the submitted screenshots. This part of the implementation is described in the article above, and also in the Cookiebot general GTM-guide: https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment

    Regards, 
    Spas

    0
    Comment actions Permalink
  • Avatar
    Martin

    Hi Spas,

    Thank you for your feedback. It allowed me to solve the problem. Much appreciated.

    Kind Regards,

    Martin

    0
    Comment actions Permalink

Please sign in to leave a comment.