• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 326
  • Last Modified:

How to track the amount of time someone is on a webpage

Is there some type of service or software that can track how long a visitor is on a page before clicking another page?
0
ZionTech1
Asked:
ZionTech1
  • 2
2 Solutions
 
jppintoCommented:
You can check Google Analytics...
0
 
jppintoCommented:
Or this tools:

http://www.webalizer.org/
http://awstats.sourceforge.net/
http://www.google.com/urchin/

I've worked with Google Analytics and AWStats are like them both.

jppinto
0
 
sparabCommented:
http://www.smartertools.com/smarterstats/web-analytics-seo-software.aspx

http://www.cqcounter.com/

For a list of these tools please take a look at the following site.(If you have ISA Server)
http://www.isaserver.org/software/ISA/Content-Security/

assuming you want to develop a code
You can also use this code.....grabbed it from one of the sites, not my code....It gives you the number of seconds a person has been on that page....should be helpful to you....


<HTML>
<HEAD><TITLE>JavaScript Timer</TITLE>
<SCRIPT>
<!--//hide from old browsers
var counter = 0;
// call Update function in 1 second afte
//     r first load
ID=window.setTimeout("Update();",1000);


    function Update() {
    counter ++;
    //Optional alert after 10 seconds
    //if (counter==10) (alert("Ten seconds i
    //     s long enough!!!!"))
    //Display time in status window
    window.status="Elapsed time = " + counter + " seconds";
    //Display time in text box
    document.form1.input1.value="You have looked at this page for " + counter + " seconds";
    // set another timeout for the next coun
    //     t
    ID=window.setTimeout("Update();",1000);
}

//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR=aqua>
<FONT FACE=ARIAL COLOR=navy><CENTER><H1>JavaScript Timer</H1></CENTER>
JavaScript can measure time.<P>
The text value below and the status line are being updated every second.<BR>
Press the RESET button to restart the count, or the STOP button to stop it.
<HR></FONT>
<CENTER>
<FORM NAME="form1">
<INPUT TYPE="text" NAME="input1" SIZE="40" Value="Welcome!"><BR>
<INPUT TYPE="button" VALUE="RESET" onClick="counter = 0;">*
<INPUT TYPE="button" VALUE="STOP" onClick="window.clearTimeout(ID);">
</CENTER>
<HR>
</BODY></HTML>
   

0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now