Analytics and marketing attribution for SaaS
Updated 2026-11-07
SaaS marketing has a measurement problem that most analytics tools don't solve. The visit happens on your marketing site, the signup happens in your app, and the money arrives in Stripe weeks later, often as a renewal with no visit at all. Headstream connects those three so you can see which marketing produces paying customers, not just signups.
The questions SaaS teams ask
- Which channels bring customers who actually pay, and keep paying?
- Is our content working, or just bringing traffic?
- Where did the customers who never clicked anything come from?
- Why does our analytics revenue not match Stripe?
How to set it up
- Install one script on your marketing site and your app. Events are pooled across sites, so one project can cover both domains. See install the script.
- Identify people at signup with the email they'll pay with. Their earlier anonymous visits join their profile. See identify people.
- Connect Stripe with read-only access. Payments, refunds and disputes are imported and credited back to visits every hour.
- Ask how they heard about you on the signup form, with a field named
heard_about. - Create goals for signup and activation steps, so you can see conversion by channel before revenue arrives.
The reports that matter
| Report | What it answers |
|---|---|
| Revenue by channel and campaign | Which marketing produced Stripe revenue, under four models |
| Self-reported sources | What customers say, next to what was tracked |
| Funnels | Where visitors drop between landing page, pricing and signup |
| Unattributed revenue | Which payments had no visit to credit, and why |
| Data quality | Freshness, duplicates and filtered bots |
An example dashboard
This example uses made-up numbers. One month of a SaaS company's revenue by first touch:
| Channel | Signups | Paying customers | Revenue |
|---|---|---|---|
| Organic search | 420 | 31 | $9,300 |
| Paid search | 260 | 14 | $4,200 |
| Direct | 300 | 22 | $7,800 |
| Referral | 90 | 11 | $3,900 |
Direct looks like the second-best channel. Self-reported answers from those 22 customers say 9 heard about you on a podcast and 7 from a colleague. That's a channel tracking couldn't see, and it's worth more than paid search.
Why revenue from Stripe matters
Most analytics tools learn about revenue from a purchase event fired in the browser. For SaaS that misses renewals, upgrades by invoice, and any payment blocked by an ad blocker, and it never subtracts refunds. Headstream reads payments from Stripe itself and publishes attribution only when it adds up to the ledger to the cent. See why analytics and Stripe disagree.
Pricing for SaaS
Plans are priced by events a month, with unlimited sites and team members, so your marketing site, app and docs share one allowance. It's free up to 10,000 events. See pricing.
Questions
- Does it work if signup happens in my app on a different domain?
- Yes. Install the script on both and add both domains to the same project. Identifying people at signup joins their visits across domains.
- Can it replace Google Analytics?
- For most SaaS marketing questions, yes. Many teams run both for a few weeks and compare before removing GA.