Affiliate revenue tracking: which partners bring paying customers
By Devendra Variya, co-founder of Virling. Published 2026-11-17.
Affiliate revenue tracking means giving every affiliate and partner their own tagged link, so you can see which of their visits turn into paying customers and what you paid in commission to get them. Use one utm_source or ref value per partner, plus their own campaign, and carry the visitor ID into checkout. You then compare partners by the revenue their buyers kept paying, net of refunds, against the commission each one earned.
Affiliates are paid a share of each sale they are credited with, so every credited sale costs you money. That makes two questions matter more than clicks: is the program crediting the right partner, and does the revenue survive refunds and renewals long enough to be worth the commission?
Keep the partner's name on the visit
A click from an email, a PDF or an app often arrives with no referrer, and an untagged visit with no referrer counts as Direct. Virling reads utm_source, and ref when utm_source is missing, so a link like ?ref=jane-doe keeps the partner's name when the referrer is gone. If your affiliate program already adds ?ref= values, keep them as they are; channels has the full rule order.
Commission per sale changes what you measure
With a commission program, the cost of a partner is not fixed: it grows with every sale the program credits to them. The useful number is what you paid a partner for each dollar that stayed with you after refunds, not the commission rate in their contract. To set that rate in the first place, the affiliate commission calculator shows the highest one-time or recurring commission that still breaks even on your margin.
Here is a made-up example for one month. Both partners earn 30% of each sale, and the payout software paid commission on the sale amount before refunds.
| Partner (made-up) | Visitors | Paying customers | Sales before refunds | Refunded | Revenue kept | Commission paid | Commission per $1 kept |
|---|---|---|---|---|---|---|---|
| review-site-a | 4,000 | 20 | $2,400 | 25% | $1,800 | $720 | $0.40 |
| jane-doe | 600 | 12 | $1,440 | 0% | $1,440 | $432 | $0.30 |
The first partner sends more visitors and more sales, yet every dollar you keep from their buyers costs a third more in commission. Revenue per visitor shows the same gap from the other side: $0.45 against $2.40. The EPC calculator works out what a partner earns per click from your rate and conversion, which is the number affiliates use to pick programs.
Cookie windows and Virling's attribution window
Affiliate software decides who gets the commission with a cookie: a partner's click sets it, and a sale within the program's cookie window pays that partner. Many programs let the latest affiliate click replace an earlier one, and ignore visits from search, ads or email in between.
Virling looks at every visit before the payment instead. It credits the payment under your attribution model, last non-direct by default, using only visits inside the lookback window: 30, 60, 90 or 365 days, 90 by default. So the two disagree in predictable ways.
- The buyer came back from a search before paying. The cookie still pays the affiliate. Last non-direct credits the search, and first touch credits the affiliate if their click was the earliest visit in the window.
- The cookie expired, or was cleared. The program pays no one. If the affiliate's visit is still inside Virling's window, and checkout carried the visitor ID, Virling can still credit them.
- Two affiliates touched the same buyer. The program pays whichever cookie it keeps. Virling's model decides which partner's visit gets the payment, and the buyer's journey on the payment shows both.
Set Virling's window at least as long as your cookie window when you want to check payouts, and read model and lookback window before comparing totals.
Where payout software fits
Keep your payout software. It holds the commission rules, approvals, payouts and tax forms, and Virling does none of that. Virling adds what the payout tool cannot see from its own cookie: every visit a partner sent to your site, which of those visitors paid your payment provider, and how each partner's revenue per visitor compares with search, email and your other channels. Use it to question a partner whose credited sales look high, and to decide who earns a better rate.
Partners who send traffic for months
A review post or a comparison article keeps sending visitors long after the partner wrote it, and a subscription they brought in keeps paying. Judge these partners on long ranges, not on the month they joined.
- Renewals stay with the partner. Virling credits every renewal to the visit behind the customer's first payment, so a partner who brought yearly or monthly subscribers keeps gaining revenue in Virling long after their first sale. If your program pays one-time commission, this is where a partner is worth more than their payouts suggest. See renewals.
- Slow buyers need a long window. The Time to pay card shows the median time from first visit to first payment for each channel. If partner traffic sits in the Referral channel with a long median, a 30-day window will drop many of their buyers.
- Old links break. A partner's evergreen post may still point at a page you have moved. A redirect that drops the query string turns their visits into Direct, so open their old links now and then in a private window.
Clawing back commission on refunds
Many programs hold commission for a period before paying, so a refund inside that period cancels it. Refunds after the payout are where partners and merchants argue, and where you need numbers of your own.
In Virling, a refund lowers the revenue of the payment it belongs to, on that payment's date. A month you already paid out on can therefore show less partner revenue next week than it did today. Before each payout run, open Partners for the payout period and compare each partner's revenue, net of refunds, and refund rate with what the payout software is about to pay. A partner whose refund rate is far above your other channels may be sending buyers who were promised something your product does not do, which is worth a conversation before any clawback.
Set it up with Virling
Create each partner in Partners to get a short link and a report per partner, or tag the links your program already uses with the partner in utm_source and utm_campaign. Then add the script, pass the visitor ID into checkout and connect your payment provider, as tracked links and the pages linked from it describe.
Each partner can get a read-only report link with only their own visitors, paying customers and revenue, so they can check your numbers without asking. Creators paid a flat fee per post are a different case; see which creators bring paying customers. If affiliates promote a sale, tagging a Black Friday sale gives each one their own row, and for partners that list codes, see whether coupon sites bring new customers.
Frequently asked questions
How do I track affiliate revenue?
Give each affiliate a link with their own value in utm_source or ref and the same value in utm_campaign, or create them as a partner in Virling. Pass the visitor ID into checkout so each payment joins to the visit before it, then compare partners by revenue kept after refunds against the commission each one earned.
Should affiliates use utm_source or ref?
Either works: Virling reads utm_source, and ref when utm_source is missing, so keep the ref values your affiliate program already adds. Put the same partner value in utm_campaign too, since the Campaign tab is where revenue is grouped per partner.
Does Virling replace affiliate payout software?
No. Virling does not pay partners, calculate commissions or handle payouts. It shows which partner visits turned into paying customers and how much of that revenue survived refunds, so you can check what your payout software is about to pay.
Why do Virling's partner numbers differ from my affiliate dashboard?
Affiliate software pays whoever holds the cookie inside its cookie window, and usually ignores other visits. Virling credits each payment under your attribution model, last non-direct by default, using visits inside a lookback window of 90 days by default, and counts revenue net of refunds.
Should I claw back commission when a referred customer refunds?
That is a term of your program, not something Virling decides. Virling helps you see the case: a refund lowers the revenue of the original payment on its own date, and the Partners page shows each partner's refund rate, so you can check refunds since the last payout before paying again.
See which partners bring paying customers
Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.