Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6142031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:19:56+00:00 2026-05-23T18:19:56+00:00

i am developing an internal web analysis system like Google Analytics, i am not

  • 0

i am developing an internal web analysis system like Google Analytics, i am not very clear about the concept of page stay time, the typical explanation
of this measure from web is:

  1. user accessed page A at timestamp: t1
  2. user accessed page B at timestamp: t2, (t2 > t1)

then the page stay time for A is t2 – t1, for B is 0

My question is: In this scenario, when calculating page stay time for B, do we need to check whether user click page B from page A? i.e. B’s refer is A?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:19:57+00:00Added an answer on May 23, 2026 at 6:19 pm

    There are two techniques to measure Time on Page, and its aggregated counterpart Time on Site, distinguished by the markers used to record time-event pairs:

    • timestamp

    • ping-based

    Google Analytics, for instances uses the former, in particular, GA records a timestamp for each pageview, event, and transaction that occurs in the user’s session.

    So exactly as you indicated in your Question, Google Analytics calculates Time on Site by summing the timestamp deltas for that user’s entire session history. There is no timestamp for the last page in the user’s session, so the final time delta is not calculated.

    This introduces error into the Time on Site metric, but i still think it’s the best available choice of measurement technique. The technique is simple to explain and therefore simple to understand precisely where the occur occurs and from which direction it influences the reported metric. In other words, you know that Time on Site is always undercounted.

    Second, this error can be estimated (i.e., estimate the true Time on Site) because you have reliable Time on Page for every other page in the user’s visit. Even better, from your population of site visitors, you have data on the mean Time on Page for the particular page that the user visited last in their session.

    The other group of techniques for measuring Time on Page are ping-based. Here javascript in the page repeatedly calls, at a pre-determined time interval, a function that page ping the server. The javascript snippet on the page calls this pinging function as long as that page is open on the client browser.

    Perhaps the key advantage of these techniques is that they address the problem of not counting the time that the user spent on the page that they ended their session on. I suppose the primary disadvantage of ping-based techniques is a higher implementation cost. The accuracy of this technique depends of course on ping frequency–average measurement precision is roughly half the ping frequency. If your ping frequency is 10 seconds, you can resolve Time on Page to 5 seconds on average. But any server activity has an associated resource cost so this parameter, i.e., ping frequency needs to be optimized with care. That’s what i mean by “higher implementation cost”.

    A recent blog post by Brian Cray discusses such a solution and provides a javascript snippet for this purpose. In addition, Episodes is a javascript library for accurate measurement of javascript (rather than DOM) events. This might be of use to your analytics project.

    So which of these two techniques is better? I suspect a clever combination of the two would give you the highest resolution with the lowest page weight and server load. The only analytics app i am aware of that implements such a hybrid system is W3Counter. [Note: i have no affiliation or agreement of any kind, with this Project.]

    I have not used W3Counter, but based on this feature alone, i believe it’s worth consideration. (I do not however, like the name, “W3Counter” which causes me to think it’s a validation checker.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the trade of developing business web applications. They are mostly internal-use, sometimes
I'm developing an application that communicates with an internal web service using HTTP. Are
I am developing a small, internal-use only web application. Given its simple nature and
I'm developing a web service (in asp.net) and I would like to have each
I am developing a social web application in php/mysql, I would like to hear
I'm going to be developing a small web application for internal use at my
I am developing a proof-of-concept tool for an internal research project. We have specific
Here's the layout : I'm developing an internal ASP.NET Web App (in VB.NET) with
I've been developing an internal website for a portfolio management tool. There is a
I'm developing an application for an internal customer. One of the requirements is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.