Skip to content
GPLWP Guides

How to create an affiliate program on WordPress

Marketing & Email Time About 45 minutes for a basic plugin setup; allow longer for policy and payout testing 7 steps Updated 1 Sep 2026

The short answer

You can run a very small affiliate programme with unique coupon codes, order records and a spreadsheet, but proper referral links, cookie tracking, commission rules and payouts need a plugin or custom development. For most WordPress shops, a plugin is the practical route.

The route
  1. 01Define the programme rules
  2. 02Run the manual route first
  3. 03Install and configure tracking
  4. 04Set commissions and approvals
  5. 05Create the affiliate journey
  6. 06Test a complete purchase
  7. 07Use the fast way

What you need

  • A WordPress site with a working checkout, preferably WooCommerce
  • Administrator access to WordPress
  • A written commission and payout policy
  • A payment method for affiliate payouts
  • A privacy and affiliate disclosure process

Define the programme rules

Decide who can join, what products qualify, how much commission is paid, when a commission becomes payable, the cookie window, the minimum payout and how refunds or cancellations are handled.

State whether you use last-click attribution, coupon codes, recurring commissions or lifetime customer referrals. Keep the first version simple. A clear policy prevents disputes when an order is refunded after a commission has already been approved.

Run the manual route first

For a handful of affiliates, create one unique coupon code per partner and record each code, affiliate name, commission rate and payment details in a restricted spreadsheet. Ask partners to share their code and check the code used on each completed order before calculating commission.

This route is cheap and workable for a small programme, but it does not give you reliable click tracking, referral cookies, affiliate dashboards or automatic attribution. It also creates a Friday problem: orders from referral links without a coupon may be impossible to credit fairly. Move to a plugin or custom integration before volume makes manual reconciliation risky.

Install and configure tracking

Install an affiliate plugin from Plugins > Add New or upload its ZIP file, then activate it. Use its setup screen to enable the programme, choose how affiliates register and set the referral link format and cookie duration.

Proper tracking normally reads an affiliate identifier from the referral URL, stores it in the visitor’s browser and connects it to the order at checkout. JavaScript, caching, script blockers or systems that strip query strings can stop a visit being recorded, so do not promise that every click will count.

Set commissions and approvals

Create a default percentage or fixed commission, then add exceptions only where necessary for products, categories, affiliates or promotions. Exclude items such as shipping, tax, refunded orders or internal test purchases if your plugin provides those controls.

Choose whether commissions remain pending until an order reaches Processing or Completed, or approve them manually after your return period. Approval can credit an affiliate balance immediately, while a later refund may not reverse an already-approved amount automatically.

Create the affiliate journey

Give affiliates a registration or application page, explain your terms, approve their accounts and provide their referral links, coupon codes, banners and email copy. Make sure your site sends registration, approval, referral and payout notifications correctly.

Add an affiliate disclosure requirement to your terms. In the United States, the FTC says an affiliate relationship should be disclosed clearly with the endorsement, rather than hidden among unrelated links or hashtags.

Test a complete purchase

Create a test affiliate, open its referral link in a private browser window, place a small test order and confirm that the visit, order and pending commission appear in the reports. Test a coupon referral too if you support coupons.

Then test an order that is cancelled or refunded, an affiliate payout request and the email notifications. Check the site with caching and consent tools active. If clicks appear but sales do not, first inspect the referral URL, browser cookie, checkout integration, order status and any script or cache setting that removes tracking data.

Use the fast way

If you need referral links, multi-level commissions, affiliate reporting and payouts without building the tracking and order integration yourself, use a dedicated WordPress affiliate plugin. Ultimate Affiliate Pro fits businesses that want multi-level commissions, referral tracking, custom rates, promotional tools, email notifications and payout integrations in one programme manager.

After activation, configure one simple commission rule, approve a test affiliate, run the complete purchase test and publish your terms before inviting partners. You still need to decide the rules and review refunds; the plugin removes most of the repetitive tracking and commission administration rather than replacing those decisions.

The fast route

Let Ultimate Affiliate Pro do it

Multi-level commissions, referral tracking, and affiliate payouts for businesses that want an all-in-one program manager.

Get Ultimate Affiliate Pro

Sources

  1. woocommerce.com /document/affiliate-and-referral/affiliate-and-referral-gett…
  2. woocommerce.com /document/affiliate-and-referral/how-to-manage-and-approve-r…
  3. ftc.gov /system/files/documents/plain-language/pdf-0205-endorsement-…
  4. woocommerce.com /document/affiliate-and-referral/referral-tracking-and-attri…
  5. woocommerce.com /document/affiliate-and-referral/how-to-pay-affiliates/?utm_…

Questions

Can I create a WordPress affiliate programme without a plugin?
Yes, but only a small programme is practical without a plugin. You can issue unique coupon codes, compare completed orders with a spreadsheet and pay affiliates manually. Referral links, cookies, attribution, affiliate dashboards, commission states and reliable payout records require custom development or a dedicated plugin, so manual tracking becomes difficult as partner and order numbers grow.
Does WordPress track affiliate referrals by itself?
No, WordPress does not provide a complete affiliate tracking system by default. A proper setup needs a way to identify the affiliate in a link or coupon, store attribution in the visitor’s browser, connect it to an order and calculate the commission. In WooCommerce, affiliate tools commonly use referral cookies and order-status rules to do this.
When should an affiliate commission be approved?
Approve a commission after the order is paid and your refund or cancellation period has passed. Many systems can approve automatically when an order reaches Processing or Completed, but an already-approved commission may remain in the affiliate’s balance after a later refund. Set your policy clearly and review refunds before sending payouts.
Why are affiliate sales not being tracked?
Affiliate sales commonly fail when the referral parameter is removed, the tracking cookie is blocked, caching serves the wrong page, JavaScript does not run, the customer changes device or the checkout is not integrated with the tracking system. Test the link in a private window, inspect the cookie, place a real test order and check the order’s referral record before inviting affiliates.
How do I pay WordPress affiliates?
Pay affiliates after commissions are approved and any minimum payout threshold is met. You can send money through a supported payment integration or make a bank transfer, then mark the payout in your records. A payout tool may record the payment without transferring money itself, so confirm what your installed plugin actually sends and keep payment records for accounting.