fix bugs with google analytics