Webflow Analyze & Optimize
Webflow has launched two fantastic new tools, Analyze and Optimize, for native analytics and A/B test but we need a specific opt in or opt out to comply for privacy
Webflow has launched two fantastic new tools, Analyze and Optimize, for native analytics and A/B test but we need a specific opt in or opt out to comply for privacy
Documentation from webflow: https://help.webflow.com/hc/en-us/articles/34272466616083-Manage-site-tracking-consent#01JA6CSDMV3AS87ME3HYC78730
Ho provato a fare questo script, รจ corretto?
Webflow.push(() => {
// Controlla il consenso per la categoria "Misurazione"
if (iubenda.api.consent.consents.purposes.measurement === true) {
// Consenso per la misurazione dato, quindi attiva il tracking
Webflow.analytics.optIn();
} else {
// Consenso per la misurazione negato, quindi disattiva il tracking
Webflow.analytics.optOut();
}
});
// Aggiungi anche gli eventi di ascolto per aggiornamenti di consenso in tempo reale
document.addEventListener('iubenda_consent_given', () => {
if (iubenda.api.consent.consents.purposes.measurement === true) {
Webflow.analytics.optIn();
} else {
Webflow.analytics.optOut();
}
});