Add affiliate ID support to referral export