added if block so that google analytics is not called during localhost testing