You can never track how long a person spends on a page, but you can take pretty good guesses (using masses of code and javascript which I won't go into). The only thing you can do is log at what time each page was requested, and work out how long was spent on that page by calculating the difference in time between that page being requested, and the next one!