added google analytics functionality