> For the complete documentation index, see [llms.txt](https://docs.goaffpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goaffpro.com/affiliate-portal-customization/toolbars/setup-shopping-cart-referred-by-widget/affiliates-referral-code.md).

# Affiliate's Referral Code

An affiliate's referral link is different from an affiliate's referral code. A referral link directs the customer to the merchant's store and the customer's visit is then tracked.&#x20;

In the case of a referral code, it is the unique code present at the end of an affiliate's referral link. It has to be copy-pasted into the referral code input field at the shopping cart page on the store.

#### For Example:&#x20;

Here we look at the referral link of an affiliate.

![Affiliate Profile](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-M0yONk75tPZ_DnfSx5F%2F-M0yYN8jj5Gpp_nvVjDU%2FAnnotation%202020-02-26%20042049.png?alt=media\&token=dbb488e8-0291-4589-a314-e822a1187fad)

In the Referral Link, the referral code can be found at the end (after the "=" symbol).&#x20;

![](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-M0yONk75tPZ_DnfSx5F%2F-M0yZE8BOhau3efojMxk%2FAnnotation%202020-02-26%20042502.png?alt=media\&token=a9f9cf76-da1d-4ecc-aa84-d9b47d1ac86a)

Here the referral link is: \*\*<https://goaffpro.myshopify.com/?ref=R8mfScYiL**&#x20>;

The referral code in the link is: **R8mfScYiL**
