Skip to content
GPLWP Guides

How to create and manage an affiliate program on WordPress

Marketing & Email Time About 45 minutes for the initial setup 6 steps Updated 18 Nov 2026

MARKETING & EMAIL
The short answer

You can run a small affiliate programme manually with unique coupons and a spreadsheet, but proper link tracking, commission records, refunds and payouts need a plugin or custom development. For most WordPress shops, configure the rules, test tracking, then manage everything from an affiliate dashboard.

The route
  1. 01Define the programme rules
  2. 02Choose manual or automated tracking
  3. 03Set up registration and commissions
  4. 04Test the complete customer journey
  5. 05Approve, monitor and pay affiliates
  6. 06Use the fast route with AffiliateWP

What you need

  • A WordPress website with a product or service to promote
  • Admin access to WordPress
  • A defined commission rate and cookie period
  • A payment method and process for affiliate payouts

Define the programme rules

Decide who can join, which products qualify, the commission type, the commission rate, the referral window, and when a commission becomes payable. State how you handle refunds, chargebacks, cancelled orders, self-referrals, coupon websites and existing customers.

Write these rules before inviting affiliates. Also decide whether you will approve applications manually and whether affiliates must disclose their relationship with your business when promoting your products.

Choose manual or automated tracking

For a very small programme, create one unique coupon code per affiliate and record the code, order value, commission and payout status in a spreadsheet. This avoids installing a plugin, but it will not reliably attribute ordinary links, repeat visits or sales made after a customer changes device. You must also check refunds and calculate payouts yourself.

Proper referral links normally store an affiliate identifier in the visitor's browser, then attach that referral to a qualifying order. The tracking window and attribution rules need to be clear because a later affiliate click, coupon or direct visit can affect who receives credit.

Set up registration and commissions

Install and configure an affiliate management plugin if you need referral links, affiliate applications, dashboards, reporting or payout records. Create an affiliate registration page, choose whether applications require approval, enter the default commission and set the referral cookie duration.

Connect the programme to your shop checkout and set any product or category exceptions. Set a minimum payout amount if appropriate, and decide whether commissions remain pending until the order is paid and the refund period has passed. Affiliate systems commonly support approval, reporting and manual or gateway-based payouts from the WordPress admin area.

Test the complete customer journey

Create a test affiliate account and copy its referral link. Open the link in a private browser window, browse to a product, place a small test order and check that the visit, order and commission appear in the correct records. Test a coupon if you support coupon attribution.

Check the journey after enabling caching, a cookie-consent banner, security settings or a new payment gateway. Script blockers, cache settings that remove query parameters and broken checkout integrations can stop visits or sales being recorded, even when the affiliate link looks correct.

Approve, monitor and pay affiliates

Review applications before approval, check affiliate traffic and referred orders, and investigate unusual activity such as repeated self-referrals, very high conversion rates or orders that are quickly refunded. Keep a record of rejected applications and disputed commissions.

When the order is eligible, approve the commission and pay it using your chosen method. Do not mark commissions as payable immediately if your shop has a meaningful refund or chargeback period. Reconcile the affiliate report against WooCommerce orders and your payment records each payout cycle.

Use the fast route with AffiliateWP

If you want to run the programme inside WordPress without building the tracking and payout system yourself, AffiliateWP is the practical shortcut. It is designed to track referrals, commissions and affiliates, with tools for affiliate registration, reporting and payouts.

Install it from your WordPress admin, activate it, connect it to your shop, set the commission and referral rules, create the affiliate area, and complete one private-browser test before inviting partners. This is usually faster and less error-prone than maintaining links, cookies, order records and payout calculations by hand.

The fast route

Let AffiliateWP do it

Tracks referrals, commissions, affiliates, and payouts in WordPress; a focused choice for running your own affiliate program.

Get AffiliateWP

Sources

  1. woocommerce.com /document/affiliate-and-referral/referral-tracking-and-attri…
  2. woocommerce.com /document/affiliate-program-for-woocommerce/?utm_source=open…
  3. woocommerce.com /document/affiliate-and-referral/affiliate-and-referral-gett…

Questions

Can I run an affiliate programme on WordPress without a plugin?
Yes, but only a basic programme is practical without a plugin. You can issue unique coupon codes, compare them with orders and calculate commissions in a spreadsheet. Link-based attribution, referral cookies, affiliate dashboards, refund handling and payout records require custom development or an affiliate plugin, so the manual route becomes difficult as soon as several affiliates or regular orders are involved.
How does affiliate tracking work on a WordPress website?
Affiliate tracking usually adds an affiliate identifier to a referral URL, records the visit and stores attribution information in the visitor's browser. If the visitor later places a qualifying order within the referral period, the system connects the order to the affiliate and calculates the commission. Browser privacy settings, consent tools, caching and blocked scripts can prevent tracking.
When should an affiliate commission be paid?
Pay an affiliate commission after the order is paid and your refund or chargeback period has passed. Keep the commission pending until then, because paying immediately can leave you owing money on a cancelled order. Publish the timing in your affiliate terms, then review approved commissions against refunds and payment records before each payout.
How do I stop affiliates from earning commission on their own orders?
Prevent self-referrals by stating the rule clearly and enabling the relevant restriction in your affiliate system if it provides one. Also review the customer's account, billing details, email address, coupon usage and order history when an order looks suspicious. If you use manual coupon tracking, add a self-referral check to the spreadsheet review rather than relying on the code alone.