> 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](/files/-M0yYN8jj5Gpp_nvVjDU)

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

![](/files/-M0yZE8BOhau3efojMxk)

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

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