RevOps sales and marketing alignment architecture that connects campaigns to revenue
Closed-loop reporting is a report that shows closed-won revenue against the campaign that created the opportunity, not just the number of leads a campaign produced. The single architectural decision that makes it possible is this: carry the campaign source and the opportunity on the same record, from first touch to close. Everything below is about wiring three systems, the CRM, the marketing automation platform and the reporting layer, so that decision holds under real operating conditions.
If you want the organisational side of this first, our sales and marketing alignment best practices article covers the process layer. This is the configuration layer.
The integration problem, stated precisely
Most stacks break in the same four places, and each one is a data model problem rather than a tooling problem.
- Leads reassigned on the wrong field. Routing rules fire on a field the marketing platform owns, the CRM overwrites it on sync, and the lead lands with the wrong owner.
- Campaign source lost at conversion. The source lives on the lead. The lead converts. The opportunity is created fresh and inherits nothing.
- Duplicates created on re-import. The automation platform pushes a new lead record because the email matched but the CRM ID did not.
- No way to join a campaign to revenue. The report can count leads per campaign and revenue per rep. It cannot count revenue per campaign.
Here is the failure in the wild. A B2B software company runs a webinar. Two hundred registrations sync into the CRM as leads with a source of “Webinar – March”. A prospect attends, downloads a pricing guide, and books a demo. The SDR converts the lead and creates an opportunity. The opportunity record has an owner, an amount and a close date. It has no campaign field, because nobody added one. Six weeks later the deal closes at €24,000. The CMO asks which campaigns produced revenue last quarter and the answer is a spreadsheet reconciliation that takes two days and is wrong by the second run.
Reference architecture for a connected stack
Five layers. Each has one job.
| Layer | System | Job | Direction of sync |
|---|---|---|---|
| System of record | CRM | Owns the account, contact, lead, opportunity and the canonical IDs | Source of truth |
| Engagement | Marketing automation | Tracks touches, sends campaigns, scores behaviour | Writes activity and campaign membership, reads contact data |
| Identity resolution | Shared rule set | Decides whether two records are the same entity | Runs on every write |
| Field contract | Both systems | Defines which field is authoritative for which value | Documented, versioned |
| Reporting | BI or CRM reporting | Joins campaign membership to opportunity revenue | Read only |
The CRM is the system of record because it owns the money. The opportunity, the amount and the close date only exist there, so any field that needs to join to revenue has to live there too or be copied there. The marketing platform is the engagement layer because it sees behaviour the CRM never will: email opens, page visits, form fills on gated content. It should not own routing fields, and it should not be the place a source value is finally decided.
The field contract is the part teams skip. Here is one you can copy.
| Field | Authoritative system | Written by | Notes |
|---|---|---|---|
| CRM | CRM | Read-only in automation after creation | |
| Lifecycle stage | Both, negotiated | Automation writes MQL, CRM writes SQL and beyond | Single field, one owner per stage band |
| Lead source | CRM | Automation writes once at creation, never again | First touch, immutable |
| Campaign member status | Automation | Automation | Synced to CRM as a related list |
| Owner | CRM | CRM routing rules only | Automation never writes this |
| Opportunity amount | CRM | Sales | Never synced out |
Two rules make this hold. First, first-touch source is written once and never overwritten, so last-touch attribution becomes a separate field rather than a fight over one. Second, ownership is written by exactly one system. If the automation platform can write the owner field, it will eventually write it wrong.
Setting up closed-loop reporting, step by step
Closed-loop reporting needs a campaign member object that survives the lead-to-opportunity conversion. In Salesforce terms that is Campaign Member, in HubSpot it is the contact-to-campaign association. Either way, the object has to be attached to the contact, not the lead, or it dies at conversion.
Step one, define the campaign member object
Fields: Campaign ID, Member ID, Contact ID, Account ID, first touch date, last touch date, member status, and response type. Member status values should be a fixed picklist: Sent, Responded, Registered, Attended, Converted, Influenced, Won, Lost. Free-text statuses are the reason campaign reports never reconcile.
Step two, carry the source to the opportunity
At conversion, copy the first-touch campaign ID onto the opportunity as a lookup field. Also copy it to a secondary field for last-touch campaign. Two fields, not one. This is the decision from the opening paragraph, and it is the one most stacks get wrong.
Step three, capture loss and win reasons
Add two picklists to the opportunity. Closed-won reason and closed-lost reason, both required on stage change. Without them the report tells you which campaigns produced revenue but never why the rest stalled, which is the more useful half.
Step four, build the report
Group by campaign, sum opportunity amount where stage is closed-won, and divide by campaign cost for return on spend. Add a second grouping by closed-lost reason to see which campaigns attract the wrong buyers.
The full field list to hand an implementation team:
- Contact: CRM ID, email, account ID, first-touch campaign ID, last-touch campaign ID, lifecycle stage
- Campaign member: campaign ID, contact ID, account ID, member status, response date, first touch date
- Opportunity: CRM ID, account ID, first-touch campaign ID, last-touch campaign ID, amount, close date, stage, closed-won reason, closed-lost reason
- Account: CRM ID, domain, territory, owner
Identity resolution and data hygiene
Email-only matching breaks in B2B because one account has six stakeholders and each one is a different contact with the same account. Match on email alone and you get six unrelated records with no way to see that the account is in market.
Match on this order instead:
- CRM ID if present. This is the only certain match.
- Account domain plus normalised company name, to attach a new contact to an existing account.
- Email as a last resort, and only to flag a possible duplicate for review, never to auto-merge.
Concrete case. Priya and Tom both work at northgate.io. Priya registers for a webinar in January, Tom downloads a whitepaper in March. Under email matching they are two unconnected leads, and neither triggers an account-level alert. Under domain matching they sit on the same account record, the account shows two engaged contacts, and the account-level score crosses the threshold that puts it in a target list. Same two people, different outcome, decided entirely by the matching rule.
At merge, the surviving record keeps the earliest first-touch source and the most recent lifecycle stage. Never let a merge overwrite first touch with a later value, or your attribution quietly rewrites itself every time two records combine.
The routing and SLA automation layer
Routing sits on top of the connected data, and it only works if the owner field has one writer. Round-robin for inbound, territory for named accounts, and a fallback queue for anything that matches neither.
The SLA layer is what makes routing mean something. When a lead is assigned, create a task with a due time. If the task is not completed by then, escalate to the manager and log the breach. If the lead is still untouched after a second window, return it to nurture automatically and reset lifecycle stage to nurture, not to MQL.
Worked example. A lead comes in from a paid search campaign, routes by round-robin to a rep who is on holiday. The task breaches at four hours, escalates to the sales manager, and is reassigned. The rep returns, sees nothing, does nothing. At the 48-hour mark the automation rule fires, the lead re-enters the nurture sequence, its lifecycle stage drops back, and it will exit nurture again when it hits the engagement threshold. No human chased it. The source field never changed, so when it eventually converts the original campaign still gets credit.
That last point is the whole reason this layer belongs in the same article as the data model. Routing that rewrites the source field destroys the reporting you just built.
Governance, who owns what
Four named owners, one monthly meeting.
- CRM owner (sales operations): fields, routing rules, conversion logic.
- Automation owner (marketing operations): campaigns, scoring, nurture, member statuses.
- Definitions owner (RevOps lead): the field contract, lifecycle stage definitions, win and loss reasons.
- Reporting owner (RevOps analyst): the closed-loop report and its reconciliation.
The monthly loop review does three things. Reconcile campaign spend against closed-won revenue. Review SLA breach rates by rep and by campaign. Review the field contract for changes anyone made without telling the group. Thirty minutes, same agenda, every month. If you want to see how this maps onto tooling, the sales and marketing alignment software page sets out the joined-up model we run, with the CRM as the shared record across lead generation, paid ads, SEO and managed social.
Frequently asked questions
Do we need a CDP
No, unless you have more than three systems writing contact data or a genuine offline-to-online identity problem. For a CRM plus one marketing automation platform, the field contract and matching rules above do the same job at a fraction of the cost.
Can we do this with native integrations only
Yes for most cases. Native connectors handle the sync, and the field contract handles the logic. You only need middleware when you want transformation in flight, such as normalising domains before matching, or when a system has no native connector.
What if sales runs a separate CRM
Pick one as the system of record for the opportunity and sync the other read-only into it. Two CRMs both owning the opportunity amount is the fastest way to end up with two revenue numbers and no agreed one.
How do we handle multiple marketing automation instances
One instance owns the contact record and the campaign member object. The others write campaign membership into it through the API. If two instances both write lifecycle stage, you will spend every monthly review explaining why the funnel numbers moved.
Start with the field contract. It is one page, it takes an afternoon to agree, and it is the difference between a report that counts leads and a report that counts revenue. If you want that wired for you, our team builds it as a single connected system, with the CRM at the centre, at smarketingcloud.comand the full model is on the sales and marketing alignment software page.
Frequently asked questions
Do we need a CDP to achieve closed-loop reporting?
No, a CDP is not required. You can achieve closed-loop reporting with a well-configured CRM and marketing automation platform, as long as you maintain a shared identifier and sync campaign data bidirectionally.
Can we do this with native integrations only?
It depends on your platforms. Many native integrations are one-way or lack custom object sync, so you may need middleware or custom API work to carry campaign source and opportunity data on the same record.
What if sales runs a separate CRM?
If sales uses a different CRM, you must establish a master system of record and sync opportunities to marketing automation via a custom integration or iPaaS. Without this, closed-loop reporting is impossible.
How do we handle multiple marketing automation instances?
Consolidate to one instance if possible. If not, designate one as the master for campaign data and sync contacts and campaign members to it from the others, using a shared unique identifier.
Next step
If this is the kind of problem you are solving right now, see how us handles it.






























