Made analytics only available in production mode.