Skip to content
RewardSpring
All posts

How to track affiliate sales: attribution, cookies, and Stripe

How to track affiliate sales for your SaaS: the three jobs tracking must do, why cookies alone break, and a Stripe-native setup you can ship this week.

By The RewardSpring Team · October 8, 2026 · 6 min read

How to track affiliate sales: attribution, cookies, and Stripe

If you are launching a partner or referral program, the first practical question is not how much to pay — it is how to track affiliate sales in the first place. Tracking is the quiet machinery that decides who gets credit for a customer, and when it is even slightly off, you either pay commissions you do not owe or, worse, stop paying the partners who are actually sending you revenue. Get it right and the rest of the program runs itself. Get it wrong and every payout becomes an argument.

The good news: for a small SaaS, reliable tracking does not require a data team or an expensive platform. It requires understanding the three jobs tracking has to do, and picking the approach that does all three without you babysitting a spreadsheet.

What “tracking” actually has to do

People say “affiliate tracking” as if it is one thing. It is really three jobs stacked on top of each other, and most homemade setups only do the first one well:

  • Attribute the click. Know which partner sent a visitor, and remember it long enough for that visitor to come back and sign up.
  • Confirm the paid conversion. Tie that signup to a real, paid subscription — not a free trial that never converts, and not a card that gets declined next month.
  • Calculate the commission. Turn the confirmed revenue into an amount owed, including recurring payments and refunds, so you can pay without doing math by hand.

A referral link that drops a cookie handles the first job. It does nothing for the second or third. That gap is exactly where founder-built programs tend to break.

The three ways founders track affiliate sales

In practice, almost every early program uses one of these three methods, or a blend of them:

  • Coupon or promo codes. You give each partner a unique code; anyone who uses it is credited to that partner. Dead simple, survives ad blockers, and works great for creators with an audience. The downside is that codes leak to coupon sites, and a customer who found your partner but forgot the code gets attributed to no one.
  • Referral links plus cookies. Each partner gets a unique URL; a click stores a cookie that attributes the eventual signup. This is the classic method, and it is fine — until the cookie expires, the user switches devices, or their browser blocks third-party tracking entirely.
  • Stripe-native tracking. You attribute the click as usual, but you confirm and calculate against the actual Stripe subscription, so a commission is only ever counted when a real payment clears. This closes the gap between “someone clicked” and “someone paid.”

Most durable programs use codes or links for attribution and lean on billing data for confirmation. The method you choose for the first job matters less than making sure the second job — confirming the paid conversion — is wired to your billing system and not to a cookie.

Why cookies alone break for SaaS

Cookie-based attribution was designed for e-commerce, where the click and the purchase happen minutes apart. SaaS does not work that way. Someone clicks a partner link, starts a 14-day trial, disappears, and converts to a paid plan three weeks later from a different laptop. By then the cookie is long gone, and your tracking quietly credits that sale to “direct.”

The fix is not a longer cookie window — it is anchoring attribution to the customer record, then confirming against Stripe when the subscription actually starts billing. If you are still mapping out the basics, our guide on how to start an affiliate program for your SaaS walks through the setup decisions that make tracking easier later.

The Stripe-native way

Because your subscriptions already live in Stripe, Stripe is the most honest source of truth you have for what a customer is worth. A Stripe-native approach ties each attributed signup to its Stripe customer and subscription, so commissions are calculated from real invoices — including the recurring ones — and automatically clawed back when a payment is refunded or a customer churns inside the refund window.

That is the model RewardSpring is built on: attribution for partners and customer referrals in one dashboard, with paid conversions confirmed straight from Stripe. You can see how the partner side works on our affiliate programs page. If you want to understand the plumbing first, setting up an affiliate program with Stripe covers how the billing hooks fit together.

A simple tracking setup you can ship this week

You do not need to boil the ocean. A dependable first version has four moving parts:

  1. Give every partner a unique link and a backup code. The link handles most attribution; the code catches the people who found the partner but landed on your site some other way.
  2. Attribute at signup, not at click. Store the referring partner on the customer record the moment an account is created, so a lost cookie cannot erase the credit.
  3. Confirm against the first paid invoice. Only count a conversion when Stripe reports a successful payment, which keeps free-trial tire-kickers out of your commission math.
  4. Hold commissions for a short window before payout. A brief hold lets refunds and early churn resolve themselves before money leaves your account.

Once those four are in place, paying partners becomes a clerical task instead of a reconciliation project. Our breakdown of how to pay affiliates picks up exactly where tracking leaves off — payout methods, timing, and the tax paperwork to collect first.

Common tracking mistakes to avoid

  • Counting trials as conversions. Commission on signups you have not been paid for is a great way to go broke rewarding people for nothing.
  • Ignoring refunds and churn. If your tracking cannot reverse a commission, every refund costs you twice.
  • Trusting last-click blindly. A customer who was already going to buy does not need a 20% commission attached to a branded coupon code. Watch for codes leaking to deal sites.
  • No audit trail. When a partner asks why a sale was not credited, “the cookie expired” is not an answer anyone accepts. You want a record tying each commission to a Stripe payment.

Start tracking the sales that actually pay

Tracking affiliate sales well comes down to one principle: attribute generously, confirm strictly. Be forgiving about how you credit a click, and unforgiving about what counts as a paid conversion, and your program will reward the partners who move real revenue without bleeding you on the ones who do not.

RewardSpring gives you both sides out of the box — partner and referral attribution, with every commission confirmed against Stripe — so you can launch a program you trust instead of a spreadsheet you dread. Start free and have reliable tracking running before your next partner signs up.

Run this on your own SaaS

Partner and customer referral programs, connected to Stripe. RewardSpring is not open for sign-up yet — we will email you the day it is.

Get notified at launch

Related posts