Setting the referral URL variable

The referral URL variable is the parameter that gets added to URLs on your site to identify them as referral URLs of a specific affiliate.

You can set the referral variable to anything you wish, though AffiliateWP will default to using ref.

A URL that contains a referral var will look typically look like this:

https://yoursite.com/?ref=422

422 is the ID of the affiliate the URL belongs to. In addition, your affiliates can use any of the following affiliate URLs.

The referral variable can be set in AffiliateWP » Settings » Affiliates: