how to setup an affiliate program

How to Set Up an Affiliate Program Without Building a Money Leak

TL;DR: Here’s how to set up an affiliate program the right way: make the decisions that protect your margin before a single affiliate joins. Pick your network and your commission rate, then write the rules most brands skip. Decide which line items pay commission (exclude shipping, shipping protection, gift wrap, and taxes). Decide what affiliates can and can’t do (no bidding on your brand name, no unauthorized coupon codes). Set your commission validation window to match your returns period plus about a week, so refunded orders get declined before they auto-approve and pay out. Then put a monthly reconciliation in place from day one. The rules you don’t write are the ones you’ll pay for later.

Most affiliate programs don’t break loudly. They leak quietly.

You flip the program on, a few partners send traffic, sales show up in the dashboard, and commissions go out on schedule. Nothing looks wrong. The total roughly tracks your affiliate revenue, so you stop looking.

Then a year later someone actually checks, and finds you’ve been paying commission on refunded orders, on shipping charges, on gift wrap, and to an affiliate who was just bidding on your own brand name in Google. None of it was fraud. It was the setup.

That’s the real question behind how to set up an affiliate program: not “how do I turn it on,” but “which rules do I write before anyone can exploit the ones I didn’t.”

Affiliate is a real channel worth doing well. US brands spent more than $12 billion on affiliate marketing in 2025, per eMarketer. Done right, it’s one of the few channels where you only pay after a sale happens. Done lazily, it’s a subscription to paying for sales you didn’t cause and revenue you already refunded.

Why do most affiliate programs leak money from day one?

Because the defaults are written for the network and the affiliate, not for you.

An affiliate program is a set of rules about who gets paid, for what, and when. Launch without setting those rules on purpose and you inherit whatever the platform ships with, which is built to make partners happy and payouts smooth, not to protect your margin.

Three gaps show up in almost every program that was switched on instead of set up:

  • It pays on the wrong number. Commission is calculated on the full order total, including shipping, add-ons, and sometimes tax, not just the product revenue you meant to reward.
  • It pays on sales that don’t stick. Refunds arrive after the sale is tracked, and if nobody declines them in time, the commission auto-approves and pays out anyway.
  • It has no terms with teeth. Affiliates can bid on your brand name, stack coupon codes, or claim credit for sales other channels drove, because nothing in writing says they can’t.

Here’s the reframe: defaults are decisions. When you don’t set a rule, you let the platform make it for you, in the affiliate’s favor. Fixing that later means auditing a mess. Setting it up right means writing a few rules once.

What do you need to decide before you launch an affiliate program?

Five things, and all of them are cheaper to decide now than to unwind later.

  1. Your network. Where the program lives (AWIN, CJ, Impact, or a Shopify-native app). This sets your reporting, your validation controls, and your fees.
  2. Your commission structure. The rate, and just as important, what it’s paid on. A 10% rate on product revenue is a very different bill than 10% on the full order total with shipping and add-ons baked in.
  3. Your program terms. The rules affiliates agree to: brand bidding, coupon usage, allowed promotional methods, and what gets a commission declined.
  4. Your validation settings. How long you have to review a sale before it auto-approves, and how refunds get handled inside that window.
  5. Your reconciliation habit. Who checks commissions against real orders, and how often. Even a great setup drifts without this.

If you want a partner to stand these up with you, 7 Rock Marketing helps brands set up and manage affiliate programs so the rules are right before the first affiliate signs on. That’s the low-friction version. The rest of this piece is the do-it-yourself version.

How do you set up an affiliate program the right way?

Here’s how to set up an affiliate program so the leaks never start. Work through these in order.

1. Pick the network that fits your stack

Match the tool to how you actually sell. If you’re on Shopify and want simple, a native affiliate app keeps tracking close to your order data. If you want reach into established publisher and coupon partners, a network like AWIN or CJ gives you scale and a validation system, at the cost of more settings to get right.

There’s no universally “best” network. There’s the one whose defaults you understand and can override.

2. Set your commission on product revenue, not the full order

This is where the quiet money goes. Decide up front that commission pays on commissionable line items, meaning the product revenue you want to reward, and nothing else.

