Add google analytics function.