Added google analytics functionality