Fix hiding Google Analytics code in dev

Needed to use if instead of unless here