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

# Bubble custom events

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

Updated: 2026-12-01

In Bubble, the simplest way to count an action is on the page that follows it: put an HTML element with a script on the thank-you or welcome page. Bubble runs script tags in an HTML element in run mode, not in the editor.

## How does it look?

Add an HTML element to the page shown after the sign-up, with:

```html
<script>
  window.nextanalytica?.track("signup_completed");
</script>
```

The tag itself goes in Settings, SEO / metatags, Script/meta tags in header. See [Bubble analytics](/docs/platforms/bubble).

## What can you ask your agent?

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

## Next steps

- [Bubble analytics](/docs/platforms/bubble)
- [Custom events](/docs/tracking/custom-events)

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