How to get referrer ID

Each affiliate can generate possible visits and purchases on your site every day.
The refer ID which allows associating the user to the affiliate can be recovered in two different ways:

  • through query string: the user reaches your site through a URL that includes a query string with the affiliate’s refer ID. This is a possible example: http://sitename.it/shop/?ref=13.
    The ref variable can be changed freely by the administrators of the site from the plugin settings panel with the “Referral var name” option.
  • through checkout form: a specific form is inserted in the checkout page. This form allows the user to insert the code of the affiliate who led him/her to the site.

How to get referrer id

Form to get refer id in checkout page