Google analytics function added