Time on site
Time on site is how long visitors spend on a website per session, usually reported as an average across sessions (average session duration).
In plain words
Time on site shows whether visitors stay long enough to look at products, read and buy. Tools measure it differently. Older analytics timed the gap between the first and the last page view of a session, so a visit with one page counted as zero seconds. Google Analytics 4 measures engagement time: only the time the page was in focus in the browser, so a tab left open in the background does not count. Longer is not always better: a shop that makes buying quick can have short, profitable sessions, while long sessions can mean visitors cannot find what they want.
Formula
- Session duration
- time from the start of a session to its last activity (in GA4 engagement time counts only time with the page in focus)
- Number of sessions
- sessions in the period; a session ends after 30 minutes without activity by default
Worked example
ROASaurus Demo Store (fictional), sessions on one Tuesday:
| Sessions | 1,000 |
|---|---|
| Total duration of all sessions | 2,400 minutes |
| Average session duration | 2 minutes 24 seconds |
| Sessions that bought | 25, averaging 7 minutes |
| Sessions that did not buy | 975, averaging about 2 minutes 17 seconds |
Time on site vs time on page vs bounce rate
| Metric | Measures | Watch out for |
|---|---|---|
| Time on site (session duration) | How long a whole session lasts | Averages pulled up by a few very long sessions |
| Time on page | How long visitors spend on one page | Older tools could not time the last page of a session |
| Engagement time (GA4) | Time the page was in focus or the app in the foreground | Not the same as session duration |
| Bounce rate | Share of sessions without engagement | A yes or no per session, not a duration |
Swipe the table sideways to see every column.
The three are related: pages that keep visitors longer tend to have a lower bounce rate and more pages per session. But they answer different questions, and a change in one can come from tracking rather than behaviour.
How to measure time on site in GA4
GA4 has several duration metrics (GA4 dimensions and metrics):
- Average engagement time: total user engagement duration ÷ active users. It is per user, not per session.
- Average engagement time per session: the same engagement time per session.
- Average session duration: the average length of sessions in seconds, available in explorations and the Data API.
User engagement is the time a web page is in focus or an app screen in the foreground (GA4 user engagement). Because it ignores background tabs, it is usually shorter than a session duration measured from first to last hit. In the Pages and screens report, engagement time per page shows which pages hold attention.
What is an average time on site?
There is no meaningful average across sites: it depends on the tool's definition, the type of store, the device and the source of the traffic. A store selling one product with a quick checkout and a store with a large catalogue and long guides will differ for good reasons. Compare your own pages, sources and devices with each other and over time, measured with the same tool.
How to analyse time on site
- Split sessions into converted and not converted; the difference shows how long buying takes.
- Compare sources: paid social traffic often has shorter sessions than search or email.
- Compare devices: very short mobile sessions can point to slow pages or layout problems.
- Look per landing page: a page with short sessions and high bounce is the first to fix.
- Look at the distribution, not only the average: many near-zero sessions mean visitors leave at once.
- Check after site changes and tag changes, which can move the number without any change in behaviour.
How to improve time on site
- Make pages load fast, so visitors do not leave before the page appears.
- Match landing pages to the ad or search result that brought the visitor.
- Add what helps people decide: size guides, reviews, photos in use, comparison tables.
- Link onward: related products, collections, the next step in a guide.
- Use video where it shows the product better than photos.
- Make navigation and search work well, so finding a product does not end the visit.
- Judge the result by conversion and revenue per session, not by seconds alone.
In ROASaurus
Website › Visitors- Open Website › Visitors and pick the period: the average session duration tile is the time from the first to the last event of each session, averaged over sessions; a session ends after 30 minutes without activity.
- Read it next to pages per session, bounce rate, add-to-cart rate, conversion rate and revenue per session.
- With Microsoft Clarity connected, the Behaviour section adds engagement time, scroll depth, rage clicks and dead clicks per landing page and campaign, as Clarity reports them.
- Open Website › Funnel to see where visitors from each campaign stop: adds to cart, checkouts and purchases.

Start freeOpen the live demo14-day trial of every feature, no credit card.
Read more
- GA4 ecommerce reports
- Shopify analytics
- Ecommerce metrics
- Shopify conversion rate optimisation
- Tariffs and ecommerce
- BFCM tracking checklist
- Christmas marketing
- Christmas products
Sources
- Google Analytics Help: [GA4] Dimensions and metrics
- Google Analytics Help: user engagement in GA4
- Google Analytics Help: [GA4] Session
Related terms
- Bounce rate
Bounce rate is the share of sessions in which a visitor left without engaging. In GA4 it is the share of sessions that were not engaged sessions: 1 minus the engagement rate.
- Pages per session
Pages per session is the average number of pages a visitor views in one visit: page views divided by sessions. GA4 calls it views per session.
- Google tag (gtag.js)
The Google tag (gtag.js) is one JavaScript tag that sends website data to Google products such as Google Ads and Google Analytics 4, which Google calls its destinations.
- First-party data
Data collected on your own domain, by you. Browsers and ad blockers treat it more kindly than scripts loaded from someone else's domain.
What is time on site?
Time on site is how long a visitor spends on a website in one session. Reports usually show it as an average over all sessions, called average session duration.
What is the time on site formula?
Add up the duration of all sessions in the period and divide by the number of sessions. For example, 2,400 minutes over 1,000 sessions is an average of 2 minutes 24 seconds.
What is the difference between time on site, time on page and bounce rate?
Time on site measures a whole session, time on page measures one page, and bounce rate is the share of sessions without engagement. They move together but answer different questions.
What is a good time on site?
One that goes with good conversion and revenue per session for your store. Compare your own pages and sources measured with the same tool; outside averages mix very different sites and definitions.
Does GA4 have time on site?
GA4 reports average engagement time (per active user), average engagement time per session and average session duration. Engagement time only counts time the page was in focus, so it is usually shorter.
Why is time on site important?
It shows whether visitors stay long enough to consider buying, and sudden drops can reveal slow pages, broken layouts or poor traffic. It is a diagnostic, not a goal in itself.
What does "full time on site" mean?
It usually refers to the full length of a session from the first to the last activity, as opposed to engagement time, which leaves out time spent in a background tab.
Every sale, traced to the ad that earned it
Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.