# Event funnels

Measure conversion across multi-step user journeys. Build funnels from the events the JavaScript tag captures, like page views, clicks, and form submissions, plus your own custom events.

## Build a funnel

1.  Open [Explore funnels](https://rum.betterstack.com/team/0/explore-events/new?chart=eyJjaGFydF90eXBlIjoiZnVubmVsX2NoYXJ0In0%3D&explore_funnels=true ";_blank") in the side menu.
2.  Define the funnel steps. Each step is a condition on your events, for example:

    ```
    [label Funnel step conditions]
    payload.meta.path="/"
    payload.meta.path="/pricing"
    event="signup-completed"
    ```

3.  Run the query. Each step shows how many people reached it and how many converted or dropped off, with the total conversion rate of the whole funnel below.

![Funnel exploration with three steps and conversion rates](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/f3d94a48-1138-4217-cf8c-5a351aa30500/orig =3656x2338)

Each condition matches a field on the web event. `payload.meta.path` matches the page path, such as `/` or `/pricing`, and `payload.meta.url` matches the full page URL. Use `event="<name>"` to match an event type, including custom events sent with `betterstack('track', ...)`.

Steps start pre-filled with the most visited pages of your website. Adjust them to match your journey:

- **Rename steps** by clicking the step name, so the funnel reads "Landing page → Pricing → Signed up".
- **Reorder steps** by dragging them.
- **Add a step** with **Add action**, remove one with **Remove step**.
- **Breakdown by** a field like `browser.name` to compare conversion across segments.
- **Aggregate by** controls what's counted. By default each session counts once.

Use **View recent events** below the steps to inspect the raw events arriving from your website.

## Funnel and trend views

Two visualizations are available for every funnel:

- **Funnel** shows conversion between steps for the selected time range.
- **Trend** shows how conversion develops over time, so you can see whether a release or campaign moved the numbers.

## Track conversions with custom events

Page views only go so far. Send [custom events](https://betterstack.com/docs/rum/js-tag/installation/#track-custom-events) for the moments that matter, like completed signups or purchases, and use them as funnel steps:

```javascript
[label Track a conversion event]
betterstack('track', 'signup-completed', {
  plan: 'team',
});
```

## Next steps

- [Identify signed-in users](https://betterstack.com/docs/rum/identify-users/): see who converts, not just how many.
- [Session replays](https://betterstack.com/docs/rum/using-the-product/session-replays/): watch sessions that dropped off.
