Count visits to your website
Have an Agent add AirTraffic to your app's website, check that visits arrive, and read visitors, page views and top pages in the AirTraffic tab or from an Agent.
AirTraffic counts the pages people open on a website as well as the screens they open in your app. In the Project’s AirTraffic tab, Views adds up page views and screen views, and Top Pages & Screens lists a site’s pages by their path, such as /pricing. Your website sends nothing until an Agent adds AirTraffic to it.
The site has to be one your Agents can change and put online, such as one they built for the Project. See Publish your app’s website.
Ask for it
Ask in the Project’s chat, for example:
Add AirTraffic to the app's website, so I can see how many people visit it and which pages they open.- If the Project doesn’t use AirTraffic yet, an Agent may first post a card about it. Tap Turn On AirTraffic… on it, then Turn On AirTraffic in the sheet. See Add an AirBuild service to your app.
- The Agent adds AirTraffic to the site and puts the new version online.
- It tells you in the chat when it’s done.
Check that visits arrive
- Open the site, for example from the Website tab (see Publish your app’s website), and open a page or two.
- Open the Project’s AirTraffic tab. See Measure app usage (AirTraffic).
- Look under Latest Events. Each new event has a row, with the page’s path under its name when the site sends it.
If the tab still shows the AirTraffic page with Ask Agents to Add, nothing has arrived yet. If Latest Events says “Nothing has arrived yet.” after you’ve opened the site, tell the Agent: it can read the events AirTraffic received with workers traffic events.
Read the numbers
Pick the time range at the top of the tab, as in Measure app usage (AirTraffic). For a website:
| Section | What it shows |
|---|---|
| People | Visitors, counted as Identity says. See Measure app usage (AirTraffic). |
| Views | Page views of the site, added to screen views of your app. |
| Sessions, Session Length | Sessions, and how long one lasts on average. |
| Top Pages & Screens | The site’s pages by path, with how many people opened each, next to your app’s screens. |
| Countries, Platforms | Where visitors are and which operating system they use. Each shows only when it has something to list. |
The tab shows the Project’s AirTraffic as one: the website’s visits and your app’s use are counted together in People, Sessions and Views. It has no switch to show the website alone. For the website’s numbers on their own, ask an Agent.
Ask an Agent for the website’s numbers
Ask in the Project’s chat, for example:
How many people visited the website in the last 30 days, and which pages did they open most? Leave the app out.The Agent reads AirTraffic with workers traffic. workers traffic web takes the start of the range with --from, such as -7d, and every read also takes --to and a time zone: see workers. It replies with the numbers, and may draw them as a chart card: see Read a chart or a check report an Agent sends.
You can ask more, for example:
- “Compare this month’s visits with last month’s.”
- “Which countries did the website’s visitors come from last month?”
- “Post last week’s website visits here every Monday.” See Ask your Agents how people use your app.