Fix JS errors if Google Analytics not configured