# See where people drop off in your app

> Ask an Agent how many people get through each step of a flow such as sign-up or checkout, where the others stop, and what to change at the step where most stop.

Source: https://air.build/docs/services/see-where-people-drop-off/

A flow in your app, such as sign-up, onboarding or checkout, is a row of steps. An Agent can count how many people did the first step, how many of them went on to each next step, and so where the others stopped. This is often called a funnel. The Agent reads it from your app's AirTraffic events with `workers traffic funnel`.

> [!NOTE]
> The **AirTraffic** tab has no funnel view. You ask an Agent in the Project's chat. The `workers` command it uses is listed under AirTraffic in [workers](https://air.build/docs/cli/workers/#airtraffic-analytics).

## Before you ask

- Your app sends AirTraffic events. If the **AirTraffic** tab still shows its page with **Ask Agents to Add**, it doesn't yet. See [Measure app usage (AirTraffic)](https://air.build/docs/services/measure-usage/#add-airtraffic-to-your-app) and [Add an AirBuild service to your app](https://air.build/docs/services/add-an-airbuild-service/).
- Each step has an event. A step can only be counted if the app sends an event when someone reaches it. The tab's **Events** section lists the names your app sends; if the list has more than five, tap **Show All** at its end. If a step has none, the Agent can add it: see [Add a step that has no event](https://air.build/docs/services/see-where-people-drop-off/#add-a-step-that-has-no-event).

## Ask

Ask in the Project's chat, for example:

```text
Of the people who open the sign-up screen, how many finish signing up? Where do the others stop? Last 30 days.
```

1. The Agent looks up the events your app sends with `workers traffic definitions` and picks one event for each step, in order.
2. It runs `workers traffic funnel --steps` with those events, at least two, from first to last. `--from` and `--to` set the dates: for example the last 7 days, the last 3 months, the last year, or between two dates.
3. It replies with how many people reached each step, and so how many stopped before the next one. It may also draw them as a chart card: see [Read a chart or a check report an Agent sends](https://air.build/docs/agents/read-charts-and-checks-from-agents/#read-a-chart).

Check the steps the Agent names in its reply. If one isn't the screen or action you meant, say which one it should be, and ask again.

Nothing changes in your app: the command only reads events.

### Give people more time

`--window` sets how long people have to get from the first step to the last, for example `14d` for 14 days. If your flow takes longer, say so, for example:

```text
Count everyone who started a free trial and bought a plan within 30 days.
```

## Split by a property

Events can carry properties, such as the platform or the app's version, when your app sends them. The Agent can split the funnel by one with `--breakdown`, for example:

```text
Show the sign-up steps split by platform.
```

You get the counts for each value side by side, so you can see whether people on one platform stop more often than on another.

## Add a step that has no event

If the app doesn't send an event for a step, ask for one, for example:

```text
Send an event when someone taps Create Account, so we can count that step.
```

The Agent adds it to your app's code. Events only arrive from people who use a version of the app that sends them, so the new step's counts start from there. For an app on the App Store, that means after your next update: see [Ship an update to your app](https://air.build/docs/app-store/ship-an-update/).

## Fix the step where most people stop

Once you know where people stop, ask the Agent to look at that step, for example:

```text
Most people stop between the plan screen and payment. What could make that step easier? Make the change.
```

1. The Agent looks at that part of your app and suggests what to change, or makes the change.
2. Try it in Preview. See [Run your app in Preview](https://air.build/docs/build/preview-your-app/).
3. Ship it. After people have used the new version for a while, ask for the funnel again for the dates since the update, against the dates before it.

## Questions

**The Agent says a step has no events.**

Your app doesn't send that event, or nobody did that step in the dates you asked about. Ask the Agent to add the event (see [Add a step that has no event](https://air.build/docs/services/see-where-people-drop-off/#add-a-step-that-has-no-event)), or ask for a longer range.

**Someone starts on their iPhone and finishes on their Mac. Do they count?**

It depends on **Identity** in the **AirTraffic** tab. The tab says: "Anonymous counts devices. Linked counts each signed-in person once across their devices." With **Anonymous**, the two devices are two different people, so this person can count as someone who stopped. See [Measure app usage (AirTraffic)](https://air.build/docs/services/measure-usage/#identity).

**Is this the same as Retention in the AirTraffic tab?**

No. **Retention** shows who comes back after they were first seen. A funnel shows who gets through the steps of one flow. For other questions about your numbers, see [Ask your Agents how people use your app](https://air.build/docs/services/ask-agents-about-your-apps-numbers/).

**I want to see what one person did, not everyone.**

See [See what one person did in your app](https://air.build/docs/services/see-what-one-person-did-in-your-app/).
