Track WooCommerce sales by brand rep without AffiliateWP
Published 4 min read
The basic affiliate need is simple: each brand rep gets a unique link, visitors who click it get a cookie, and when they buy something the rep gets credit. The complexity that justifies a full affiliate platform comes from everything after that: automated payouts, fraud detection, multi-tier commissions, payment gateway integrations for disbursements. Those features are real, and stores that use them should stay on a platform built for them. For a creator economy shop with half a dozen brand reps sharing links to their audience, most of those features are never configured.
WooCommerce has no built-in affiliate tracking. A purpose-built plugin covers the core loop: a unique URL per rep, a session cookie that survives a browsing session, order attribution at checkout, and a dashboard showing clicks, orders, and what each rep earned at month end.
Why a full affiliate platform is optional for five brand reps
Full affiliate plugins include recurring commissions, Stripe and PayPal payout flows, Zapier triggers, landing page assignment, and affiliate application and approval screens. Those features serve programs with dozens or hundreds of participants. Free-tier alternatives cover basic link tracking but ship the same surface area: coupon generation, creatives management, payout scheduling.
For five brand reps, the actual requirements are narrower: register each person, generate their link, track which orders came through it, and calculate a commission at month end. The payout itself stays manual, a bank transfer or PayPal payment the store owner initiates, because automated disbursements are where the complexity multiplies fastest. For a small rep program, one manual payment per rep per month is straightforward enough not to need a system built around it.
How a click on the rep's link becomes an order attribution
Each affiliate gets a URL slug. Any page on the site becomes a tracking link when that slug is appended as a query parameter: ?ref=sarah, ?ref=marcus. When a visitor lands on that URL, the plugin sets a first-party cookie containing the slug. The cookie lives 30 days. If the same visitor clicks a different rep's link before buying, the more recent click replaces the earlier one.
Attribution happens when an order moves to Completed status. The plugin reads the cookie, finds the slug, and writes it to order meta. Orders that arrive without a cookie, from direct navigation, search, email, or a different browser, receive no attribution. A second purchase within the cookie window would also be attributed to the same rep, since the cookie is not cleared after the first completed order.
The dashboard records earnings but does not transfer them
The admin screen under WooCommerce > Affiliates lists each registered rep with four figures: total link clicks, number of attributed completed orders, total attributed revenue, and calculated commission at a global rate set in plugin settings. The commission figure is a record of what is owed; the payment is a manual step the store owner initiates, typically at month end.
Refunded orders are not automatically subtracted from the totals. If a completed order is later refunded, the attributed revenue stays in the dashboard until the store owner adjusts it manually. For a low-volume rep program this usually surfaces during the monthly payout review. Stores with a meaningful refund rate or higher affiliate volumes would find manual correction impractical and would be better served by a platform that updates commission records automatically on refund.
What you get
Included
- Unique ?ref=slug referral links that work appended to any page on the site
- 30-day session cookie attributing orders to the rep whose link was clicked last
- Order attribution written to order meta when status moves to Completed
- Admin dashboard under WooCommerce > Affiliates showing clicks, orders, revenue, and commission per rep
Not included
- Automated payouts: the plugin records earnings but payment is a manual step
- Per-affiliate commission rates: one global rate applies to all reps
- Automatic commission adjustment when a completed order is refunded
- Coupon code generation for affiliates
- Multi-tier or hierarchical commissions
AffiliateWP does the things on the right. This build covers the part most sites use.
Build it in Steem
The button opens the builder with this guide's prompt filled in, so you can change anything before it runs. Nothing is built, and nothing is charged, until you send it.
Read the prompt (173 words)
Build a WooCommerce affiliate tracking plugin. Add an Affiliates page under the WooCommerce menu where the admin can register affiliates by name, email address, and URL slug. Each affiliate gets a unique referral link parameter: ?ref=their-slug appended to any URL on the site. When a visitor lands on a page with that parameter, store the slug in a first-party cookie that expires in 30 days. If the visitor later clicks a different affiliate's link, replace the cookie with the new slug. When an order moves to Completed status, check for the cookie and write the affiliate slug to order meta. If no cookie is present, leave the order unattributed. On the Affiliates admin page, show a table with one row per affiliate: total link clicks, number of attributed completed orders, total attributed revenue, and calculated commission at a global commission rate the admin sets in a settings field on the same page. Store the rate in wp_options. Add a column to the WooCommerce Orders list screen showing the referring affiliate for each order.
Steem