# AirTraffic

> The Project tab that shows how people use your app: the time range bar, People, Sessions, Views and Session Length, active-people charts, retention, top screens, countries, platforms, events, the latest events, Identity and Reset Data.

Source: https://air.build/docs/screens/traffic/dashboard/

AirTraffic is a Project's tab that shows how people use the Project's app, from the events the app sends: how many people and sessions, which screens they visit, what they do and whether they come back. A bar at the top picks the time; under it are four headline numbers, line charts, a retention table, top lists, the app's events and the newest ones as they arrive. The walk-through, from adding AirTraffic to the app to reading the numbers, is the Guide [Measure app usage (AirTraffic)](https://air.build/docs/services/measure-usage/).

## Open it

**iPhone**

In the Project's chat, tap the tabs button (four squares) in the top-right corner, and in the list under the tab cards tap **AirTraffic**. See [Tab overview](https://air.build/docs/screens/shell/tab-overview/).

On iPhone the tab is a page over the chat; go back with the back button or a swipe from the left edge. An iPad window too narrow for two columns works the same way.

**On iPad** at full width, tap **Show Inspector** at the right end of the chat's toolbar, tap **New Tab** (**+**) and tap **AirTraffic** (in the **AirBuild Services** group). The tab opens beside the chat.

**Mac**

- In the Project's chat, choose **View › Go To › AirTraffic**.
- Or open the inspector with **View › Show Inspector** (⌥⌘I chooses it too), click **New Tab** (**+**) and click **AirTraffic** (in the **AirBuild Services** group).

The tab opens beside the chat.

AirTraffic is only in Project chats.

## Before anything arrives

Until the app has sent its first event, the tab shows the AirTraffic service page: a row of illustrated cards and "App analytics that shows which screens people visit, what they do, and whether they come back."

| Item | What it does |
| --- | --- |
| **Ask Agents to Add** | Asks first: **Ask Agents to Add**, with the words it will send, "Add AirTraffic to the app". Tap **Send** (or **Cancel**). The words go into the Project's chat, in your name, as a request for your Agents to add AirTraffic to the app. The chat comes to the front. |
| "Added — the agents are on it" | Shows in place of the button once the request is in the chat, also after a relaunch or on another device. |
| **Open Chat** | Next to that line: goes to the Project's chat. Shows only when the chat isn't already beside the tab. |

In the chat, your request shows as your own message, "Add AirTraffic to the app", with a one-line chip under it: AirTraffic's artwork, its name and a chevron. Tap the chip to come back to this tab. See [AirBuild service](https://air.build/docs/cards/platform-service/#a-persons-request).

