# Webflow Analyze & Optimize

**URL:** <https://support.iubenda.com/t/webflow-analyze-optimize/6583>\
**Category:** Services/Clauses Requests\
**Created:** [October 31, 2024, 4:53pm UTC](https://support.iubenda.com/t/webflow-analyze-optimize/6583 "2024-10-31T16:53:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giuseppe.legrottag](https://yyz2.discourse-cdn.com/flex048/user_avatar/support.iubenda.com/giuseppe.legrottag/32/471_2.png) [@giuseppe.legrottag](https://support.iubenda.com/u/giuseppe.legrottag)\
**Post date:** [October 31, 2024, 4:53pm UTC](https://support.iubenda.com/t/webflow-analyze-optimize/6583/1 "2024-10-31T16:53:04Z")

</div>

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

* * *

_Importato da [support.iubenda.com](http://support.iubenda.com) (topic #42000308497) · 👁 244 visualizzazioni_

---

<div class="post-metadata">

**Author:** ![giuseppe.legrottag](https://yyz2.discourse-cdn.com/flex048/user_avatar/support.iubenda.com/giuseppe.legrottag/32/471_2.png) [@giuseppe.legrottag](https://support.iubenda.com/u/giuseppe.legrottag)\
**Post date:** [October 31, 2024, 5:27pm UTC](https://support.iubenda.com/t/webflow-analyze-optimize/6583/2 "2024-10-31T17:27:20Z")

</div>

Documentation from webflow: [https://help.webflow.com/hc/en-us/articles/34272466616083-Manage-site-tracking-consent#01JA6CSDMV3AS87ME3HYC78730](https://help.webflow.com/hc/en-us/articles/34272466616083-Manage-site-tracking-consent#01JA6CSDMV3AS87ME3HYC78730)

---

<div class="post-metadata">

**Author:** ![giuseppe.legrottag](https://yyz2.discourse-cdn.com/flex048/user_avatar/support.iubenda.com/giuseppe.legrottag/32/471_2.png) [@giuseppe.legrottag](https://support.iubenda.com/u/giuseppe.legrottag)\
**Post date:** [October 31, 2024, 5:55pm UTC](https://support.iubenda.com/t/webflow-analyze-optimize/6583/3 "2024-10-31T17:55:04Z")

</div>

Ho provato a fare questo script, è corretto?  
Webflow.push(() =\> {

&nbsp; &nbsp; // Controlla il consenso per la categoria "Misurazione"

&nbsp; &nbsp; if (iubenda.api.consent.consents.purposes.measurement === true) {

&nbsp; &nbsp; &nbsp; &nbsp; // Consenso per la misurazione dato, quindi attiva il tracking

&nbsp; &nbsp; &nbsp; &nbsp; Webflow.analytics.optIn();

&nbsp; &nbsp; } else {

&nbsp; &nbsp; &nbsp; &nbsp; // Consenso per la misurazione negato, quindi disattiva il tracking

&nbsp; &nbsp; &nbsp; &nbsp; Webflow.analytics.optOut();

&nbsp; &nbsp; }

});

// Aggiungi anche gli eventi di ascolto per aggiornamenti di consenso in tempo reale

document.addEventListener('iubenda\_consent\_given', () =\> {

&nbsp; &nbsp; if (iubenda.api.consent.consents.purposes.measurement === true) {

&nbsp; &nbsp; &nbsp; &nbsp; Webflow.analytics.optIn();

&nbsp; &nbsp; } else {

&nbsp; &nbsp; &nbsp; &nbsp; Webflow.analytics.optOut();

&nbsp; &nbsp; }

});
