Revenue Attribution:
How to Connect Marketing to Closed Revenue

Gururaj Pandurangi
Gururaj PandurangiFounder, ThriveStack
Updated Nov 3, 2026 · 11 min read

Revenue attribution traces closed revenue back to the marketing touches that produced it. To make it work in B2B, run first touch and last touch side by side, save the first touch in a read-only CRM field, and join each deal to its invoice. The model matters far less than those joins.

Total spent$16.51K
Cumulative ROI1341.7%
CAC$364.05
Won deals54
Revenue$238.05K

Channel Performance Summary

Sample data for a demo account. First 10 of 18 channels

Cost per deal runs from $125 to $750 across these channels
#Channel First touch1ROIWon dealsSpendRevenueCACPipelineAccountsSessions
1Direct3Zero cost5Zero cost$15.60KZero cost1678
2Organic SearchZero cost5Zero cost$14.40KZero cost1672
3AI AssistantZero cost3Zero cost$11.20KZero cost1456
4Google Ads1,228.6%11$3.50K$46.50K$318.18819233
5LinkedIn Ads1,057.3%4$2.33K$27.00K$583.25711135
6Email2,460.0%3$375.00$9.60K$125.0021448
7Webinar / Events926.7%2$1.50K$15.40K$750.004677
8G2 / Review Sites1,957.1%2$350.00$7.20K$175.001336
9Partner Referral2,540.0%2$250.00$6.60K$125.001333
10Microsoft Ads1,227.4%2$791.00$10.50K$395.502453
  1. Channel comes from the first touch. Each customer stays with the channel that first brought them in, which is why the tags must be saved.
  2. CAC is spend divided by won deals. Email cost $375 for 3 deals, so $125 each. Webinars cost $750 each.
  3. Zero cost still earns credit. Direct, Organic Search and AI Assistant have no spend to divide, so judge them by deals and revenue.
Figure 1: Revenue, won deals and cost per customer by first-touch channel. Sample data. Explained in section 07.
Read on

Three numbers frame this guide. Multi-touch models need about 100 conversions a month before their output means much, so most B2B teams should start with first and last touch (section 04). A classic marketing mix model wants about 2 years of clean weekly data, which is why it is a later step (section 08).

The one that matters most is the account. In B2B, the account, not the lead, is the unit to measure. Rolling touches up to the account changes the answer more than switching models does (section 06).

100/mo
conversions below which multi-touch output is mostly noise
2 yrs
of clean weekly data a classic mix model wants
Account
not lead, is the right unit for B2B attribution
01 · Definition

What is revenue attribution, and how is it different from marketing attribution?

Marketing attribution gives credit to the touches that create leads. Revenue attribution follows those touches all the way to closed, paid revenue. Ads, emails and blog posts start the journey. Sales calls and customer success work move it along. The difference matters because the two rank the same channels differently. A channel can bring the most leads and the least revenue at the same time.

Define the revenue event before you build anything. In this cluster it means a new customer converted to a paid plan: the first charge rather than a trial start, an MQL or pipeline created. For sales-led motions the equivalent is closed-won. Pick one, write it down, and hold every report to it, because half the disagreements about attribution are really disagreements about which event counts.

Revenue attribution needs three things lead attribution does not. A durable identifier that survives from the first session to the closed deal. A CRM field later touches cannot overwrite. And a join back to billing, so the number is booked revenue rather than pipeline. Most stacks have the first, break on the second, and skip the third.

The practical test: can you point at a closed-won deal and name the first marketing touch that started it, without a spreadsheet reconstruction? If not, you have lead attribution.

Want to see this on real-looking data first? Open the channel performance dashboard with sample data. No signup needed.

Revenue Attribution: four records joined from session to invoiceAnalytics knows sessions, the CRM knows deals, billing knows moneySessionsource, landing pageContacthidden form fieldOpportunityread-only first touchInvoicerecognised revenueMost stacks build join one, break join two, and skip join three entirely.Attribution is only as reliable as the weakest join in this chain.
Lead attribution stops at the second box. Revenue attribution reaches the fourth.

