Most attribution reporting is built around a person: the contact who filled in the form gets the credit. That works when one person makes one purchase. It falls apart when a business sells to practices or companies that keep reordering for years, with different people placing the orders.
I built a company-level attribution engine for a B2B medical supplier in exactly that position. Here’s how it works and what it reports.
Why the contact is the wrong unit
In a reorder business:
- The buying relationship sits with the account, not any one person.
- The person who first responded to a campaign may never place an order.
- Most of the revenue arrives later, as reorders, long after the first touch.
Crediting individual contacts spreads the value across whoever happened to be on the record, and it says nothing about which activities grew the account over time.
How the model works
- Rebuild the relationships. Every night, the engine extracts the full database from HubSpot and rebuilds company, contact and touch relationships.
- Apply recency and reorder logic. Touches are weighted by how recent they are, and reorders are recognised as part of the same relationship.
- Join real costs. A cost sheet records what each event, campaign and channel cost, so revenue can be set against spend.
- Write results back to HubSpot. The finished numbers land in HubSpot reports, where the team already looks.
It runs on a managed server rather than inside HubSpot, because the job spans the entire database every night.
Four reports, four questions
| Report | Question it answers |
|---|---|
| Acquisition | Which touch opened the relationship, and what was the first order worth? |
| Full value | How much revenue has the relationship produced, including every reorder? |
| ROI by initiative | What did each event, campaign and channel return against what it cost? |
| Activities to closure | Which activities correlate with deals that close? |
Separating acquisition from full value is the important part. A trade show might open few relationships but produce the most lifetime revenue, and you only see that when the two are measured separately.
Keep costs where people can maintain them
The client keeps costs in a cost sheet in a familiar place, and an automated one-way sync feeds it into the engine. Nobody has to learn a new tool to update what an event cost.
Clean associations first
Company-level attribution is only as good as the links between contacts and companies. Before the model can be trusted:
- Match unassociated contacts to companies, using fuzzy name matching and email domains.
- Flag contacts that match more than one company for a person to review, rather than guessing.
Is this worth building for you?
It’s worth it when most of your revenue comes from repeat orders, when relationships belong to accounts rather than individuals, and when you need to defend marketing spend with real numbers. If you sell one-off purchases to individuals, simpler contact-level reporting will usually do.
If your reports can’t tell you what your best accounts are worth over time, or what brought them in, that’s the gap a company-level model fills.
Need this done for you?
Source data you can trust and ROI reporting that goes past first and last touch.
Attribution & ReportingWritten by Ali Ismail, who runs TechPad and builds HubSpot integrations, migrations and automation.