timer - how to get length of time of visitor in asp.net -


i using asp.net 2.0. have 5 web pages in project. want calculate length of time visitor view page.

outline tracking system:

  1. server-side: when visitor requests page, generate unique id , include in page. save unique id user, page, , other information wish track.
  2. client-side using javascript: when window.onunload fires, send ajax call server user has finished page identified unique id. looking id saved in step 1, update length of time visited.

alternatively, use google analytics, stellar job of tracking visitors.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -