Cookiebot script not showing ads despite cookie value of "-1", messing up layout

Comments

4 comments

  • Avatar
    Elizabeth Stapel

    I gave up ad deleted the "cookieconsent-optin-marketing", which used to work in accordance with the example in the following article:

    https://support.cookiebot.com/hc/en-us/articles/360003812053-Hide-and-show-content-based-on-the-visitor-s-consent

    I'm having my ad-server handle the Cookiebot cookie, blocking display whenever the cookie does not exist and the user's geoIP is in the EU, or whenever the cookie says "marketing:false". Via proxy servers, I have confirmed that ads are still correctly blocked when the user is coming from the EU, ads are correctly displayed elsewhere, and the formatting of the page is no longer broken.

    Note: I do not recall there having been a "dot" in front of the tags before. For instance, the above article now shows the tag as being ".cookieconsent-optin-marketing" (note the prefixed period), though the example still shows no dot.

    Which part of the above article is in error?

    Thank you!

    0
    Comment actions Permalink
  • Avatar
    Spas – vConnect – Community Supporter

    Hi Elizabeth,

    ".cookieconsent-optin-marketing" is a class name which has a specific action that you can apply to any element and have specific action (its described in the article that you have mentioned in the above comment).

    When targeting a HTML DOM element by class name, through CSS or jQuery, you place a dot in front of the class name: for example .myclass
    Hence, there is a prefixed "dot", demonstrating that this is a class. In the example, there is no dot, because when setting the classes, you don't use dots. This is just a ordinary css class which could be used to to hide some element if user has not opted for a specific cookie or otherwise display the element.

    In the first part of the mentioned article, the class ".cookieconsent-optin-marketing" is given as a example, how it should be used and its purpose. While in the example at the end of the article there is a HTML code which set the class to a specific element (it shows a div element to which is set class with name "cookieconsent-optin-marketing", that's why there is no "dot" in front of the class name and it says only class="cookieconsent-optin-marketing"). 
    If you want you could check this link out for more detailed information about the "dot" in front of the class name and how its used, hope this answer your question.

    Regards,
    Spas

    0
    Comment actions Permalink
  • Avatar
    Elizabeth Stapel

    I am aware of how the class declaration is supposed to work, being how it used to work. I'm asking how it has been changed, so that it isn't working properly now.

    (As for the prefixed dot, it isn't presented in the article is "this is how we've declared in our CookieBot CSS". It is presented as "this is what you should put in your coding". Clarification might be helpful.)

    So, returning to my original question, what has changed on the back end? How should we change our front ends in order to get things to work correctly again?

    Thank you.

    0
    Comment actions Permalink
  • Hi Elizabeth,

    The issue with the cookieconsent value being set to -1, meaning that the banner did not show has been fixed.
    If you still experience any other problems now please contact the support team via the support email mail@cookiebot.com

    Regards,
    Spas

    0
    Comment actions Permalink

Please sign in to leave a comment.