Updated analytics code to now user setTimout instead of the  setInterval.