Move google analytics code to a helper