Examples
Read TC Data
window.__tcfapi("addEventListener", 2, function (tcData, success) {
if (success && tcData && (tcData.eventStatus == "cmpuiclosed" || tcData.eventStatus == "tcloaded")) {
if (!tcData.gdprApplies) {
console.log("GDPR doesn't apply to user");
} else {
if (tcData.vendor.consents[53] && tcData.purpose.consents[1]) {
console.log("Vendor ID 53 has consent for purpose ID 1");
}
if (!tcData.vendor.consents[53] || !tcData.purpose.consents[2]) {
console.log("Vendor ID 53 has no consent for purpose ID 2");
}
if (tcData.vendor.legitimateInterests[53] && tcData.purpose.legitimateInterests[9]) {
console.log("User has been informed of vendor ID 53's legitimate interest for purpose ID 9 and hasn't objected to it");
}
if (!tcData.vendor.legitimateInterests[53] || !tcData.purpose.legitimateInterests[10]) {
console.log("User has objected to vendor ID 53's legitimate interest for purpose ID 10");
}
}
}
});Read the Global Vendor List
Revoke Utiq Consent
Mis à jour
Ce contenu vous a-t-il été utile ?
