How to Attribute Marketing Revenue
A practical method for reconciling analytics, CRM, and billing data before comparing marketing attribution models.
Founder, Task Machine
Marketing revenue attribution reconciles customer-journey records with pipeline and collected revenue, then assigns descriptive credit under clearly stated rules. A report you can stand behind keeps source totals, identity joins, lookback windows, unknown traffic, unattributed revenue, and model definitions right in plain sight.
Getting this right matters because channel numbers drive real budget decisions. If your analytics events, CRM deals, and billing records don't agree before credit gets sliced up, a polished dashboard can quietly paper over missing IDs, duplicate contacts, refunds, and mismatched revenue definitions.
Attribution tools assign credit before the data agrees
Most attribution tools jump straight to the last step. They hand out channel credit before anyone verifies whether analytics, CRM, and billing are even counting the same people, dates, currencies, and outcomes.
Unknown traffic is especially easy to sweep under the rug. Cookie loss, device switching, stripped UTM tags, offline touches, and blocked scripts leave genuine gaps. Spreading those gaps across known channels makes the report add up, yet it replaces missing evidence with false confidence.
Model choice trips teams up too. First touch highlights discovery. Lead-creation credit highlights what turned a visitor into a known lead. Last touch highlights the final eligible touchpoint. Position-based splits credit across the path. When those models disagree, they're showing different slices of the journey rather than proving which channel caused the sale.
What the manual process looks like
A clean monthly attribution review moves through eight steps:
- Lock down the reporting window, maturity window, event definitions, revenue basis, currencies, channel mapping, identity rules, lookbacks, and exclusions.
- Export full analytics events with raw campaign parameters, referrers, session IDs, and timestamps.
- Export CRM contacts, qualified leads, opportunities, stages, won values, account IDs, and timestamps.
- Export billing transactions, refunds, currencies, statuses, customer IDs, and collection dates.
- Normalize and reconcile analytics to CRM, then CRM wins to billing using approved deterministic identifiers.
- Keep duplicates, orphans, late events, unknown traffic, unattributed revenue, exclusions, and unexplained gaps intact.
- Run first-touch, lead-creation, last-touch, and your chosen multi-touch rule across the exact same eligible revenue pool.
- Have a second analyst reproduce source and model totals before anyone signs off on the report or bounded next steps.
Reconciliation is the real work. Model numbers only become helpful once your source totals and exceptions sit in the open.
What an agent can automate
An analyst agent and a reviewer agent can take over the recurring heavy lifting:
- Pull complete source populations. The analyst gathers closed-period analytics, CRM, and billing records with raw IDs, filters, extraction timestamps, and the active definitions version.
- Normalize cleanly. Timezones, currencies, refunds, test accounts, duplicate contacts, deal stages, and payment statuses follow your documented rules.
- Reconcile identities and dollars. Deterministic joins output matched, unmatched, duplicate, orphaned, late, unknown, and unattributed tables.
- Compare models side by side. First-touch, lead-creation, last-touch, and position-based views all run on one shared population and tie back to the exact same joined revenue plus stated exceptions.
- Keep gaps visible. Unknown and unattributed revenue stay explicit rows and columns instead of getting smeared across known channels.
- Verify every material figure. The reviewer independently recalculates source totals, joins, and model lines, returning PASS, FAIL, or UNCERTAIN.
- Prepare bounded follow-ups. Tracking audits, channel notes, and experiment proposals arrive with caveats and counterevidence attached for your review.
Neither agent touches live budgets, ad campaigns, targeting, attribution definitions, source records, or closed historical periods.
The guardrails that make it safe
Your definitions doc is versioned by effective date and spells out event meanings, revenue basis, identity keys, source priority, channel maps, lookbacks, direct-traffic rules, and every model formula before a period runs.
Only approved deterministic IDs can link records. Guessing matches from similar names or company titles isn't allowed. Unknown and unattributed amounts stay visible, and closed periods get formal restatements with a stated reason instead of silent overwrites.
Human approval only happens after independent verification. You check source totals, reconciliation gaps, model disagreement, unknown share, caveats, counterevidence, and the exact ledger patch. Signing off records the report and decision. Any budget or operational move happens separately.
Set it up in Task Machine
The Marketing revenue attribution playbook provides a structured starting point for this workflow. You need an active Task Machine workspace with Chat, workspace-management access, and playbook-installation permissions (workspace owners already have these). Until you connect external tools, the workflow runs smoothly on exports you attach.
1. Find the playbook
Open Search in your workspace and type "Marketing revenue attribution". The command center lists Set up Marketing revenue attribution under Playbook setup.

