> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# Webflow cookie consent

> Wire a cookie banner in Webflow to analytics: count without cookies until the answer, and pass the saved answer on every page.

Updated: 2026-12-01

In Webflow, pass your banner's answer to the tag on every page, from a script in your site's custom code. Until there's an answer, nextanalytica counts without cookies.

## How does it look?

```html
<script>
  const saved = localStorage.getItem("consent"); // "yes", "no" or null
  if (saved !== null) window.nextanalytica?.consent(saved === "yes");
</script>
```

Your banner saves the answer and calls `window.nextanalytica.consent(true)` or `consent(false)` when the visitor clicks.

## What can you ask your agent?

- "How many visitors this week came before answering the banner?"

## Next steps

- [Webflow analytics](/docs/platforms/webflow)
- [Cookieless counting and consent](/docs/tracking/cookieless-and-consent)

Canonical address: https://nextanalytica.app/docs/platforms/webflow/consent
