Posts by AEGIS:

(function () { if (window.dataLayer) { // Set default consent states window.dataLayer.push({ event: "default", ad_storage: "denied", ad_user_data: "denied", ad_personalization: "denied", analytics_storage: "denied", functionality_storage: "denied", // User must opt-in personalization_storage: "denied", security_storage: "granted" // Always granted for necessary cookies }); // Listen for user interactions document.addEventListener("click", function (event) { var dataLayerUpdate = {}; if (event.target.id === "hs-eu-confirmation-button") { // Accept All Button dataLayerUpdate = { event: "consentUpdate", ad_storage: "granted", ad_user_data: "granted", ad_personalization: "granted", analytics_storage: "granted", functionality_storage: "granted", personalization_storage: "granted", security_storage: "granted" }; } if (Object.keys(dataLayerUpdate).length > 0) { window.dataLayer.push(dataLayerUpdate); console.log("Consent updated via Google Consent Mode:", dataLayerUpdate); } }); } })();