Setup Guide · September 2026 · 6 min read
Shopify Affiliate Program Setup Guide (2026): Step-by-Step
The boring, detailed walkthrough for launching your first affiliate program on Shopify. Estimated time: 30–45 minutes start to finish. What you'll have at the end: working attribution, one approved affiliate, and a tested end-to-end conversion.
Most "how to set up a Shopify affiliate program" guides are marketing copy for a specific tool. This one isn't. It's the eight steps that actually need to happen — what to decide, what to install, how to test that it works — regardless of which platform you pick. We'll briefly mention software options in step 2, but the rest of the guide applies to any modern Shopify affiliate setup.
Before you start
- An active Shopify store (any plan).
- Admin access to your theme code (Online Store → Themes → Edit code).
- Admin access to Shopify Notifications (Settings → Notifications).
- One willing test affiliate. A friend or alt account works.
- 30 minutes of uninterrupted time. Don't half-set-this-up.
Step 1: Decide your program structure
Before you touch any software, decide four things. Write them down. You'll need them in step 2 to configure your platform, and changing them later breaks affiliate trust.
Commission rate
For physical-product ecommerce, the typical range is 10–20% of order subtotal. Apparel and beauty often run 15–25%. Subscription boxes can go higher (25–40%) because LTV makes the maths work. Digital products and SaaS often pay 30%+. Pick something you can afford on your worst-margin products. Resist the urge to go below 10% — affiliates won't promote you over competitors paying double.
Cookie / attribution duration
The window between a click and a purchase during which the affiliate still gets credit. 30 days is standard. 60–90 days is generous and attracts better affiliates. Shorter than 30 days starts to look stingy — most ecommerce buying cycles are at least a few days. Pick once and don't reduce it later.
Approval mode
Either anyone who applies gets in automatically (auto-approve), or you manually review each application. Auto-approve gets you signups faster and is fine for most small programs. Manual review matters once you start getting spam applications or coupon-abuse attempts — typically once you're doing $10k+/month in affiliate revenue. Start auto, switch to manual when fraud becomes a real problem.
Link or coupon attribution (or both)
Two ways an affiliate's sale gets attributed:
- Referral link — affiliate shares a URL like
yourstore.com?ref=SARAH. The tracking script catches the parameter, drops a first-party cookie, and that cookie carries the attribution to checkout. - Coupon code — affiliate shares a unique discount code (e.g.
SARAH10). When the shopper applies it at checkout, the platform matches the code to the affiliate.
For most Shopify stores, enable both. Links are better for blog/content affiliates. Coupons are better for influencers (who often paste their code on Instagram or in YouTube descriptions). One is half a program.
Step 2: Choose your affiliate software
A quick decision matrix, in rough order of when each makes sense:
| Option | Best for | Heads up |
|---|---|---|
| AffRef | Every stage — first affiliate program to scale | Flat rate, no transaction fees, your list stays yours |
| Shopify Collabs | Coupon-code basics inside Shopify Admin | Free, but Shopify-branded portal and marketplace data leak |
| GoAffPro / UpPromote | Cheap entry; older tracking stack | Free tier carries platform branding; premium pricing climbs |
| Refersion | Brands willing to trade exclusivity for marketplace traffic | $249/mo + 1.5% of every affiliate sale; your list becomes their network |
Pricing changes; check the relevant site before committing. For almost every brand running its own program — from the first affiliate to enterprise scale — flat-rate without a marketplace is the right default. We ran the math on why here.
Step 3: Install the tracking script
AffRef users: skip this whole section. Our official Shopify App installs the tracker and registers all required webhooks in one click — no theme.liquid editing, no manual webhook setup. The instructions below are kept for context on how affiliate tracking works on Shopify generally and apply if you're using a competitor that hasn't shipped a Shopify App yet.
Whichever platform you choose, the install on Shopify is almost identical: a single <script> tag in theme.liquid, pasted just before the closing </body>.
- In Shopify admin: Online Store → Themes → click "..." on your live theme → Edit code.
- Open
layout/theme.liquid. - Scroll to the bottom, find
</body>, paste your provider's tracking snippet just before it. - Save. Open your live store in a new tab and append
?ref=TESTto the URL. - Open browser DevTools → Application → Cookies. You should see a cookie containing your test code, scoped to your store's domain. If you don't, your script isn't loading — check for JS errors in the Console tab.
Verifying the cookie before moving on is non-negotiable. If the script isn't dropping a cookie, nothing downstream works.
Step 4: Set up the Shopify order webhook
This is how the affiliate platform learns about completed orders. Once configured, every paid order on your store triggers a webhook to your affiliate platform, which checks for an affiliate attribution and records a conversion.
- Shopify admin → Settings → Notifications → scroll to "Webhooks" near the bottom.
- Click "Create webhook."
- Event: Order creation. Format: JSON. URL: the webhook endpoint your affiliate platform gave you.
- Save. Most platforms also support optional webhooks for cancellations and refunds — set those up too if available so commissions get reversed automatically.
- Test it: create a real test order on your store (you can refund yourself afterward). Within 30 seconds the webhook should fire and the conversion should appear in your platform dashboard.
Step 5: Create your first affiliate
In your affiliate platform, add an affiliate manually:
- Their name and email. They'll receive a login to a branded affiliate portal where they see their stats and grab their links.
- A referral code. Either auto-generate or let the affiliate pick — names work great for influencers (
SARAH) and generate-and-forget hashes work for everyone else. - Their coupon code in Shopify, if you're using coupon attribution. Create the discount in Shopify admin first, then map it to the affiliate in your platform.
- Commission rate override if they're a special case (a top influencer at 25% while everyone else gets 15%).
Step 6: Test end to end
Don't skip this. Open an incognito window — you don't want existing cookies polluting the test.
- Go to your storefront with the affiliate link:
yourstore.com?ref=SARAH - Add an item to cart.
- Complete checkout (use a real card; you can refund the order immediately after).
- Within 30 seconds, check your affiliate platform dashboard. The conversion should appear under Sarah's account with the correct commission calculated.
- Refund the test order in Shopify. If you set up refund webhooks in step 4, the conversion should auto-reverse.
If the conversion doesn't appear: check the webhook delivery log in Shopify (Settings → Notifications → Webhooks → check most recent delivery), and your platform's incoming-webhook log. 90% of the time the issue is webhook URL typo or HMAC signature misconfiguration.
Step 7: Recruit affiliates
Software is the easy part. Finding good affiliates is the entire game. Three channels that consistently work:
- Existing customers. Email anyone who's bought from you in the last six months. Your repeat customers are pre-qualified — they like the product enough to come back. Conversion rate on this list is typically 2–5x cold outreach.
- Niche influencers. Not mega-influencers — micro and nano (1k–50k followers). Use Instagram's search to find creators in your category, DM them with a one-paragraph pitch: what your product is, your commission rate, and a free sample. Expect a 10–20% response rate.
- Newsletter operators. Niche newsletters in your category. Find them via Substack search, Twitter, or by Googling "[your category] newsletter." A single placement in a relevant newsletter can outperform months of cold influencer outreach.
Expect 80% of your affiliates to do nothing. The 20% who drive 80% of sales are who you should be actively cultivating with bigger commissions, free product, and quarterly check-ins.
Step 8: Pay affiliates
Most platforms track what's owed but don't actually move money — payouts are your responsibility. Decide:
- Payout schedule. Monthly is standard. Net-30 (paid 30 days after the close of the prior month) is the most common cadence and gives you a buffer for refunds.
- Minimum payout. $25–50 is typical. Below that, affiliate balances roll over to the next period.
- Payment methods. PayPal is the lowest-friction default for most international affiliates. Wise (formerly TransferWise) is the cheapest for cross-border bank transfers. Bank transfer for US-only.
- Tax forms. If you're US-based and any single affiliate earns over $600 in a calendar year, you owe them a 1099. Talk to a CPA — affiliate payouts above thresholds in many jurisdictions trigger reporting requirements.
Common mistakes
- Setting commission too low (≤5%). Affiliates won't promote you. Don't bother launching at this rate.
- Setting commission too high on thin-margin products. Run the unit economics. If you're paying 25% on a product with a 30% gross margin, you're shipping work for almost no profit.
- Manual approval with slow turnaround. If applications sit unreviewed for a week, momentum dies. Either auto-approve or commit to reviewing within 48 hours.
- Skipping the end-to-end test. The single most common reason new programs silently fail to track sales. Always do step 6 before recruiting.
- Underestimating the recruiting workload. The first 50 affiliates are manual outreach. Plan for it.
Where to go from here
Once you have one working affiliate, one tracked conversion, and one successful payout — you have a program. Growing it is mostly about repeating step 7 weekly: a handful of new affiliates per week, compounded, is a meaningful channel within six months.
If you want help with the software side, AffRef is the platform we run — flat-rate $49–$249/month, no transaction fees, first-party tracking on your Shopify domain, branded portals for your affiliates. Start a 7-day free trial if you want to use it for the setup above, or read the deep dive on first-party tracking if you want to understand the attribution side better.