Visit duration is a rough gauge of attention. It answers "how long do people stay?" but it comes with measurement quirks that are worth knowing before you set targets on it.
How visit duration is measured
Browsers do not announce when someone stops reading. Analytics tools therefore estimate a visit's length from the timestamps of the events they receive:
Visit duration = time of last recorded event − time of first recorded event
Average visit duration = sum of visit durations ÷ number of visitsWorked example (made-up numbers): three visits last 0 seconds, 2 minutes and 4 minutes. The average is (0 + 120 + 240) ÷ 3 = 120 seconds, or 2 minutes.
The catch: a visit with a single event has no second timestamp, so older tools gave it 0 seconds. Modern scripts send an extra event when a page is hidden or left, which gives one-page visits a real duration.
How Reveata measures it
Reveata's headline card is called Session time: the average time a visitor spent on the site per visit. Each session stores its duration in whole seconds, from its start to its last activity, and the card divides the total by the number of sessions.
- The script reports how long a page was visible when a visitor leaves it or switches tab (automatic events), so a one-page visit can still have a duration.
- A session ends after 30 minutes without activity (How Reveata counts). A goal sent by your server later joins the visit but does not stretch its duration unless it arrives within that window.
- In the API and CLI the metric is
avg_session_duration; on the Plausible-compatible API it answers asvisit_duration.
For one page rather than the whole visit, use time on page.
Common mistakes
- Treating longer as better. A support page where people take ten minutes to find an answer is not doing well.
- Comparing tools. Each tool decides differently how to time the last page and when a visit ends.
- Reading averages alone. A few very long visits pull the average up. Look at it by channel and page, and over time.