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
Here the difference between visits to Page A and the next are obtained and divided by 3 to get the average. Notice Page A is visited twice in a session by one visitor.

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
Here the difference between visits to Page A and the next are obtained and divided by 2 to get the average. The second visit to Page A by Visitor 2 is not counted because there is no subsequent pageview.

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
Here the difference between visits to Page A and the next are obtained only for one visitor and not counted at all for the second visitor.