Reply to Re: [PHP] page duration tracking

Your name:

Reply:


Posted by Michael Crute on 10/18/29 11:33

On 11/30/05, MikeL <Mailme1@57mgte.com> wrote:
> Is there a way to incorporate some type of time in a page to track the
> duration of time each individual visitor spent on a specific page with ..PHP?
>
> I know I can keep a counter with JavaScript, but I would like it to keep
> track in my stats file.
>
> I can track & log the arrival time, but would like to either track the page
> exit time, too. It would be great to convert it to minutes:seconds for time
> spent viewing the page.
>
> I only want to track how much time someone spends on my index.php page
> before they leave the page. I can track when they click to the next page in
> my site.
>
>
> Thanks for any help and suggestions!

Theoretically you should be able to use a javascript function in the
page unload to submit back to your server when somebody navigates away
from your page. Not sure if it would work 100% of the time but its
worth a try.

-Mike

--
________________________________
Michael E. Crute
Software Developer
SoftGroup Development Corporation

Linux takes junk and turns it into something useful.
Windows takes something useful and turns it into junk.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация