> For the complete documentation index, see [llms.txt](https://catchdocs.gitbook.io/catch-customer-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://catchdocs.gitbook.io/catch-customer-documentation/flow/technical-workflow/dwell-time.md).

# Dwell Time

Flow is designed to analyse and report MAC address traffic within short scanning windows, which are typically only a few seconds long.

Advertisers, and billboard owners in particular are interested in how long an average person spends in range of the advertising face. This is referred to as **dwell time** within the advertising industry, and can give insight into how many ads a single person may have the opportunity to see, as well as how much time the viewer has to process the message in the advertising content.

By default, a flow measurement window cannot identify if a particular device was in range for, say, 3 minutes, as this period transcends multiple measurement windows.

The device hosting flow (typically the media player PC) maintains a timeline of any MAC addresses seen in both the current and previous window on a list of persisting devices, updating the duration of the visit with the new data received in every window. When averaged across multiple MAC addresses, this enables the host to generate aggregated dwell time insights, which are reported hourly, in 4 percentile break points, separately for both BLE and WiFi.

| Mode | 1st Percentile | 25th Percentile | 50th Percentile | 75th Percentile | 99th Percentile |
| ---- | -------------- | --------------- | --------------- | --------------- | --------------- |
| BLE  | 2 seconds      | 6 seconds       | 25 seconds      | 32 seconds      | 185 seconds     |
| WiFi | 3 seconds      | 9 seconds       | 22 seconds      | 36 seconds      | 192 seconds     |

{% hint style="success" %}
It is important to note, for privacy reasons, that the raw data used by the host to generate these insights is not accessible, stored, saved, or transported, and is held in volatile memory to maintain an hourly rolling average of times only. The MAC address is removed from analysis as soon as it has not been observed for more than 15 seconds.
{% endhint %}

## Effects of MAC address randomisation on dwell insights

Mobile operating systems (e.g iOS and Android) use MAC address randomisation to protect users' privacy, and prevent devices being tracked over large time periods or multiple locations.

For security reasons, the exact behaviour of this randomisation is not documented, but MAC addresses of this type are identifiable and categorised separately as `random` in the flow system, allowing flow to handle MAC addresses of this type differently.

It is understood from [various studies](https://www.google.com/url?sa=t\&rct=j\&q=\&esrc=s\&source=web\&cd=\&ved=2ahUKEwjoz6mi47r9AhWKh_0HHeJND0oQFnoECA4QAw\&url=https%3A%2F%2Fhal.inria.fr%2Fhal-03045555%2Fdocument\&usg=AOvVaw0vzoBsEVk4QGo5TZg7sG6p) that this interval is not more than 15 minutes in the case of `BLE` devices, and almost always less than 30 minutes for `WiFi`

Because of this behaviour, there is is a time limit of measuring Dwell for devices of this type. MAC addresses of the type `public`are not affected by this behaviour, but have these have a weak correlation with OTS impression detections.

The Dwell insights should therefore not be relied upon insight for environments with inherently extended visit durations, such as food courts, malls, cinemas — but can be effective and useful for transient environments such as sidewalks, roadside, and mall walkways.
