Headstream

B2B marketing attribution: how to measure long sales cycles

Updated 2026-11-02

B2B marketing attribution connects revenue to the marketing that influenced it, for companies that sell to other companies. The idea is the same as any marketing attribution. The buying process is what makes it harder.

A consumer might see an ad and buy that afternoon. A B2B buyer might read your blog in March, bring it up with their team in May, ask a peer in a Slack group in June, and sign in August. Three people could be involved, on four devices.

This guide covers why B2B attribution is different, and what to do about it at your size.

Why B2B attribution is hard

Sales cycles are long. A deal can take months. Every extra week adds touchpoints and increases the odds that a cookie gets cleared or a person switches devices. If your lookback window is shorter than your sales cycle, early touches vanish from your reports.

Buying groups involve several people. The person who finds you isn't always the person who pays. A team lead reads your content, a director watches a demo, and finance approves the invoice. Web tracking sees separate visitors. Nothing links them unless a tool matches them to one company.

Key moments happen offline. Conversations, events and sales calls don't leave a web trail.

Peer research is invisible. B2B buyers ask colleagues, read private communities and listen to podcasts. Most of that is dark social. You see the visit that follows, often marked as Direct.

Sales and marketing share the credit. A rep worked the deal for three months. Marketing reports can end up claiming revenue that sales feels it earned, and that causes arguments.

Decide what you're measuring

Start with the kind of B2B company you are, because the right approach depends on it.

Self-serve or product-led. Buyers sign up and pay online, often with a card. The person with the cookie is usually the person who pays, or works with them. Your data is simpler. You can attribute directly from billing, and your CRM may not matter much.

Sales-assisted. People sign up or book a demo, then a rep helps close. You care about signups as well as revenue. You'll need to identify people at signup so their visit history joins their account.

Enterprise sales. Deals run through a CRM with several contacts and stages. Here you need account-level reporting across a buying group.

A practical B2B attribution setup

These steps work for most companies, in this order.

1. Clean up your UTMs

Agree on naming and write it down. Use one format for source, medium and campaign. Bad tags cause more wrong reports than bad models do.

2. Set the right lookback window

Find your typical time from first visit to closed deal. Add a margin. If most deals close within 120 days, a 90-day window will cut off early visits for many of them. Use something like 150 days.

3. Identify people early

Fire an identify call when someone signs up, books a demo or fills in a form. That ties their anonymous visits to a real person. Without this step, a buyer's research looks like it belongs to a stranger.

4. Ask how they heard about you

Add a how did you hear about us question to your signup or demo form. In B2B this is often your most useful channel data. Your sales team can ask too and record the answer.

5. Report across several models

Compare attribution models side by side. First touch shows what starts relationships, which is often underrated in B2B. Last touch tends to reward branded search and email. U-shaped is a sensible default for long journeys. See our guide to multi-touch attribution.

6. Measure against revenue

Leads are an easy number to inflate. If you can, judge channels by closed revenue. Include refunds and cancellations. You may want to report pipeline as well, since B2B revenue lags. A campaign from this quarter may not close until next quarter.

An example

Here's a made-up example. A company sells a B2B tool for $6,000 a year. Its marketer reviews last quarter:

ChannelLast touchFirst touchSelf-reported
Branded search$30,000$6,000$6,000
Direct$18,000$30,000$0
Blog and organic$6,000$36,000$24,000
Podcast sponsorship$0$0$24,000
Friend or colleague$0$0$12,000
Email$18,000$0$6,000
Total$72,000$72,000$72,000

Last touch makes the podcast look worthless. First touch misses it too, because listeners typed the URL and were recorded as Direct. In the survey, buyers worth $24,000 named it.

So the marketer keeps the podcast, stops crediting branded search for creating demand, and invests in the blog. That's a decision you can only reach by reading all three columns together.

What to do about buying groups

Web analytics can't fully solve buying groups unless a tool matches people to companies. You have a few options:

  • Use a dedicated B2B platform. HockeyStack and Dreamdata join CRM and web data at the account level. Pricing for attribution on both is custom.
  • Do it in a spreadsheet. For a low number of deals, review each closed deal by hand. Note who came first and how.
  • Ask at closing. Have reps record which people and channels mattered on each deal.

For many teams with fewer than 20 deals a quarter, the manual review teaches more than software will.

Mistakes to avoid

Using a 30-day window. Short windows hide the channels that start B2B journeys.

Trusting last touch alone. It's likely to reward branded search, and that can lead you to cut the content that created the demand.

Counting influence as cause. A channel that appears in many journeys didn't necessarily change those outcomes.

Reporting only marketing-sourced revenue. Sales and marketing work on the same deals. Share the picture and skip the fight over who gets credit.

Where Headstream fits

Headstream works well for B2B SaaS that sells through Stripe, including self-serve and product-led companies. You get revenue attribution across four models, with a lookback you can adjust. You also get self-reported attribution next to your tracked data. Connecting Stripe is in beta.

It isn't built for enterprise sales. It has no HubSpot or Salesforce connection and no company matching, so it can't report at the account level. If that's what you need, see our marketing attribution tools comparison for what to look at instead.

Questions

What is B2B marketing attribution?
It's connecting revenue to the marketing that influenced it, for companies selling to other companies. It has to handle long sales cycles, several buyers and channels tracking can't see.
What's the best attribution model for B2B?
U-shaped is a sensible default for long journeys, but compare it with first touch and last touch. First touch often shows the channels that start relationships, which last touch misses.
How long should the lookback window be for B2B?
Longer than your typical time from first visit to closed deal. If most deals take 120 days, a window of about 150 days will keep the early touches.

See which marketing makes money.

Get started free