updates google analytics code as per documentation