How to Track Revenue Attribution for SaaS

Revenue attribution connects your marketing spend and traffic sources to actual paying customers. Here's how to set it up, what models to use, and which mistakes to avoid.

Trfyx Team··5 min read

Revenue attribution is the practice of connecting each paying customer back to the marketing channel, campaign, or content that brought them in. For SaaS companies, this means answering a specific question: which traffic sources are actually generating subscriptions and recurring revenue — not just visits?

Most analytics tools stop at traffic. They'll tell you that 3,000 visitors came from Google last month. Revenue attribution tells you that 12 of those visitors converted to paid plans worth $1,400 in monthly recurring revenue, while the 500 visitors from your paid LinkedIn campaign generated exactly one trial that never converted.

The Problem: Traffic Without Revenue Context

Web analytics dashboards are full of metrics that feel useful but don't answer the business question. Pageviews, sessions, bounce rate, and time on site describe activity, not outcomes.

Consider two traffic sources:

  • Source A sends 5,000 visitors per month with a 2% bounce rate and an average session of 4 minutes.
  • Source B sends 200 visitors per month with a 60% bounce rate and an average session of 90 seconds.

Traditional analytics would rank Source A as the winner. But if Source B's visitors convert at 8% with an average contract value of $200/month, and Source A's visitors convert at 0.1% with a $15/month plan, Source B generates $3,200 MRR versus Source A's $750.

Without revenue attribution, you're optimizing for the wrong metric.

First-Touch vs Last-Touch Attribution

Attribution models decide which touchpoint gets credit for the conversion.

First-touch attribution gives all credit to the channel that first brought the visitor to your site. If someone found you through a blog post, then came back via a Google ad, then signed up through a direct visit — the blog post gets the credit.

Last-touch attribution credits the final interaction before conversion. In the same scenario, the direct visit gets the credit.

Neither model is perfect:

  • First-touch favors top-of-funnel content (blog posts, SEO, social) and undervalues retargeting and direct.
  • Last-touch favors bottom-of-funnel channels (branded search, direct, email) and undervalues discovery.

For most SaaS companies, first-touch attribution is the more useful default because it answers the harder question: what originally attracted this customer? Last-touch often credits branded search or a direct visit — the customer was already convinced, they just came back to sign up.

Some tools offer multi-touch models (linear, time-decay, position-based) that distribute credit across the journey. These are more accurate in theory but harder to act on. Start with first-touch, get comfortable with the data, and add complexity if you need it.

Setting Up Revenue Attribution

The mechanics depend on your stack, but the general steps are:

1. Tag your traffic sources. Use UTM parameters consistently on every campaign link: utm_source, utm_medium, and utm_campaign at minimum. Document your naming conventions so facebook, Facebook, and fb don't fragment your data.

2. Connect your payment provider. Your analytics tool needs access to payment events — who subscribed, when, and for how much. With Trfyx, you connect Stripe or Shopify using a read-only API key. The platform then maps each paying customer back to the session and source that originally brought them in.

3. Map visitors to customers. This requires identifying the visitor at some point — typically at signup. When a visitor creates an account, the analytics tool links their anonymous browsing history to their identity, and when a payment event arrives, it's attributed to the original traffic source.

4. Read the reports. Revenue attribution data is most useful as a breakdown: revenue by source, by campaign, by landing page. Look for which channels bring customers, not which channels bring traffic.

What Good Attribution Data Looks Like

Once attribution is working, you'll start seeing patterns that reshape your priorities.

The blog post that outperforms paid ads. A technical guide you wrote six months ago consistently sends visitors who convert at 5x the rate of your Google Ads traffic. The blog post is free to maintain; the ads cost money every month. Attribution data tells you to write more content like that post and possibly reduce ad spend.

The social channel that actually converts. Your Twitter/X posts drive modest traffic, but the visitors who arrive through a specific thread about your niche have a conversion rate three times your site average. Attribution helps you identify and double down on what's working instead of guessing.

The campaign that wastes money. A paid campaign sends plenty of visitors who browse the site and leave. Zero conversions over two months. Without revenue attribution, the traffic numbers look healthy. With attribution, the $0 revenue column makes the decision obvious.

Common Attribution Mistakes

Ignoring organic search. Organic visitors arrive without UTM parameters, so they often end up in a catch-all bucket. Make sure your analytics tool captures the referring search query (via Google Search Console integration, if available) and attributes organic traffic properly.

Over-crediting last-touch. If you only measure last-touch, direct traffic and branded search will dominate your revenue reports. This creates a blind spot around how people found you in the first place.

Not accounting for long sales cycles. SaaS purchases often involve multiple visits over days or weeks. If your attribution window is too short (same session only), you'll under-count channels that start the journey but don't close it immediately. A 30-day or 90-day attribution window usually works better.

Mixing up conversion rate and revenue. A channel with a 10% conversion rate sounds great until you realize those customers all chose the $9 plan. Another channel converts at 2% but averages $99/month. Optimize for revenue, not conversion count.

Tools for SaaS Revenue Attribution

You can build attribution in-house by stitching together UTM data, your analytics tool, and your payment provider's API. Most teams don't have the time.

Dedicated attribution tools exist (like HockeyStack or Dreamdata), but they're often expensive and designed for enterprise sales cycles.

For early-stage SaaS, a simpler approach works: pick an analytics tool with built-in revenue tracking. Trfyx connects to Stripe or Shopify with a read-only key and shows revenue by first-touch channel directly on the main dashboard — next to the traffic data, not in a separate tool. No event instrumentation required on your side.

What matters most is that you start measuring. Even imperfect attribution with a single model beats flying blind. You can refine the model later. The first step is connecting revenue data to your analytics at all.

Ready for
better analytics?

See which channels turn visitors into revenue. Add one script and be live in minutes.

20-day free trial · No card requiredEU-hosted cloud