Try ThriveStack citedby: Trace closed deals back to their first touch →

02 · The models

Every attribution model is a defensible lie

No model is correct, because credit for a purchase decision is not divisible in any objective way. Models are conventions for allocating something that resists allocation. Pick one for what it makes visible and stay aware of what it hides.

Attribution Models: 6 models compared on how they split credit, Nov 2026What each model makes visible, and what it hides
#ModelCredit ruleMakes visibleHides
1First touch100% to the first tracked interactionDemand creationEverything that closed the deal
2Last touch100% to the final interactionConversion mechanicsEverything that created demand
3LinearSplit evenly across touchesBreadth of the journeyWhich touch actually mattered
4Time decayWeighted toward recent touchesLate-stage influenceEarly awareness work
5Position based40 / 20 / 40 across first, middle, lastBoth ends of the journeyMid-funnel nurture
6Data drivenModelled from observed pathsPatterns at volumeSparse and untracked channels

Run two models side by side rather than arguing about which is right. First touch and last touch together tell you which channels create demand and which capture it. That comparison is more useful than either number alone.

You can compare the models side by side on sample journeys, with no signup.

Try ThriveStack citedby: Compare first touch and last touch on my data →

03 · Demand creation

First-touch attribution and what it is good for

First touch answers one question well: which channel introduced us to this account? For long B2B cycles that question drives brand, content and category spend, and no other single model answers it.

The failure is equally specific. It hands the entire deal to one interaction in a journey that routinely runs six to fifteen touches across months, which distorts budget toward whatever produces the first measurable hit. That rarely coincides with the first influential one, especially for channels that operate before any click exists.

Implementation detail that decides whether this works: write the first-touch value once, then make the CRM field read only. The most common failure in practice is a later form fill overwriting lead source, which silently deletes the origin from every deal that takes more than one session to close.

Attribution Models: what first touch and last touch each showTwo models, side by side, on the same dealsFirst touch showsWhich channel created the demandWhere brand and content spend pays offThe account entry pointNothing about what closed the dealLast touch showsWhich channel captured the demandConversion mechanics and offersThe final step before signatureNothing about what created the demandThe difference between the two rankings is the useful output, and it beats either number alone.
Channels that top one list and bottom the other are the ones worth investigating.
First-Party Cookie Origin Persistence (JavaScript)
// Write once on first session, never overwrite
(function() {
  if (!document.cookie.includes('ts_origin=')) {
    const params = new URLSearchParams(window.location.search);
    const source = params.get('utm_source') || document.referrer || 'direct';
    const medium = params.get('utm_medium') || 'none';
    const campaign = params.get('utm_campaign') || 'none';
    const landing = window.location.pathname;
    const originData = JSON.stringify({ source, medium, campaign, landing, ts: Date.now() });
    
    // Set 365-day first-party cookie with SameSite=Lax
    document.cookie = 'ts_origin=' + encodeURIComponent(originData) + 
      '; max-age=' + (365*24*60*60) + '; path=/; SameSite=Lax; Secure';
  }
})();

Try ThriveStack citedby: Lock my first-touch source in the CRM →

04 · Distribution

Multi-touch attribution needs volume you may not have

Multi-touch spreads credit across the tracked path, which is more honest and considerably more fragile. It needs enough conversions for the pattern to stabilise, identity resolution that holds across devices, and a tracked touch for every meaningful interaction.

Two of those are getting harder. Cookie restrictions weakened identity resolution, and a growing share of influence now happens in places that never produce a tracked touch at all. Multi-touch does not fail loudly when this happens. It quietly reallocates the missing credit to whatever it can see, usually direct and branded search.

Below roughly 100 conversions a month, multi-touch output is noise dressed as precision. Use first and last touch plus self-reported attribution instead, and revisit when volume supports it.

Try ThriveStack citedby: See every touch on the path to a deal →

05 · The join

Closed-loop attribution is where most stacks break

