# Run a referral or affiliate program

> Give partners their own link, track every sale they send you and pay commission automatically.


## How it works

Each affiliate gets a **unique link**. When someone clicks it and buys within the cookie window, the sale is credited to that affiliate and their **commission** is calculated for you. Affiliates log in to their own **portal** to see clicks, leads, sales and payouts.

## Create a campaign

1. Go to **Marketing → Affiliate Manager → Campaigns** and click **Add campaign**.
2. Name it, e.g. *Client referral program*.
3. Choose the **products** it applies to.
4. Set the **commission**: a percentage or fixed amount, one-time or recurring for subscriptions.
5. Set the **cookie length** (how long after a click a sale still counts, e.g. 60 days).
6. Click **Save**.

## Add affiliates

- **Invite** them under **Affiliates → Add affiliate**, or
- Share a **signup form** so people can apply — new signups can be approved automatically or by you.

Each affiliate gets an email with their portal login and their link.

## Pay commissions

Under **Payouts**, see what you owe each affiliate. Mark payouts as paid manually, or connect **PayPal payouts** to pay everyone in a couple of clicks.

> [!TIP]
> For a simple "give $25, get $25" client referral program, combine an affiliate campaign with a [coupon](/articles/coupons-and-gift-cards/) for the new client.
