swap out analytics for new code