Enhance session duration and bounce rate tracking.

Added an index to tick methods. Added a ping event sent every 10
seconds to enhance session duration and bounce rate tracking.