How to track time spent on site <p>In my rails application, I want to track the total time spent on site by individual user. I did research on it but can not get perfect solution.<br> How is it possible.</p>