added google analytics and timeout