Use document.referrer to populate domain field.