Fix debug check, no google analytics in debug mode