When the first event arrives, the dashboard replaces this page. Your Agents may ask you a question while they add it; how people are counted is then shown under [Identity](https://air.build/docs/screens/traffic/dashboard/#identity).

## The time bar

At the top of the dashboard. On a wide pane it's one row; on a narrow one, two.

| Item | What it does | Default |
| --- | --- | --- |
| ‹ (**Earlier**) | Moves the range back by its own length: a month by a calendar month, any other range by its number of days. Dimmed when that would start more than about two years back. | — |
| Range (calendar icon) | The range's name and, for a named range, its days, for example **Last 30 Days** "Oct 21 – Nov 19". The year shows only when it isn't this year. Opens the range menu (below). | **Last 30 Days** |
| › (**Later**) | Moves the range forward by its own length. Dimmed when the range already reaches today. | — |
| Interval | **Hourly**, **Daily**, **Weekly** or **Monthly**: the step the charts use. | Set by the range (below) |
| **Compare** | On: each headline number shows its change from the period before, and the charts draw the period before as a second, fainter line. | On |

The range menu has three sections: **Today**, **Yesterday**; **Last 7 Days**, **Last 14 Days**, **Last 30 Days**, **Last 90 Days**, **Last 180 Days**; **This Month**, **Last Month**, **Year to Date**, **Last 12 Months**. Then **Custom Range…**, which opens [Custom Range](https://air.build/docs/screens/traffic/custom-range/) to pick any days. A range of whole days that matches a named one takes its name: one step back from **Today** is **Yesterday**. Other days show as their dates, for example "Oct 1 – Oct 7".

"Today" and the ranges up to now run to the current moment. The period **Compare** uses is the same number of days just before; for **Today** it's yesterday up to the same time of day.

### Intervals

Each range opens in its own interval: **Hourly** for one or two days, **Daily** up to 180 days, **Weekly** up to 540 days, **Monthly** beyond. You can pick another in the menu; the ones that don't fit the range are dimmed:

| Interval | Can be picked for |
| --- | --- |
| **Hourly** | Ranges of 14 days or less |
| **Daily** | Any range |
| **Weekly** | Ranges of 14 days or more |
| **Monthly** | Ranges of 60 days or more |

When you change the range, your interval stays if it fits the new one; if not, the range's own is used.

The range, interval and **Compare** you pick are remembered on this device and used for every Project's AirTraffic tab.

## What's on it

Top to bottom, under the time bar. While the numbers load, each part shows placeholders in its own shape. On iPhone and iPad, pull down to read everything again.

### Headline numbers

Four cards, two by two on a narrow pane and in one row on a wide one:

| Card | What it shows |
| --- | --- |
| **People** | How many people used the app in the range. |
| **Sessions** | How many visits. |
| **Views** | How many screens and pages were viewed. |
| **Session Length** | How long a session lasts on average, for example "1m 34s". |

With **Compare** on, each card shows its change from the period before, for example "+12%" when it went up or "-8%" when it went down. No change shows when the period before had nothing to compare with. A card reads "—" when its number couldn't be read.

### Active People

| Chart | What it shows |
| --- | --- |
| **Daily Active People** (or **Active People per Hour**, **Active People per Week**, **Active People per Month**, after the interval) | People in each step of the range, as a line. At the top right: the latest step's number, with which step it is: "Today", or its time or date. |
| **Weekly Active People** | People over each 7 days, by day, to smooth out busy and quiet days. Only with the **Daily** interval. |

The last part of a line is dashed while its step is still going (the range reaches now). With **Compare** on, a fainter line under it shows the period before, step for step, with the legend **Previous Period**.

### Retention

"Of the people first seen in each period, the share who came back in each period after."

| Column | What it shows |
| --- | --- |
| **Cohort** | The day, week or month people were first seen. The first row, **Average**, weighs every cohort by its size. |
| **People** | How many people the cohort has. |
| **Day 0**, **Day 1**, … (or **Week 0**, … or **Month 0**, …) | The share of the cohort seen again that many periods later. The stronger a cell's shading, the higher the share. A period that hasn't started yet is empty. |

Cohorts are days for ranges of 14 days or less, weeks up to 180 days, months beyond. On a narrow pane, swipe the periods sideways; **Cohort** and **People** stay put.

### Top lists

| Section | What it shows | When it shows |
| --- | --- | --- |
| **Top Pages & Screens** | The screens and pages people visited most, each with its number of people. | Always |
| **Countries** | Where people are, by country name in your language, each with its number of people. | Only when the app sends this information |
| **Platforms** | What people use (for example iOS), each with its number of people. | Only when the app sends this information |

### Events

The five event names the app sent most in the range. Each row: the event's name, "Last sent" and how long ago (for example "Last sent 18m ago"), and its count.

- Tap an event to chart it: a line "_event_ per Day" (or **per Hour**, **per Week**, **per Month**) appears over the list, with the range's total at the top right, and the row gets a check. Tap it again to remove the chart. Only one event is charted at a time. If you pick a range the event wasn't sent in, the chart goes away.
- **Show All (_n_)** lists every event; **Show Less** goes back to five. Shown only when there are more than five. The tab opens on five again next time.

### Latest Events

The newest events, as they arrive. Each row: the event's name; under it the screen or page, the app's version and the event's own details (`name=value`), where the app sent them; and how long ago it arrived.

### Identity

| Value | What it means |
| --- | --- |
| **Anonymous** | Each device counts as one person. |
| **Linked to Signed-In Users** | Each signed-in person counts once across their devices. |

Footer: "Anonymous counts devices. Linked counts each signed-in person once across their devices. The agent sets this after asking you." You can't change it here; ask your Agents in the chat.

### Reset Data

The last row, **Reset Data**. Footer: "Deletes every event and person this app has sent, so counting starts again from zero." Anyone in the Team can use it. **Identity** and **Reset Data** show only once the app has sent something.

## Reset the data

To reset, see [Measure app usage (AirTraffic)](https://air.build/docs/services/measure-usage/#reset-the-data).

Tapping **Reset Data** first asks **Reset AirTraffic Data?**: "Every event and person this app has sent is deleted. This can’t be undone." Tap **Reset Data** to go ahead, or **Cancel**.

A spinner shows on the row while it works, and it can't be tapped again. When it's done, the events and people are gone; events the app sends afterwards are counted from zero.

> [!CAUTION]
> Reset can't be undone.

## Messages

| Message | When it shows | What to do |
| --- | --- | --- |
| **Unable to Load AirTraffic**, with the reason, and **Try Again** | In place of the dashboard, when the tab couldn't be read. | Tap **Try Again**. |
| A reason with **Try Again**, inside one section | That section couldn't be read; the rest of the tab is fine. | Tap **Try Again**. |
| "Nothing in this time range." | A top list or **Retention** has nothing in the range you picked. | Pick a longer range, or one that includes when people used the app. |
| "Nothing has arrived yet." | **Latest Events** has no events yet. | Wait for the app to send some, or check the app with your Agents. |
| **Reset AirTraffic Data?**: "Every event and person this app has sent is deleted. This can’t be undone." | You tapped **Reset Data**. | **Reset Data** to delete everything, or **Cancel**. |
| **That Didn’t Work**, with the reason | **Reset Data** didn't go through. Nothing was deleted. | Tap **OK** and try again. |
| "Select a project in the sidebar to manage its app services." | The tab has no Project to show. | Open a Project's chat. |

A quiet range in an app that has sent events before shows the dashboard with zeros, not the service page.
