Average Time spent in site | Community
Skip to main content
New Participant
April 28, 2020
Solved

Average Time spent in site

  • April 28, 2020
  • 2 replies
  • 3896 views

Hi All,Hope you are doing good.

 

In my Knowledge, the total time spend on the site is calculating by taking the time between the first and the last hit (server call) sent to Analytics.My Question is when will be the last hit happen if  a visitor comes to my site , with out further interaction he closed his browser. in this case how the last hit happen ? and how this total time reflect for calculating the average time spent on site .

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by RobertBlakeley

As indicated by ForgotPassword4, the time spent on the last page/interaction is not counted. However, there is a way around this in some cases. 

 

The "last page" is typically the last one the user sees before leaving the site. So on domainA.com they click a link that goes to, say, domainZ.com. You can create a function to generate a custom link type call (pe=o) if the destination domain is different from yours. This provides an "exit" call that will allow the time spent calulation for the last (real) page.

 

In our case, we typically have an exit pop-up on our site that accomplishes the same thing.

2 replies

RobertBlakeley
RobertBlakeleyAccepted solution
New Participant
May 5, 2020

As indicated by ForgotPassword4, the time spent on the last page/interaction is not counted. However, there is a way around this in some cases. 

 

The "last page" is typically the last one the user sees before leaving the site. So on domainA.com they click a link that goes to, say, domainZ.com. You can create a function to generate a custom link type call (pe=o) if the destination domain is different from yours. This provides an "exit" call that will allow the time spent calulation for the last (real) page.

 

In our case, we typically have an exit pop-up on our site that accomplishes the same thing.

New Participant
May 5, 2020

A visit with a single hit will not have a recorded time.  This is similar to how anything that happens after the last hit, before the user departs the site, is not included in time calculations.