Custom dialog: Enabling a cookie type by default

Comments

1 comment

  • Hi G.Frenken,

    You could simply select which cookie categories to be checked by default from the 'Dialog' tab in the account manager, but this feature is available only for predefined Cookiebot dialog types. 

    However, in case that you are using custom banner then you must specify which cookie category to be selected/pre-checked by default from the template source code. You can achieve this by adding an ID and "checked" attribute on the checkbox input field, for example:

    <input type="checkbox" id="CybotCookiebotDialogBodyLevelButtonPreferences" class="CybotCookiebotDialogBodyLevelButton" checked="checked">

    Please try using checked="checked" instead of just 'checked' attribute on the checkbox input field. 

    Regards,
    Spas

    0
    Comment actions Permalink

Please sign in to leave a comment.