How to measure visiting time of a user

隐身守侯 提交于 2019-11-29 02:00:20

The approach used by such tools as Google Analytics is that visit time is measured as the time the user hit the first page to the time they hit the last page within a single "visit". A single visit is defined as a series of page views by one user (cookie) where each visit is sufficiently close to the previous in time. I don't know what that limit is however.

In my experience, these kinds of tricks with unload events and so forth are bordering on being intrusive and users don't appreciate them. As such they add little to no value over a more passive approach like constructing a visit from cookies plus page view data.

I suggest almost any web analytic package depending on some of your business goals.

  1. Google Analytics: (free)
  2. Yahoo Analytics: (free)(beta)
  3. Woopra: (free)(beta)
  4. Omniture: ( expensive )(most feature rich, difficult learning curve )

[ there are others, some more tailored to Ad Network Reporting...]

Why not take a look at Google Analytics the standard tracking will capture these stats for you.

http://www.google.com/analytics/

It depends on how much error you would allow. If the error is in the order of tens of minutes, you only need a visit log, and set the session timeout interval for the last page. If you allow only hundreds of milliseconds, you will need to ping. If the error is anywhere in between, you still need to ping, albeit at a lower rate; or accept the fact that for a user who shut down the browser will not fire the onunload event.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!