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

# Webflow custom events

> Send custom events from a Webflow app with @nextanalytica/tag: sign-ups, demo requests and conversions your agent reads by channel.

Updated: 2026-12-01

In Webflow, send custom events from a script in your site's custom code, where the tag line already is. The script listens for the action you want to count.

## How does it look?

```html
<script>
  document.addEventListener("click", e => {
    if (e.target.closest("[data-track='demo']")) window.nextanalytica?.track("demo_requested");
  });
</script>
```

Give the buttons you want to count a custom attribute such as `data-track="demo"` in Webflow's element settings.

## What can you ask your agent?

- "Which events happen most this week?"
- "What's the sign-up rate by channel this month?"

## Next steps

- [Webflow analytics](/docs/platforms/webflow)
- [Custom events](/docs/tracking/custom-events)

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