Borlabs Cookie 3.0-Integration mit Kameleoon
- Navigieren Sie zur Seite Projects.
- Klicken Sie auf Ihrer Projektkarte auf Configuration.

- Fugen Sie diesen Code zum Global custom script in Ihren Projekteinstellungen hinzu:

Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Integrieren Sie Borlabs Cookie 3.0 mit Kameleoon, um die Datenerfassung automatisch basierend auf den Einwilligungsvorlieben der Besucher zu aktivieren oder zu deaktivieren.

const checkType = 'kameleoon';
const checkCookie = 'borlabs-cookie';
const getConsentCookie = () => {
const value = document.cookie.match(checkCookie);
return value ? decodeURIComponent(value[0]).includes(checkType) : undefined;
};
Kameleoon.API.Core.runWhenConditionTrue(
() => getConsentCookie() !== undefined && window.BorlabsCookie.checkCookieConsent,
() => {
if (window.BorlabsCookie.checkCookieConsent(checkType)) {
Kameleoon.API.Core.enableLegalConsent();
console.log('enableLegalConsent');
} else if (!window.BorlabsCookie.checkCookieConsent(checkType)) {
Kameleoon.API.Core.disableLegalConsent();
console.log('disableLegalConsent');
}
});

War diese Seite hilfreich?