Sign inGet started
Tracking

Webflow analytics

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

Add analytics to Webflow: install, events, consent and AI crawlers, counted without cookies until a yes and read by your agent.

Updated

To add analytics to a Webflow site, add nextanalytica's tag line once, so it runs on every page; the steps for Webflow are below. It counts visits, where they came from and what they led to, without cookies until a visitor agrees, and your agent (Claude, Cursor, Codex) reads the numbers over MCP.

How do you add nextanalytica to Webflow?

In Webflow: Site settings → Custom code → Head code. Paste the tag line, save, publish.

<script async src="https://t.nextanalytica.app/t.js" data-project="na_…"></script>

Copy the line with your project's key from Site: na_… is that key. Never make one up: a line written from memory counts nothing.

How do you send events?

Send the actions that matter, such as a sign-up, from a script on the page:

window.nextanalytica?.track("signup_completed", { plan: "team" });

Mark the events that count as conversions, and your agent reads conversion rates by channel and page. See Custom events.

The tag counts without cookies until the visitor answers your banner, so people who never click it are still counted. Pass the answer on every page:

window.nextanalytica?.consent(true); // or false

A yes starts a first-party id; a no stops the tag sending and removes what it kept. More in Cookieless counting and consent.

How do you record orders?

Where the order is confirmed:

window.nextanalytica?.order({ ref: "A-10492", value: 129.9, currency: "EUR" });

ref makes a repeated call count once. Orders your server confirms can go from the server instead: see Revenue tracking.

Can you see AI crawlers?

AI crawlers such as GPTBot and ChatGPT-User never run the tag. A sender on your server passes their hits, so your agent sees which pages AI assistants read and which visits followed.

  • Webflow behind Cloudflare: a Cloudflare Worker in front of the site passes the hits.

See AI crawlers for the setup, and AI traffic analytics for what you get.

How do you check it works?

Ask your agent "Check my nextanalytica setup": check_setup lists the hosts that sent something and what to do next. Then ask:

  • "How many visits did we have this week, and from where?"
  • "Which pages do people land on from Google and from ChatGPT?"
  • "Which channel brings sign-ups?"

Next steps

Related
  • What the tag collects: Page views, clicks, forms, scroll, errors and page speed, counted without code. What never leaves the page.
  • Add the tag: Put one script line in the head of every page. Where it goes in plain HTML, site builders and each framework.
  • Next.js analytics: Add analytics to Next.js with @nextanalytica/tag: install, events, consent and AI crawlers, counted without cookies until a yes and read by your agent.
  • Next.js custom events: Send custom events from a Next.js app with @nextanalytica/tag: sign-ups, demo requests and conversions your agent reads by channel.
  • Next.js cookie consent: Wire a cookie banner in Next.js to analytics: count without cookies until the answer, and pass the saved answer on every page.
  • Next.js revenue tracking: Record orders in a Next.js app, from the browser or from your server, so revenue ties to the visit, channel and campaign it came from.
Still have questions?
Was this page useful?