Affiliate link

Definition: A URL carrying a code that identifies the partner who sent a visitor, so a later sale can be credited to them.

Also called: referral link, tracking link, partner link

Last updated

An affiliate link is an ordinary web address with a code added to it. The code tells the business which partner sent the visitor, so if that visitor later becomes a paying customer, the partner can be credited and paid a commission. It is also called a referral link or tracking link.

Most affiliate links are the business's normal URL plus a query parameter, such as https://example.com/?ref=jane. Some programs use a redirect domain instead (go.example.com/jane), which records the click and forwards the visitor. Either way, the part that matters is the code: lose it, and the visit can't be tied back to you.

That is why copying the full link matters. Linking to the plain homepage, or a shortener that strips the query string, sends a visitor with no code attached.

What happens after the click

The click by itself earns nothing in most programs. A typical path is:

  1. The visitor clicks the link and the business's site stores the referral code, usually in a first-party cookie.
  2. The visitor signs up, and the business connects that account to the stored code.
  3. The customer pays, and the payment is matched to the referral. That is what creates the commission.

Whether step 3 still counts weeks later depends on the program's cookie duration. When two partners send the same person, the attribution model decides who gets credit. For the whole path from click to payout, see how SaaS affiliate programs work.

Some programs give partners two links. The customer link sends buyers to the product. A recruitment link invites other people to become partners, which matters in a two-tier affiliate program. Use the right one for the audience; a buyer who lands on a partner sign-up page rarely buys.

Each program you join has its own link with your code in it, shown as ?ref=code. You can change the code to a readable custom value; the old link stops being your active link when you do, so update anywhere you posted it. See sharing referral and recruitment links for the details.

If you post links publicly, disclose the relationship where the rules for your audience require it.

Common questions

Look at the address. Affiliate links usually carry a tracking parameter such as ?ref=, ?via= or ?aff=, or pass through a network's redirect domain before reaching the product. Many creators also disclose it next to the link with words like "affiliate link" or "I may earn a commission".

Usually not. The commission comes out of the business's revenue, so the buyer pays the normal price. Some programs pair the link with a discount for referred customers, in which case the buyer pays less.

The link usually keeps working for as long as the program runs and the affiliate stays approved. What expires is the credit for a single visit: the cookie duration decides how long after a click a purchase still counts. Anderro programs default to 30 days.

All affiliate marketing terms