2. Start the conversation
Pick Set up Marketing revenue attribution. Task Machine opens a dedicated Chat with the playbook card and an editable draft request. Review the job and expected outcome, add context about your funnel and tools, and send when ready. Opening the draft doesn't install anything or trigger a run. This walkthrough uses settings that require your approval before installing the proposed playbook.

3. Agree the services
Let the agent know which tools you run. The catalog starts with:
- Product analytics providers: PostHog, Mixpanel. Optional.
- CRM providers: HubSpot, Attio. Optional.
- Billing providers: Stripe, Paddle, Polar, PayPal. Optional.
Talk through any missing connectors or CSV export alternatives before generating the proposal, and verify the proposal includes only the services you picked. Always enter credentials through secure setup, never in Chat.

4. Agree the working brief
Use Chat to align on your inputs, output format, and boundaries before asking for a proposal. Cover the reporting window, conversion and revenue events, models, identity rules, source priority, lookbacks, and known tracking gaps. A monthly B2B review might pair a 90-day lookback with qualified lead, opportunity, won deal, collected cash, and refund events across first-touch, lead-creation, last-touch, and position-based comparisons.

5. Review the proposed playbook
Ask the agent to generate the playbook from your agreed brief, then open the proposal in Chat to review the full instructions and resources it will install. Confirm that source reconciliation runs before model math, Unknown and Unattributed stay explicit, all models share one population, the reviewer reproduces totals independently, and approval never authorizes budget changes. Ask for edits if anything is missing or shifts the scope.

6. Approve and prepare the first work
Click Approve on the proposal in Chat once it matches your brief. Task Machine installs the reviewed configuration and keeps the approval record intact. If your autonomy settings allow direct installation, inspect the installed configuration closely anyway.
Complete any remaining secure service setup from the installation details in Chat, or return to those items later in Inbox. Prep your definitions doc and exports before starting the first task or workflow. Installing the playbook doesn't authorize modifying external systems beyond what you agreed. Confirm every schedule's cadence and timezone, clear any pending schedule setup before it runs, and keep in mind that readbacks wait for their agreed observation window and source data. Check the tracker or results document before cycle one so evidence and decisions have a permanent home.

What good looks like
A trustworthy attribution report clears three checks:
- Source totals reconcile in the open. Gross billing, refunds, net billing, CRM won value, joined revenue, exclusions, and unexplained variances stay traceable line by line.
- Every model ties to one population. Channel credit plus Unknown, Unattributed, and listed exclusions adds up to the exact same eligible total.
- Conclusions respect model disagreement. Caveats and counterevidence stay upfront instead of cherry-picking whichever model flatters a favorite channel.
Treat the unknown share as a confidence guardrail, not a metric to game. Acceptable levels depend on your funnel and privacy limits, and sudden swings deserve an investigation.
How the loop learns
Every recurring cycle closes a mature reporting period under one versioned definitions doc. Analytics, CRM, and billing act as the source systems, joined net revenue reconciles before credit splits, and qualified pipeline plus won deals provide downstream context. Duplicate, orphan, late, Unknown, Unattributed, refund, and variance counts monitor data health.
The same revenue pool runs through first-touch, lead-creation, last-touch, and your position-based model. Key confounders include tracking changes, identity loss, UTM updates, sales-cycle lag, currency swings, offline touches, stage redefinitions, and late billing updates.
After the reviewer reproduces the numbers, a person decides whether to open a tracking investigation, keep the current read, or propose a separate channel experiment. Attribution alone never proves incrementality. Budget shifts that require causal proof still belong in a holdout, randomized test, geo split, or similar experiment.
Common questions
Which attribution model is best? No single descriptive model wins everywhere. Compare several over the exact same population and match the rules to your question. When you need causal proof, run an experiment.
What should happen to unknown traffic? Keep it visible as Unknown. Never redistribute it across known channels or guess a source with a model.
Should CRM won revenue equal billing revenue? Not automatically. Bookings, collected cash, refunds, timing lag, currencies, and renewals all create real gaps. Name your revenue basis and reconcile the difference explicitly.
Can the agent change campaign budgets from the report? No. It can draft a bounded takeaway or experiment proposal, your approval logs that decision, and any live budget or campaign change happens separately.
How are historical reports corrected? Record a formal restatement showing the definitions version, reason, revised totals, approver, and date. Never quietly overwrite a closed period.