Referral links & coupons
The Affiliate Program tab: the program switch, how referral links look, how long they credit orders, and affiliate coupons.
- Affiliate Program card with Enable Affiliate Program
- Referral Links card: Referral URL Parameter (ref), Credit Referrals For (days) (30), When Two Affiliates Referred the Same Visitor (Last Click / First Click), Affiliate Coupons and Allow Self-Referrals
- Data & Privacy card with Delete All Data on Uninstall
- Program Status card: "Program active" and "Referral links end in ?ref=code and credit orders for 30 days."
Affiliate Program
"When off, referral visits are not tracked and no new commissions are created. Existing affiliates, commissions and payouts are kept." The My Account tab is hidden too and the Program Status card shows "Program paused".
Referral Links
"How referral links look and how long a referral is credited."
"The URL parameter that carries an affiliate’s referral code, for example yourstore.com/?ref=code." Lowercase letters, numbers, hyphens and underscores, up to 20 characters. Names WordPress or WooCommerce already use (such as p, s, page, add-to-cart) are refused and saving empty restores ref. Changing it breaks links affiliates have already shared.
1 to 365. "How long after a visitor follows a referral link an order is still credited to that affiliate."
Last Click: the most recent referral link wins. First Click: the first affiliate keeps the referral until it expires.
"Credit the affiliate linked to a coupon whenever an order uses it (link coupons to affiliates on the coupon screen). A coupon beats an earlier referral link."
"Credit affiliates for their own purchases (matched by account or billing email)."
Data & Privacy is covered on Privacy & data.
Linking a coupon to an affiliate
- Open a coupon
Go to Marketing → Coupons and edit or add a coupon.
- Enter the referral code
In General, type the affiliate’s referral code in the Affiliate field. "Leave empty for a normal coupon."
- Update
The field then says "Orders using this coupon are credited to" the affiliate. An unknown code shows "No affiliate has that referral code, so the coupon was not linked to one."
Affiliates see their linked coupons and usage in their dashboard, and the Affiliate coupons report lists orders per coupon.
Referral links are answered with no-cache headers and most caches skip URLs with query strings. If your cache stores pages with query strings, exclude the referral parameter so the cookie can be set.