extracts referral link into helper