Exclude shipping, shipping protection, gift wrap, and tax. A customer didn’t buy from an affiliate because of your $6 gift wrap, so don’t pay 10% on it. On a single order it’s pennies. Across hundreds of orders a month, it’s a real line on your P&L.

Write down the exact list of what pays and what doesn’t. That list is the spine of your affiliate commission structure.

3. Write program terms before affiliates join

Your program terms are the contract every affiliate agrees to. They only work if they exist before anyone signs up, because you can’t enforce a rule you added after someone broke it.

At minimum, spell out:

  • No brand bidding. Affiliates can’t run paid search ads on your brand name or close variants. Otherwise you pay commission to someone who “converted” a customer already typing your name into Google. That’s your traffic, bought back at a markup.
  • Coupon and voucher rules. Which codes affiliates can use, and a ban on leaking unauthorized discount codes that erode margin.
  • Allowed promotional methods. No misleading claims, no unapproved trademark use, no spam.
  • Clear decline reasons. State plainly that refunded, canceled, fraudulent, or terms-violating orders will not be paid.

Awin’s own documentation makes this point directly: make sure your program terms clearly outline what partners can and cannot do, because “illegitimate PPC activity” and “unauthorized voucher code use” are only valid reasons to decline a commission if your terms named them first.

4. Set your validation window to survive your refunds

This is the setting that pays for itself. Every network has a validation period, the window where a tracked sale sits pending and you can approve or decline it. Miss the window, and it auto-approves.

That matters because refunds arrive late. An estimated 19.3% of online sales were returned in 2025, according to the National Retail Federation. Nearly 1 in 5 orders. The tracking pixel fires at checkout and never hears about the return.

So set your commission validation window to cover your actual returns period plus a buffer. Awin recommends setting it to your returns window plus about seven days, so a 30-day return policy means roughly a 37-day validation period. Long enough that a refund lands and gets declined before the commission ever auto-approves.

If your network syncs with your store (Shopify and WooCommerce both offer auto-validation plugins that decline canceled orders automatically), turn that on. It closes the gap without manual work.

5. Build the monthly reconciliation before you need it

Even a clean setup drifts. Prices change, add-ons get added, edge cases slip through. Once a month, pull your affiliate network’s transaction report and your store’s refund report for the same period, match them by order ID, and confirm you’re not paying on returns or on non-commissionable items.

This is the habit that keeps the setup honest. It takes an afternoon a month and it’s the cheapest insurance in your marketing budget.

What did we learn setting up affiliate programs the hard way?

We learned it by inheriting one that wasn’t set up at all.

We took over paid media and affiliate management for a soccer apparel brand selling across the US. The program ran on AWIN, and the previous agency was giving it about 5 hours a month. On paper, fine. In reality, it had been paying commissions every month, for over a year, on canceled, refunded, and partially refunded orders. Thousands of dollars a month, going out for revenue that didn’t exist. Nobody had ever reconciled the commissions against real orders.

The setup gaps were textbook. AWIN’s Auto Validation excludes shipping by default, but it has no rules engine for add-ons like shipping protection or gift wrap, so those were being commissioned one transaction at a time, which means never, at hundreds of orders a month. The program terms didn’t stop affiliates from bidding on the brand name. And the validation window was just running out on its own, auto-approving refunded orders into the next payout.

We couldn’t claw back a year of paid commissions. Once a commission is approved and paid, it’s gone. So we did two things. We reset the program the way it should have been set up on day one: commission on product revenue only, real terms, a validation window that survives the returns. And because catching the refund leak by hand every month wasn’t realistic, we built PayAudit to reconcile affiliate commissions against actual Shopify orders automatically, before the network’s validation window closes.

That’s the origin of the whole tool. Not a clever idea in a vacuum. A bill we were tired of paying because nobody wrote the rules first.

The lesson is the aphorism we now open every affiliate setup with: the rules you don’t write, you can’t enforce.

How much should you pay affiliates, and on what?

Pay a rate you can sustain, on revenue you actually want to reward.

