Revenue attribution for SaaS: see which channels bring paying customers

Visitors and signups don't pay the bills. How revenue attribution works, why first-touch is the right default for small SaaS teams, and how to set it up.

Keen Analytics team3 min read

Most analytics dashboards stop at the visit. They tell you that Google sent 19,000 people and Reddit sent 7,000, and leave you to guess which of them paid. For a SaaS or an app that sells subscriptions, that guess is the whole question: you have limited time to write, post and advertise, and you want to spend it where customers come from.

Revenue attribution closes that gap. It connects each payment to the visit that brought the customer, so every report can be read in dollars instead of clicks.

What revenue attribution actually measures

Attribution answers one question: when a customer pays, which visit gets the credit? Once that link exists, you can add up revenue by any property of the visit: the source (Google, a newsletter, ChatGPT), the UTM campaign, the landing page, the country or the device.

The numbers that change decisions are usually ratios, not totals. Revenue per visitor is the most useful one: a newsletter that sends 600 visitors who each bring $1.09 is worth more than a search page that sends 6,000 visitors at $0.08. Without attribution, the bigger number always looks like the winner.

First touch, last touch, or something fancier?

An attribution model decides which visit gets the credit when a customer came several times before paying:

  • First touch credits the visit that first brought the customer. It answers "how do people discover us?", which is what most small teams need to know.
  • Last touch credits the visit right before the payment. It tends to over-credit direct traffic and branded search, because people who already decided often come back by typing your name.
  • Multi-touch models split the credit across visits. They need a long, reliable history of each person, which usually means cookies, logins and consent banners.

For a SaaS with a few thousand visitors a month, first touch is a sound default. It's simple to explain, it rewards the channels that create demand, and it doesn't require following people across weeks. Keen Analytics uses first-touch attribution for exactly that reason.

The hard part is technical: your analytics sees a visit, your payment provider sees a payment, and nothing connects them. The reliable way is to pass a short reference from the visit to the checkout:

  1. The analytics script gives the visit a short-lived reference.
  2. When the visitor starts a checkout, that reference travels with it (for Stripe, as client_reference_id).
  3. When the payment arrives, the analytics tool reads the reference back and credits the payment to the visit.

With Keen Analytics, Stripe Payment Links on your pages get the reference automatically. For checkouts you create on your server, you pass the value from keen.ref(). Mobile apps can pass it to RevenueCat as a subscriber attribute. None of this identifies the person: the reference only says which anonymous visit to credit.

Reading the results

Once payments are attributed, a few reports do most of the work:

  • Revenue by source: which channels bring customers, and how much each visitor from that channel is worth.
  • Revenue by landing page: which articles and pages turn readers into buyers. Often a single post outperforms the home page.
  • Revenue by campaign: if you tag links with UTM parameters, each newsletter issue or launch post gets its own line.
  • Conversion rate by source: low-traffic channels with high conversion are the ones to grow.

Getting started

You don't need a data warehouse for any of this. Add the 1.2 KB Keen Analytics script, connect Stripe with a read-only key (or RevenueCat for app stores), and revenue appears next to your traffic within minutes. The install guide walks through every step.

Keep reading