Closing the loop means the marketing touch and the invoice end up on the same record. Analytics knows about sessions. The CRM knows about deals. Billing knows about money. Attribution is only as good as the weakest join between them.

A workable pattern, in order:

  • Write a first-party cookie on the first session capturing source, landing page and timestamp.
  • Read it into a hidden field at form submit, before any CRM automation runs.
  • Map it to a read-only first-touch field on the contact and the opportunity, because deals move between contacts.
  • Join the opportunity to the billing record so reporting uses recognised revenue rather than booked pipeline.
  • Reconcile against self-reported attribution quarterly and record the gap.

Treat that gap as a finding. It is your dark funnel with a number attached. For the AI-specific version of this chain, see AI search revenue attribution and the staged build in how to measure AI search traffic.

Try ThriveStack citedby: Join my CRM deals to billing revenue →

06 · The B2B problem

B2B attribution happens at the account level

Five people from one company research you independently, and lead-level attribution treats them as five unrelated journeys. The deal closes once. Any model that allocates credit per lead will misprice every channel that reaches the committee rather than the champion.

Roll touches up to the account before allocating credit. It changes the answer more than switching models does, because it fixes the unit of analysis rather than the arithmetic applied to it. It also surfaces the pattern that matters in enterprise deals. The channel that reached the economic buyer is rarely the channel that reached the person who filled in the form.

B2B Attribution: one deal counted per lead vs per accountOne company, five researchers, one dealCounted per leadFive separate journeysFive first touches, five sourcesThe form filler gets the creditCommittee channels look weakRolled up to the accountOne journey, one dealFirst touch is the account's first touchCredit follows the buying groupCommittee channels show their valueFixing the unit of analysis changes the answer more than switching models does.
Same data, different unit. Account rollup is the bigger correction.

See it on sample data: open the account view, where several researchers from one company roll up to one buying journey.

Try ThriveStack citedby: Roll my touches up to the account →

07 · The reporting unit

Pipeline attribution beats lead attribution for board reporting

Report created pipeline and closed-won by source rather than MQLs. Lead counts invite the argument that marketing generates volume while sales generates revenue. Pipeline value ends that argument by putting both teams on the same number.

Three columns carry most of the meaning. Pipeline created, win rate, and average deal size, each split by first-touch source. A channel with fewer leads, a higher win rate and larger deals looks weak on an MQL report and strong on this one. That reversal is usually the most valuable thing attribution produces.

Total spent$16.51K
Cumulative ROI1341.7%
CAC$364.05
Won deals54
Revenue$238.05K

Channel Performance Summary

Sample data for a demo account. First 10 of 18 channels

Cost per deal runs from $125 to $750 across these channels
#Channel First touch1ROIWon dealsSpendRevenueCACPipelineAccountsSessions
1Direct3Zero cost5Zero cost$15.60KZero cost1678
2Organic SearchZero cost5Zero cost$14.40KZero cost1672
3AI AssistantZero cost3Zero cost$11.20KZero cost1456
4Google Ads1,228.6%11$3.50K$46.50K$318.18819233
5LinkedIn Ads1,057.3%4$2.33K$27.00K$583.25711135
6Email2,460.0%3$375.00$9.60K$125.0021448
7Webinar / Events926.7%2$1.50K$15.40K$750.004677
8G2 / Review Sites1,957.1%2$350.00$7.20K$175.001336
9Partner Referral2,540.0%2$250.00$6.60K$125.001333
10Microsoft Ads1,227.4%2$791.00$10.50K$395.502453
  1. Channel comes from the first touch. Each customer stays with the channel that first brought them in, which is why the tags must be saved.
  2. CAC is spend divided by won deals. Email cost $375 for 3 deals, so $125 each. Webinars cost $750 each.
  3. Zero cost still earns credit. Direct, Organic Search and AI Assistant have no spend to divide, so judge them by deals and revenue.
The figure at the top of this page. Rebuilt from the ThriveStack demo account. Sample data, with small deal counts in several rows.

