|
Posted by Gustavo Narea on 10/10/35 11:33
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.
Navigation:
[Reply to this message]
|