Time on Page
In order to calculate time on page, Google Analytics subtracts the difference between the timestamps for two pages. For example, if a visitor visits Page A at 10:00 a.m. and then Page B at 10:05 a.m., the time on page for Page A will be 5 minutes.
In order to get an average time on page for a specific page, the total time spent on a page for the selected date range is divided by the number of unique visits to that page. The value is shown in minutes.
When a page is the last page in a session, there is no way to calculate the time spent on it because there is no subsequent pageview. For this reason, when Page A is the last page in the visitor's session, its time calculation is not counted for that view. In addition, when that page is the only page viewed in the session, no time on page is calculated.
To illustrate this clearly, let's look at three possible visit scenarios for Page A:
1. Subsequent pageviews: Two visitors visit Page A in this fashion:
- Page B, Page A, Page C, Page A, Page B
- Page A, Page B, Page C
2. Last Page in the session: Two visitors visit Page A in this fashion:
- Page B, Page A, Page C
- Page A, Page B, Page C, Page A
3. Last and Only Page in the session: Two visitors visit Page A in this fashion:
- Page A, Page C, Page B
- Page C, Page B, Page A