Re: page duration tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Jesús Fernández wrote:
I think you could use cookies for this.
When the user loads the page you can write a cookie with the timestamp
and the page loaded writen on it. Then when the user request another
page, load if the cookie exists and then you can calculate the time
spent on a certain page...

If I click two links within 1 second from the home page, the result won't be what you were expecting, unless you also take into account the HTTP-REFERER, but... Is It a worthwhile task to be storing both timestamp and HTTP-REFERER for each loaded web page? I don't think so.

So, If I must track the duration of time each individual visitor spent on a specific web page, I'd use the javascript method that Mike mentioned.

Cheers.

--
Gustavo Narea.
PHP Documentation - Spanish Translation Team.
Valencia, Venezuela.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux