Case study 01 • B2B GTM analytics

Marketing → Pipeline Analytics

A synthetic B2B analytics case study exploring how website and campaign behaviour can be connected with CRM pipeline while preventing multi-touch interactions from inflating opportunity value.

48.2kwebsite visitors
1,280leads
91opportunities
34won deals
INTERACTIVE DEMO

Interactive B2B attribution lab

Change market or attribution method to recalculate the KPIs and compare pipeline values.

Explore a small fictional CRM extract. Compare recorded lead sources with sources recovered using a prevalidated campaign-to-lead match. The sample supplies match outcomes rather than performing identity resolution. No attribution is invented when evidence is missing. This lab is separate from the larger illustrative funnel below.

8 fictional leads • 5 unique opportunitiesSynthetic data; not client data
Unique leads—
Unassigned leads—
Unique opportunities—
Unique pipeline (DKK)—
Naive touch-sum (DKK)—

Lead source distribution

LeadMarketRecorded sourceVerified key matchReporting sourceOpportunityTouches

Rules: recover only missing sources with a verified campaign key; retain conflicting or unavailable evidence as unassigned. Unique pipeline is deduplicated by opportunity ID within the selected market, and is not allocated to channels. The naive touch-sum intentionally repeats each opportunity amount per touch. No attribution claim establishes causality.

The business question

Marketing wanted to understand whether higher-intent digital activity was translating into commercial pipeline. The complication was structural: one lead could interact with several high-intent campaigns before converting, while Salesforce held one downstream opportunity value. If that opportunity value was attached to every interaction, pipeline contribution looked far larger than reality.

The key modelling decisionSeparate interaction-level influence from opportunity-level value. Interactions can be many-to-one; opportunity amount should be counted once at the appropriate commercial grain.

Model design

I structure the reporting model in four layers so interaction-level influence stays separate from opportunity-level commercial value.

1. Event layerWeb and campaign events with user/session identifiers.
2. Lead layerCRM lead IDs, source, intent and lifecycle stage.
3. Opportunity bridgeLead-to-opportunity mapping, preserving many touches to one opportunity.
4. Reporting layerMeasures for influence, unique pipeline and funnel conversion.

Core logic

The reporting layer keeps two measures side by side: influenced opportunity touches and deduplicated opportunity value. This makes the commercial picture useful without pretending attribution is cleaner than it really is.

Technical proof

The SQL below is a synthetic portfolio example of the grain-control logic. It preserves every high-intent interaction but assigns opportunity value once, at the opportunity grain.

EventsUser/session interactions
LeadsCRM lifecycle and source
BridgeMany touches → one opportunity
OpportunityUnique commercial value
SQL • deduplicate opportunity valueOpen full example ↗
ROW_NUMBER() OVER (
  PARTITION BY opportunity_id
  ORDER BY interaction_ts, interaction_id
) AS opportunity_value_row

CASE
  WHEN opportunity_value_row = 1 THEN opportunity_amount
  ELSE 0
END AS deduplicated_pipeline_amount
DAX • unique pipeline measureOpen measures ↗
Unique Pipeline :=
SUMX(
  VALUES(Opportunity[Opportunity ID]),
  CALCULATE(MAX(Opportunity[Amount]))
)

Representative portfolio logic.

Funnel view

The funnel is intentionally simple. I would use it to identify where acquisition quality changes materially and then cut by market, campaign family, lead source or customer segment.

Why deduplication matters

OpportunityHigh-intent touchesNaive attributed pipelineDeduplicated value
ExampleOPP-052 has four high-intent touches. Repeating a DKK 160k opportunity amount on every touch produces DKK 640k of “pipeline”. The reporting model should preserve all four influences but only DKK 160k of commercial value.

Business recommendation

  • Use influence metrics to understand which campaigns participate in valuable journeys, but use deduplicated opportunity measures for pipeline and revenue reporting.
  • Compare channel volume with downstream lead quality. High lead count is not automatically high commercial contribution.
  • Track stage conversion and time-to-stage alongside pipeline amount so optimisation does not over-reward large but slow or low-probability opportunities.
  • Treat attribution as decision support, not accounting truth. The model should make its assumptions visible.