I believe you may want to use this:
Marketing referral code from the link that the customer clicked to visit the store. Supports the following URL attributes: ref , source , or r.
(Deleted original reply to not have conflicting details. Originally copied content from the wrong tab over.
)