What is revenue attribution? A plain guide for makers
Short answerRevenue attribution is the practice of linking each payment to the traffic source, campaign or content that brought the customer. Instead of “Twitter sent 1,200 visitors”, it tells you “Twitter sent $497 in sales”, so you can spend time on the channels that actually make money.
Why visitor counts are not enough
Most analytics tools stop at traffic. They tell you how many people came from each source, which is useful, but a source with thousands of visitors can produce zero sales while a small newsletter mention produces most of your revenue.
Revenue attribution closes that gap by joining two data sets: who visited (and from where) and who paid.
How revenue attribution works
- A tracking script gives each visitor an anonymous ID and records where they came from: referrer, UTM parameters, landing page.
- When the visitor checks out, that ID is passed to the payment provider as metadata (for example a Stripe Checkout metadata field).
- The payment provider sends a webhook when the payment succeeds. The analytics tool matches the ID and credits the revenue to that visitor’s sources.
Attribution models in one table
| Model | Who gets the credit | Good for |
|---|---|---|
| First touch | The source of the very first visit | Finding channels that create awareness |
| Last touch | The source of the visit right before paying | Seeing what closes the sale |
| Linear | Every visit equally | Long, multi-visit journeys |
| Time decay | More to recent visits | Longer sales cycles |
Which model should a small product use?
For most indie products, a simple single-touch model is the right starting point. Last non-direct touch works well: it credits the last real source (a tweet, search or newsletter) and ignores visits where the buyer simply typed your URL. Keep the full journey available so you can see the other visits too.
Common mistakes
- Using UTM links on internal links, which overwrites the original source.
- Trusting ad-platform conversions without checking them against real payments.
- Comparing sources by visitors instead of revenue per visitor.
Setting it up
You can build this yourself with a cookie, checkout metadata and a webhook handler, or use a tool that does it for you. WhoPaid takes one script tag and one Stripe or Dodo Payments webhook, then shows revenue next to every source, campaign and page. Use the UTM builder to tag the links you share.
Frequently asked questions
Is revenue attribution the same as conversion tracking?
Conversion tracking counts actions such as signups. Revenue attribution goes further and assigns actual payment amounts to sources.
Does revenue attribution need cookies?
Connecting a visit to a later payment usually needs a first-party identifier, such as a cookie, so the visitor can be recognized at checkout.
What about payments that happen weeks later?
As long as the identifier is still present, the payment is credited to the original source, even weeks after the first visit.
Keep reading
- First touch vs last touch attribution (and when to use multi-touch)
- How to track Stripe revenue by traffic source and UTM campaign
- The best web analytics tools for indie makers in 2026
- Multi-touch attribution explained (with a worked example)
- Website visitor tracking: what you can (and should) track in 2026
- Revenue analytics for small businesses: the 6 numbers that matter
- Twitter (X) analytics: how to see which tweets make you money