I want to make a custom visitor tracking tool and like Google Analytics it must be able to track how long time visitors spend on each page.
How do you recommend doing this?
Any ideas? I'm using PHP server side and looking for a most cross browser compatible solution.
I am aware that precise measurement of this is not possible.