set domain id for visit