- Revenue attribution connects each payment to the channel, referrer, campaign and landing page of the buyer's first visit, so you can compare channels by dollars, not clicks.
- First-touch credits the first recorded visit; last-touch credits the final visit before purchase. For SaaS with short sales cycles, first-touch is the simplest honest default.
- The technical link is an identifier shared between your analytics and your payment processor, for example Stripe's
client_reference_idor a customer metadata field. - The metric that matters is revenue per 1,000 visitors by channel. A small channel that converts can beat a large channel that does not.
What revenue attribution means
Revenue attribution answers one question: which marketing channel brought the customers who actually paid. Standard web analytics reports visitors and signups per channel. Revenue attribution goes one step further and joins that data with payments, so every dollar of MRR is traced back to where the customer first came from.
This matters because traffic and revenue often disagree. A channel that sends thousands of visitors can produce zero customers, while a niche directory sends a handful who all pay. Without the join, you reward the wrong channel.
First-touch versus last-touch attribution
An attribution model decides which visit gets credit. The two most common models for SaaS are first-touch and last-touch. Multi-touch models split credit across several visits but need more data than most early-stage products have.
| Model | Credits | Best for | Weakness |
|---|---|---|---|
| First-touch | The first recorded visit | Finding which channels introduce paying customers | Ignores later nudges such as email or retargeting |
| Last-touch | The final visit before purchase | Understanding what closes the sale | Over-credits Direct and branded search |
| Linear multi-touch | Equal share across all visits | Long, multi-visit sales cycles | Needs reliable cross-session identity |
| Position-based | More to first and last visits | Mid-sized B2B sales | Weights are arbitrary |
Why first-touch is a good default for SaaS
Most indie SaaS products have a short path: someone finds you, visits once or twice, signs up and pays within days. In that setting, first-touch answers the question you actually have, which is where to find more people like your paying customers. Last-touch tends to hand credit to Direct traffic, because people often return by typing your URL or clicking a bookmark.
First-touch has one blind spot: it does not see what closed the sale. Pair it with funnel data on your pricing page and trial emails to understand the final step.
How to tie Stripe payments to traffic sources
Analytics knows the visitor. Stripe knows the payment. To join them you need a shared identifier that travels from the first visit, through signup, into the checkout. There are three common ways.
- Checkout Session `client_reference_id`: when you create a Stripe Checkout Session, pass your own visitor or user ID in
client_reference_id. Stripe stores it on the session, so the payment can be matched to the visitor later. - Customer or subscription `metadata`: write the user ID, and optionally the first-touch source, into metadata when the customer is created. This also works for Payment Links and the billing portal.
- Email match: if the buyer used the same email at signup and checkout, the two records can be joined by email. It is the weakest option because people use different addresses.
A worked example: revenue per 1,000 visitors
Here is a hypothetical month for one product. The numbers are illustrative, not benchmarks. Visitors, customers and first-month revenue are attributed by first touch.
- By traffic, organic search and X look like the winners.
- By revenue per 1,000 visitors, the product directory and AI assistants are far ahead, with small volume.
- The decision follows: invest more in the directory listing and in content that AI assistants cite, and cut effort on the channel with the weakest return.
- Check sample size before reallocating. Five customers is a signal to investigate, not proof.
| Channel | Visitors | Customers | Revenue | Revenue per 1,000 visitors |
|---|---|---|---|---|
| Organic search | 6,000 | 9 | $441 | $73.50 |
| X / Twitter | 3,500 | 2 | $98 | $28.00 |
| Product directory | 400 | 5 | $245 | $612.50 |
| Newsletter sponsorship | 1,200 | 1 | $49 | $40.83 |
| AI assistants | 300 | 3 | $147 | $490.00 |
| Direct | 2,000 | 4 | $196 | $98.00 |
Channels, referrers, UTMs and landing pages
Attribution works at four levels. The channel is the grouping (organic search, social, referral, email, AI assistants, direct). The referrer is the specific site. The UTM campaign is a tag you add to links you control. The landing page is where the visitor entered. Reading them together tells you not just that search works, but that one particular article brings buyers.
UTM tags only exist when you add them, so label every link you control. A short naming convention is covered in the UTM parameters guide. To catch the traffic that arrives without a referrer, see how to track AI assistant traffic.
Doing it automatically with Obsidesk
Obsidesk installs a cookieless script in about 30 seconds, connects to Stripe or Whop with a read-only key, and ties every payment to the buyer's first visit: channel, referrer, UTM campaign and landing page. The result is a table like the one above, updated live, with revenue per 1,000 visitors per channel. You can explore a sample on the demo.
Because the identifier travels with the visitor, you do not need to build a data warehouse or maintain a spreadsheet of exports. The more important point is the habit: review revenue per visitor by channel monthly, then put your next hour of marketing into the channel at the top.
Limits to keep in mind
- Cookieless means no cross-device identity. A visitor who first arrives on a phone and pays from a laptop may appear as two people unless they sign in between.
- Small numbers are noisy. Revenue per visitor on 10 customers can swing wildly. Look at several months.
- First-touch ignores influence. A podcast mention that made someone search your name later will show up as organic search or Direct.
- Refunds and churn matter. Attribute retained revenue, not only first payments, to find channels whose customers stay.
A setup checklist
If you build attribution yourself instead of using a tool, the steps are short but each one must be right. A mistake at any step breaks the chain, and you will not notice until you wonder why revenue per channel looks odd.
- Capture the first visit. Record referrer, UTM parameters and landing page on the first page view, and store them against a visitor identifier.
- Keep it through signup. When the visitor creates an account, save the first-touch values on the user record.
- Pass the identifier to checkout. Send the user ID in
client_reference_idor in customer metadata when you create the Checkout Session. - Read it back from the payment. When Stripe reports a payment, use the stored value to find the user and their first-touch source.
- Normalize channels. Map referrers into a short list of channels so results are readable.
- Report revenue per 1,000 visitors, and include refunds, so a channel is not credited for revenue that was returned.
Questions attribution can answer
The last row is increasingly relevant: assistants send smaller volumes of well-informed visitors, so measuring their revenue, and not only their visits, shows whether they are worth optimizing for.
| Question | How to answer it |
|---|---|
| Which channel should I invest more in? | Rank by revenue per 1,000 visitors |
| Which article or page brings buyers? | Group revenue by landing page |
| Is this campaign worth its cost? | Revenue by utm_campaign against spend |
| Do customers from one channel churn faster? | Churn by first-touch channel |
| Is AI search sending buyers? | Revenue for the AI assistants channel |
FAQ
What is revenue attribution in SaaS?
Revenue attribution connects each payment to the marketing source of the customer who made it. Instead of counting visitors per channel, you measure revenue per channel, so you can see which source produces paying customers.
How do I know which marketing channel brings paying customers?
Join your web analytics with your payment data using a shared identifier, such as the Stripe Checkout client_reference_id, then group revenue by the first visit's channel and divide by visitors.
What is the difference between first-touch and last-touch attribution?
First-touch gives full credit to the first recorded visit. Last-touch gives it to the last visit before the purchase. First-touch shows what introduces customers; last-touch shows what closes them.
What is Stripe client_reference_id?
It is a field you can set on a Stripe Checkout Session to store your own reference, such as a user or visitor ID. Stripe returns it with the session, so you can match the payment to your own records.
Do I need cookies for revenue attribution?
Not necessarily. Cookieless analytics can recognize a visit within a session and store the source against a signup. You trade some cross-device accuracy for not needing a cookie banner.
Get these numbers live, without a spreadsheet.
14-day money-back guarantee. Installed in 30 seconds. Read-only revenue connections.