Referral links & coupons

The Affiliate Program tab: the program switch, how referral links look, how long they credit orders, and affiliate coupons.

FreeAffiliate Program
  • 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

Enable Affiliate Program
Default On

"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".

"How referral links look and how long a referral is credited."

Referral URL Parameter
Default ref

"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.

When Two Affiliates Referred the Same Visitor
Default Last Click

Last Click: the most recent referral link wins. First Click: the first affiliate keeps the referral until it expires.

Affiliate Coupons
Default On

"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."

Allow Self-Referrals
Default Off

"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

  1. Open a coupon

    Go to Marketing → Coupons and edit or add a coupon.

  2. Enter the referral code

    In General, type the affiliate’s referral code in the Affiliate field. "Leave empty for a normal coupon."

  3. 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.