added google analytics and other fixes