Tracking when users are active on site

You can do this through Google Analytics. Beats implementing a custom solution.

I’m working something similar but more advanced should you decide you want more info than just page. If you wouldn’t mind liking my thread here, I’m getting a group of people together to solve.