|
this is one solution I could see potentially being viable.
I guess I would use multiple cookies for this setup.
cookie set A
cookie[starttime] => start time of the current page
cookie[page] => page of the start time
cookie set B
cookie[endtime] => end time of the previous page
now when the page loads, you create the end time cookie (cookie set b). then you read the start time and the start time page cookie values(cookie set a), and you now have the time they spent on that page, and the page
then once you do this, you create the new cookie start time and cookie start page cookies(cookie set A) for the new page.
I'm pretty sure that will accomplish what you're looking for.
|