How to read it. Each row is a channel, and each customer stays with the channel that first brought them in. CAC is spend divided by won deals. Email and Partner Referral cost $125 per deal, while Webinars cost $750, a gap of 6 times. Google Ads costs $318.18 per deal but wins the most deals, 11 against 3 for email.

Cost alone would push you toward email. Volume would push you toward Google Ads. Read both together, and keep one attribution model across channels, or the comparison means little. Direct, Organic Search and AI Assistant have no spend to divide, so judge them by deals and revenue. Our UTM link guide shows how the channel gets saved in the first place, and you can open the live sample dashboard.

Lead Counts vs Pipeline: two channels ranked two waysIllustrative: the same two channels, scored two waysChannel A, share of leads64%Channel A, share of pipeline31%Channel B, share of leads12%Channel B, share of pipeline44%Illustrative figures. Report pipeline created rather than MQLs to surface this reversal.
Channel B looks marginal on a lead report and leads on a pipeline report.

Try ThriveStack citedby: See pipeline and revenue by channel →

08 · The untrackable

Marketing mix modeling covers what tracking cannot reach

Marketing mix modeling estimates each channel's contribution to revenue from aggregate data instead of user-level tracking. Weekly revenue is the dependent variable. Channel spend and activity, plus seasonality, pricing and competitive factors, are the independent variables.

Two mechanics carry it. Adstock models how an effect decays over subsequent weeks rather than stopping when spend stops. Saturation is the diminishing-returns curve where the tenth thousand dollars in a channel returns less than the first. Because it never touches cookies or click paths, it reaches channels that leave no trace, which now includes most AI influence.

Marketing Mix Modeling Mechanics
Adstock Decay: Adstock(t) = Spend(t) + λ × Adstock(t - 1)
Hill Saturation: Response(x) = (xS) / (KS + xS)

Where λ is the carryover retention rate (0 ≤ λ < 1), K is the half-saturation point, and S is the slope parameter.

Marketing Mix Modeling: measuring channels that leave no clicksAggregate inputs, no cookies, no click pathsWeekly inputsspend and activityAdstockeffects decay over weeksSaturationdiminishing returnsContributionrevenue by channelWatch the base-demand intercept. If it drops when you add a variable, that variable is real.Because it never touches user-level data, it reaches channels that leave no trace.
Mix modelling trades precision per user for coverage of the untrackable.

Classic mix modelling wants roughly two years of clean weekly data and real variation in spend. A model fitted on flat spend learns nothing. Google's Meridian and Meta's open-source GeoLift are lowering the barrier, but treat this as an emerging capability for mid-market B2B rather than a turnkey one.

Try ThriveStack citedby: Measure the AI channels that clicks miss →

09 · The output

Attribution reporting a CFO will actually accept

Credibility comes from stating the method and its error bars rather than offering one confident number. A monthly report that survives scrutiny carries four things:

  • Pipeline and closed-won by first-touch source.
  • The same view by last touch, so the difference is visible.
  • Self-reported attribution alongside both.
  • A named gap between them.

The leadership version of this report is in AI visibility metrics every CMO should ask for.

Say which model produced each figure. Show the reconciliation rather than hiding it. Finance teams do not object to uncertainty; they object to discovering it themselves after signing off on a number that was presented as exact.

For the AI-specific version of this problem, see AI traffic attribution and why AI referral traffic breaks attribution.

Try ThriveStack citedby: Build a revenue report my CFO will accept →

10 · ThriveStack citedby

How does ThriveStackcitedby tie AI visibility to revenue?

ThriveStack citedby follows each buyer from their first touch to a paid invoice, and that includes AI answers. It saves where each visit came from, rolls people up to their company, and joins the deal in your CRM to the payment in billing. You see which channels, and which AI answers, produced revenue.

