added google analytics and modified code