The Browser API is a JavaScript interface exposed via the global wf object on all Webflow sites with Analyze and Optimize enabled. It requires no manual installation. Use it to manage consent, track experiments, and personalize user experiences.
| wf.ready(callback) | Execute code after the Browser API loads | | wf.getUserTrackingChoice() | Returns "allow", "deny", or "none" | | wf.allowUserTracking(options?) | Opt user into tracking | | wf.denyUserTracking(options?) | Opt user out of tracking | | wf.onVariationRecorded(callback) | Register a callback for variation events |
| wf.setAttributes(scope, attributes) | Set custom visitor attributes |
Controlla il flusso Web, analizza e ottimizza da JavaScript tramite l'API del browser. Da utilizzare durante la gestione del consenso al monitoraggio, l'integrazione di CMP (OneTrust, TrustArc), il monitoraggio delle variazioni dell'esperimento, l'impostazione di attributi personalizzati dei visitatori o la personalizzazione delle esperienze utente. Fonte: 224-industries/webflow-skills.