skills/webflow-browser-api/SKILL.md
Control Webflow Analyze and Optimize from JavaScript via the Browser API. Use when managing tracking consent, integrating CMPs (OneTrust, TrustArc), tracking experiment variations, setting custom visitor attributes, or personalizing user experiences.
npx skillsauth add 224-industries/webflow-skills webflow-browser-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 object — Automatically available on all sites with Analyze or Optimize enabledwf.ready() — All Browser API calls must be wrapped in this readiness callback. See references/wf-ready.mdgetUserTrackingChoice(), allowUserTracking(), denyUserTracking()onVariationRecorded() and forward to analytics toolssetAttributes() for audience targeting and result filtering (Enterprise only)| Method | Description |
|--------|-------------|
| 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 |
setAttributes) are only available on Enterprise siteswf.ready() to prevent calls before initialization<head> custom code for earliest possible executionEach reference file includes YAML frontmatter with name, description, and tags for searchability. Use the search script in scripts/search_references.py to find relevant references.
wf.ready() API referenceonVariationRecorded() API referencesetAttributes() API reference# List all references with metadata
python scripts/search_references.py --list
# Search by tag (exact match)
python scripts/search_references.py --tag <tag>
# Search by keyword (across name, description, tags, and content)
python scripts/search_references.py --search <query>
scripts/search_references.py: Search reference files by tag, keyword, or list all with metadatadevelopment
Receive and verify Webflow webhooks. Use when setting up Webflow webhook handlers, debugging signature verification, or handling Webflow events like form_submission, site_publish, ecomm_new_order, or collection item changes.
development
Webflow Enterprise API endpoints for workspace management, audit logs, site activity, 301 redirects, robots.txt, and well-known files. Use when working with Enterprise-only Webflow API endpoints that require an Enterprise workspace.
tools
Work with the Webflow Designer API — either by building Designer Extensions (iframes inside the Webflow Designer) or by generating code snippets for the Designer API Playground. Covers element manipulation, styles, components, pages, variables, assets, error handling, CLI usage, and UI design patterns. Use when creating, debugging, or modifying Designer Extensions, OR when the user wants to run Designer API code in the Playground app.
development
Build, define, and import React code components into Webflow via DevLink. Use when creating Webflow code components, configuring declareComponent definitions, working with prop types, styling within Shadow DOM, bundling with Webpack, or troubleshooting DevLink imports.