ThriveStack citedbyAI visibility impact, from first crawl to revenueSix months of illustrative data. Numbered marks match the five steps below.05001,0001,5002,0002,500$0K$10K$20K$30K$40KHUMAN SESSIONSREVENUEMonth 1Month 2Month 3Month 4Month 5Month 612K61K$38K12345DirectOrganicUTM from AI assistantsAI citations in answers (server logs)AI crawler hits (own scale)Revenue, matched to CRMIllustrative data. Source: ThriveStack citedby attribution view (Oct 2026).
Illustrative data. AI crawler hits, tagged clicks, hidden clicks, citations and CRM revenue over six months.

How to read the chart. Each number below matches a mark on the chart.

  1. 1
    Crawlers arrive first.The dashed line is AI bot hits from server logs. It rises before any person shows up.
  2. 2
    Tagged clicks from AI assistants.Clicks from ChatGPT, Perplexity and Gemini that carry a UTM tag. A missing tag erases this part.
  3. 3
    Hidden in Direct and Organic.Untagged AI clicks land in Direct. AI Overviews and AI Mode sit inside Organic.
  4. 4
    Citations in answers.Times an AI answer cited your pages, found in server logs. They show visibility even when no click arrives.
  5. 5
    Revenue follows.Signups and deals matched to the source in your CRM. Revenue lags traffic by a month or two.

What the revenue attribution feature does

Keeps the first touchSaves the source on the first visit and protects it from later form fills.
Rolls people up to the accountFive researchers from one company count as one buying journey.
Joins deals to billingReports closed, paid revenue by source instead of pipeline guesses.
Shows both modelsFirst touch and last touch side by side, with the gap shown.
Counts AI as a channelAI clicks, hidden AI visits and citations from server logs, next to every other channel.
Checks against what buyers saySelf-reported source from signup, reconciled with the tracked data.

Want to look before you connect anything? Explore the product with sample data. No signup needed.

Disclosure: ThriveStackcitedby is our product. The claim we stand behind is narrow and easy to check: it connects citation data to CRM and billing revenue, past a share-of-voice score. Ask any vendor the same question: can you show me a closed-won deal and the AI answer that started it?

Try ThriveStack citedby: Tie my AI visibility to revenue →

See which channels, and which AI answers, produce revenue

ThriveStackcitedby joins first-touch origin to CRM deals and billing records, so your report shows closed revenue by source.

Frequently asked questions

Revenue attribution: FAQ

What is revenue attribution?

Revenue attribution assigns credit for a new customer converting to a paid plan to the marketing touches that produced it, rather than crediting conversions or leads. It requires a durable identifier from first session to closed deal, a CRM field later touches cannot overwrite, and a join to billing so the figure is recognised revenue.

Which attribution model is best for B2B?

Run first touch and last touch side by side rather than choosing one. First touch shows which channels create demand, last touch shows which capture it, and the difference between them is the useful output. Multi-touch needs roughly 100 conversions a month before it produces signal rather than noise.

What is closed-loop attribution?

Closed-loop attribution means the marketing touch and the invoice end up on the same record. It runs from a first-party cookie on the first session, to a hidden form field, to a read-only first-touch field on both the contact and the opportunity, to a join with the billing record.

Why does B2B attribution need account-level rollup?

Because several people from one company research independently and the deal closes once. Lead-level attribution treats them as separate journeys and misprices every channel that reaches the buying committee rather than the person who filled in the form.

How does AI search change revenue attribution?

It removes the click that models depend on. Similarweb found 55.9% of AI-influenced visits arrive through search, and over half through a branded query, so AI influence is credited to other channels unless you capture origin separately. Its study covers ChatGPT recommendations.

Try ThriveStack citedby: Answer these questions with my own revenue data →

Sources

  1. Similarweb, “The Downstream Impact of AI Visibility”, June 2026. ChatGPT recommendations in Finance, Travel and Beauty.
  2. Amsive, “Does LLM Traffic Convert Better Than Organic?”, September 2025. 54 sites, six months of GA4 data, paired t-test p = 0.794.
  3. Conductor, 2026 AEO / GEO Benchmarks Report, published 13 November 2025. 13,770 domains, 3.3 billion sessions, 100 million citations.