Most e-commerce programs land between 5% and 15% of product revenue, depending on margin and category. The rate matters less than the base. A 10% commission on product revenue is predictable. The same 10% on the full order total, shipping and add-ons included, is a slow bleed you won’t notice until you audit it. Set the rate to your margin, set the base to product revenue, and put both in your affiliate agreement.

What’s the difference between setting up a program and preventing a leak?

Nothing. They’re the same job.

Every “prevention” step in an affiliate audit is a setup decision someone skipped. Excluding shipping, writing brand-bidding terms, sizing the validation window: make those calls now and there’s no leak to detect later. That’s why knowing how to set up an affiliate program correctly beats any audit. An audit finds the money after it’s gone. The setup keeps it.

If you already have a program running, our companion guide on how to check whether you’re paying affiliate commission on refunded orders walks through the detection side.

What you should do now

If you’re launching a program, set it up in this order:

  1. Pick the network that matches your stack.
  2. Set commission on product revenue only. Exclude shipping, add-ons, and tax.
  3. Write your program terms before you invite a single affiliate. Ban brand bidding and unauthorized codes.
  4. Size your validation window to your returns period plus about a week, and turn on store auto-validation if your network supports it.
  5. Put a monthly reconciliation on the calendar.

Do those five things and you know how to set up an affiliate program you won’t have to clean up later.

If you’d rather have it done right the first time, talk to us about setting up or auditing your affiliate program. We’ll help you write the rules before they cost you anything. And if you want to see the refund leak for yourself, PayAudit reconciles your commissions against real orders so nothing auto-approves that shouldn’t.

FAQ

How do you set up an affiliate program for a small business?

Start on a network or app that fits your store, set your commission on product revenue only, write basic program terms (no brand bidding, no unauthorized coupons), and set your validation window to your returns period plus about a week. You don’t need scale to set it up right. You need the rules written before your first affiliate joins.

What commission rate should I offer affiliates?

Most e-commerce programs pay 5% to 15% of product revenue, based on your margin and category. The rate matters less than the base you pay it on. Commission on product revenue only, not the full order total with shipping and add-ons, is the single most important choice in your affiliate commission structure.

What are affiliate program terms and why do they matter?

Program terms are the rules every affiliate agrees to: what they can promote, how, and what gets a commission declined. They matter because you can only decline a commission for a reason your terms named first. No brand bidding, no unauthorized coupon codes, and clear decline reasons for refunds and fraud all have to be written before affiliates join.

What is a commission validation period?

It’s the window between when a sale is tracked and when the commission is finalized. During validation you can approve or decline each transaction. If you do nothing, most networks auto-approve it. Setting the window to cover your returns period is what stops refunded orders from paying out.

Should affiliates earn commission on shipping and taxes?

No. Commission should pay on product revenue, the value the affiliate actually helped sell. Excluding shipping, shipping protection, gift wrap, and tax is a standard setup choice that protects margin. Many networks exclude shipping by default but won’t handle add-ons automatically, so you have to set that rule yourself.

Can affiliates bid on my brand name in Google?

Only if your program terms allow it, and they usually shouldn’t. Letting affiliates bid on your brand name means paying commission on customers who were already searching for you. Ban it in your terms up front, since you can’t enforce a rule you never wrote.

How often should I review affiliate commissions?

Monthly. Pull your network’s transaction report and your store’s refund report for the same period, match by order ID, and confirm you’re not paying on returns or non-commissionable items. A monthly reconciliation is the habit that keeps a good setup from drifting.

Which affiliate network is best for e-commerce?

There’s no single best network. AWIN and CJ give reach and mature validation controls. Shopify-native apps keep tracking close to your order data and are simpler to run. The right choice is the one whose defaults you understand well enough to override.

About the Author
Mike Hakopyan is the founder of 7 Rock Marketing, a Shopify-focused digital marketing agency based in Glendale, California. As a Klaviyo Certified Partner, Mike and his team help established e-commerce brands (roughly $700K-$10M in revenue) grow through email and SMS marketing, SEO, conversion optimization, and Shopify development. After nearly two decades leading technology and infrastructure teams, he built 7 Rock Marketing to give brand owners marketing that’s honest, measurable, and fully theirs to own.