Skip to content

Customize Cookie Consent

Benjamin Kott edited this page Mar 25, 2019 · 4 revisions

Translation

Use TypoScript to override provided language labels with custom settings. If you want to help better defaults for the texts in your language please visit the TYPO3 Translation Server https://translation.typo3.org/projects/TYPO3.ext.bootstrap_package/

plugin.tx_bootstrap_package {
    _LOCAL_LANG {
        default {
            cookieconsent.common.header = We got Cookies!
        }
        de {
            cookieconsent.common.header = Wir haben Kekse!
        }
    }
}

Defaults

Language Key Default Value
cookieconsent.common.header Cookies used on the website!
cookieconsent.common.message This website uses cookies to ensure you get the best experience on our website.
cookieconsent.common.dismiss Got it!
cookieconsent.common.allow Allow cookies
cookieconsent.common.deny Decline
cookieconsent.common.link Learn more

JavaScript

Event Description
bk2k.cookie.enable Cookies allowed
bk2k.cookie.disable Cookies disallowed
bk2k.cookie.revoke User revoked choices
bk2k.cookie.popupopen Cookie consent opened
bk2k.cookie.popupclose Cookie consent closed