IAB framework, consent_string and CookieBot

Comments

6 comments

  • Avatar
    Nehemiah Moses

    I have the same question.

    According to the Transparency and Consent Framework linked here, the cookie stored by the CMP should be named euconsent and the value should be a base64 encoded Daisy Bit string.

    The cookie that Cookiebot saves currently is named CookieConsent and it's value appears to be JSON, not a base64 encoded string.

    Is there a way to save a IAB Compliant cookie string via Cookiebot?

  • HI,

    In order to implement  and enable the IAB framework with Cookiebot simply add the attribute “data-framework” to your existing Cookiebot tag with the value “IAB”. By doing this, Cookiebot will automatically signal consent to any vendor using the IAB framework on your website. You could find more information and example here: https://support.cookiebot.com/hc/en-us/articles/360007652694-Cookiebot-and-the-IAB-Consent-Framework

    The consent string is provided through the IAB framewor on user interaction with Cookiebot. Could you please explain me for what you need this base64 encoded string and is there any problem you are trying to solve, so I can better help. I am asking you for more information because I am not sure if Cookiebot can provide you directly this kind of string and it would be useful if we have more information about this case, so we can do our best in order to help you afterwards. 

    Regards,
    Spas

  • Avatar
    Nehemiah Moses

    Hi Spas,

    It's good to get some feedback so thanks for your response - much appreciated.

    I have included the "data-framework" variable as "IAB." I am curious how CookieBot signals consent to a vendor. My understanding was that consent would be shared with vendors using a cookie named "euconsent" but maybe I am missing something.

    From what I've read about the IAB specification, I understood that the consent cookie needs to be a base64 encoded string that encodes consent information as well as the CMP id that collected the user's consent.

    I am referring to this section of the IAB documentation.

    Thanks,

    Moses

  • HI,

    You could also check this out: http://prebid.org/dev-docs/modules/consentManagement.html
    Visiting the link mentioned above you can see and follow the instructions. 

    On the website, ping the following command every 500ms until result.cmpLoaded equals true (when consent has been loaded or submitted) in the callback:
    *window.__cmp('ping', null, function(result ) { console.log(result) });*

    To retrieve the BASE64-encoded consent string after that, execute the following command and read the value of result.consentData in the callback:
    *window.__cmp('getConsentData', null, function(result ) { console.log(result) });*

    Regards,
    Spas

  • Avatar
    Nehemiah Moses

    Hi Spas,

    Thank you! This actually works - using this code I can access the BASE64-encoded consent string saved by Cookiebot. 

    Question for you: per the IAB specification the CMP should also save the BASE64-encoded consent string as a cookie with the name "euconsent." Do you think Cookiebot will support this functionality anytime soon?

    Thanks again for your help so far - I sincerely appreciate it.

    **In case this is helpful for anyone else, I'll recap how you can access the BASE64-encoded consent string saved by Cookiebot:

    1. Load Cookiebot's JS snippet with the parameter data-framework=IAB (see here for documentation).
    2. Run this code to ensure Cookiebot has loaded: window.__cmp('ping', null, function(result ) { console.log(result) });
    3. Run this code to retrieve the BASE64-encoded consent string: window.__cmp('getConsentData', null, function(result ) { console.log(result) });

    Important: without using the data-framework=IAB parameter as described in step (1), steps (2) and (3) will not work.

  • HI Nehemiah,

    I am glad that we were able to help you solve your issue and thank you for the recap, its really helpful. 
    Unfortunately I could not give you a specific answer regarding you question now. But we will discuss and consider supporting this functionality in the future. 

    Regards,
    Spas

Please sign in to leave a comment.