added google analytics and fixed timer