All posts

Revenue Attribution: Credit Your Ads With the Money Your CRM Actually Recorded

By Rajesh Kumar, Founder, Attribi ·

Revenue attribution assigns the revenue from closed deals and paid orders to the marketing touches that produced them. It only means something when the revenue figure comes from the system that records the money, such as a CRM's closed-won deal amount or a paid Shopify order, rather than a pixel event value or a form fill. The useful end of it is sending that verified revenue back to your ad platforms.

That last sentence is the argument of this article, and it is the part most definitions skip. A report that says LinkedIn produced 180,000 dollars is interesting. An ad account that bids on the deals worth 180,000 dollars, instead of the form fills that looked like them, is what changes your results.

Three numbers called revenue for one illustrative deal: a 500 dollar pixel event value and a 40,000 dollar open pipeline amount in grey, and the 32,000 dollar closed-won amount in green.

What is revenue attribution?

Revenue attribution is the practice of joining each closed sale to the marketing journey of the buyer behind it, then dividing that sale's actual value among the channels, campaigns or ads in the journey. It answers which spend produced money, not which spend produced activity. The unit is a currency amount from a won deal or paid order, not a count of leads.

Three things have to exist for it to work, and the third is the one teams lack most often:

  1. A record of each person's touches before they became a lead (ad clicks with click IDs, visits, sources).
  2. A durable link from that person to the deal or order that followed, sometimes weeks or months later.
  3. A revenue amount that a finance person would recognise, with a currency, a date and a definition.

Most "revenue attribution" dashboards have the first, approximate the second, and fill the third with whatever number happened to be on the conversion event. That is why two tools can show the same campaign with wildly different revenue.

How is revenue attribution different from lead or conversion attribution?

Lead attribution credits the form fill. Conversion attribution credits whatever event the pixel fired, often with a value someone typed into a tag. Revenue attribution credits the closed sale, valued at what was actually sold. The difference matters because each version rewards a different kind of campaign, and the cheapest leads are frequently the least valuable.

Lead attributionConversion (pixel) attributionRevenue attribution
What is countedForm submissions, sign-upsWebsite events the tag can seeWon deals and paid orders
Where the value comes fromUsually none, or a flat per-lead numberThe event's value parameter, set in the tagThe CRM deal amount or the order total
What it rewardsCampaigns that produce volumeCampaigns that trigger the tracked eventCampaigns that produce buyers
Typical failureJunk leads look like winsA static 50 dollar "lead value" looks like revenueDeals that never link back to a journey
Who sees the outcomeMarketingThe ad platformSales, finance and, if you send it, the ad platform

A common way to draw the line is at the opportunity: marketing attribution stops when a deal is created, revenue attribution follows it to the money. That is a fair line. I would draw it one step later, at the point where the number is recorded by the system that books the sale, because an open opportunity's amount is still a forecast.

Where should the revenue figure come from?

Take the revenue figure from the system of record for the sale: the closed-won deal amount in your CRM for sales-led businesses, the paid order total in Shopify for ecommerce, the confirmed sales order in an ERP such as Odoo. Do not take it from a pixel event value, a form's estimated budget field or an open pipeline amount.

The reason is simple. Every other source is a guess made before the money existed.

  • Pixel event values are set by whoever configured the tag. A "Lead" event worth 50 dollars carries the same 50 dollars for a student and for a buyer with a 60,000 dollar budget.
  • Open pipeline is what a rep hopes will close. Pipeline amounts move up and down for weeks, and a large share of them never close at all.
  • Analytics revenue is only as good as the purchase events that reached it. A lead-generation site can show zero purchase revenue in GA4 while sales closes real business. The GA4 versus CRM revenue guide walks through reconciling the two.

For B2B, the closed-won amount is usually the right default. For ecommerce, the paid order is. For businesses where an order is confirmed before it is paid, decide which milestone you mean and write it down; the Odoo confirmed orders guide covers that choice. Whatever you pick, the definition should fit in one sentence that sales and finance would both sign.

What makes a revenue number wrong after you have it?

A CRM revenue figure goes wrong in predictable ways: the deal amount changes after close, the customer refunds or cancels, one contact produces several deals, the sale closes after the ad platform's upload window, or the currency is guessed. Each one has a fix, and none of them is fixed by choosing a better attribution model.

Deal amounts change after close

A deal marked won at 32,000 dollars gets a scope change and is invoiced at 28,000. If the 32,000 has already been reported and uploaded, both are now wrong. Decide whether your report follows the latest CRM amount or freezes the amount at close, and whether you send corrections to the ad platforms. Google Ads supports adjusting an uploaded conversion: its API documents a RESTATEMENT adjustment for a changed value and a RETRACTION to remove one. The conversion adjustments guide covers how to do that without double counting.

Refunds and cancellations

A refund is revenue that existed and then did not. If your revenue attribution report only ever adds, refunds make it overstate the channels that sell to customers who return things. Keep refunds as their own rows linked to the original sale, so the original attribution is reversed rather than silently deleted.

Several deals for one contact

Renewals, expansions and second purchases all hang off the same person. If your join is "contact to deal", the first deal and the fifth deal both credit the ad click from two years ago. That may be what you want for lifetime value. It is rarely what you want when judging last quarter's campaign. Decide whether repeat deals count, and if they do, label them separately. The mirror-image problem is several contacts on one deal: join each of them to the full amount and one sale is counted three times.

Sales cycles longer than the platform's window

This is the trap that hits B2B hardest. Google Ads will not import an offline conversion uploaded more than 90 days after the associated last click (63 days for enhanced conversions for leads), and the click-through conversion window itself can be set from 1 to 90 days. A six-month sales cycle produces revenue your internal report can credit and Google cannot accept. That is not a reason to stop uploading; it is a reason to also upload an earlier stage, such as a qualified lead, that does land inside the window. The 90-day sales cycle guide works through the options.

Meta has a different clock. Its Conversions API rejects an event whose event_time is more than 7 days before you send it, and if one event in a batch breaks that rule the whole request fails. A won deal has to reach Meta within a week of the time you stamp on it.

Guessed currency

A CRM on a single currency often does not put a currency code on each deal. A tool that fills the gap with "USD" turns a 32,000 pound deal into a 32,000 dollar conversion, and the error then lives inside the ad platform's bidding. Revenue without a known currency should be held, not guessed.

Which attribution model should you apply to revenue?

Any standard model can split revenue: first touch, last touch, linear, position-based or time decay. The model changes how the money is divided between channels, never how much money there is. If the revenue figure is wrong, every model divides the wrong number. Get the source right first, then compare two models side by side.

To make that concrete, take one illustrative 32,000 dollar won deal with three touches: a LinkedIn ad, a non-brand Google search, then a branded search that ended in the form.

ModelLinkedInGoogle non-brandGoogle brand
First touch32,00000
Last touch0032,000
Linear10,66710,66710,667
Position-based (40/20/40)12,8006,40012,800

Every row adds to 32,000 (linear is rounded). The multi-touch attribution models guide runs one deal through all five models, including time decay, and explains what question each one answers. I will not repeat it here, except for one opinion: for revenue, the gap between first touch and last touch is more informative than any single model's answer.

Why send verified revenue back to the ad platforms?

Because a report changes what you think, and an upload changes what the ad platform does. Google, Meta, LinkedIn and the others bid toward the conversions they are told about. If the only conversion they see is a form fill, they find more people who fill in forms. If they see won deals with real amounts, they can find more people who buy, and value-based strategies can weight bigger deals.

This is why I think revenue attribution as a reporting exercise is only half done. The attribution report tells you LinkedIn's leads close at twice the rate of Meta's. Meta does not read your report. Unless the closed-won value reaches Meta as a conversion, Meta keeps optimizing for the leads that did not close.

Two cautions before switching bidding to revenue. Won deals are far fewer than leads, and bidding strategies need volume, so many accounts bid on a qualified stage and report on revenue until won deals are numerous enough. And the value you send should be the recorded amount, not an estimate dressed as revenue; the value-based bidding guide explains why a placeholder can do more harm than no value.

How do you set up revenue attribution?

Define the revenue, capture identity at the lead, keep the lead linked to the deal, pull won amounts with their currency, apply a model, upload the won value to each ad platform, and reconcile monthly. The steps are below. The order matters: a model applied before step three is dividing revenue it cannot actually trace.

  1. Write the revenue definition. One sentence: which milestone (closed-won, paid, confirmed), which amount field, whether tax and shipping are in, whether renewals count, which currency rule applies.
  2. Capture identity when the lead is created. Store the click ID (GCLID, fbclid, MSCLKID and so on) and the email and phone on the CRM record at the moment of the form fill. Hidden form fields that never get populated are the usual place it gets lost.
  3. Keep the lead linked to the deal. In HubSpot that is the contact to deal association; in Salesforce it is the Opportunity Contact Role; for a store it is the customer email on the order. A deal with no linked person cannot be attributed, however good the model.
  4. Pull won deals with amount, currency and date. Do this on a schedule from the CRM, not from a spreadsheet someone remembers to update.
  5. Join the deals to the journeys and apply a model. Report revenue by channel and campaign, with deals that have no traceable click kept in their own row so the total still matches finance.
  6. Upload the won value to each ad platform as an offline conversion, inside each platform's time limit, with the click ID or hashed identifiers you captured in step 2.
  7. Reconcile once a month. Compare attributed revenue to the CRM's won total for the same period and explain the difference: unmatched deals, refunds, currency holds, deals outside upload windows.

What Attribi does, and what it does not

I build Attribi, so here is what it does with revenue, checked against the code, including the parts I would rather not have to write.

What it does:

  • Pulls won revenue from the CRM daily. HubSpot, Salesforce, Zoho, Pipedrive, Freshsales, LeadSquared and Odoo are pulled on a daily schedule. Shopify pushes paid orders to Attribi as they happen, valued at the order's total_price and currency.
  • Uses the recorded amount, and refuses a guess. A won deal with a blank or zero amount is not uploaded. When a CRM pull cannot determine a won deal's currency, that deal is held back rather than sent as dollars.
  • Sends the won value to six ad platforms. Google Ads, Meta, LinkedIn, TikTok, Microsoft Advertising and Snapchat each receive the closed-won event with its value, alongside the lead and qualified stages.
  • Attributes that revenue in its own reports. The attribution view splits each journey's won value by first touch, last touch, linear and position-based (40/20/40). What the dashboard labels "Data-Driven" is a time-decay weighting with a 7-day half-life, not a trained model, and it is on the Scale plan and above.

What it does not do:

  • It does not upload corrections. A refund, a cancellation or a changed amount after close is not sent to Google or Meta as an adjustment. Shopify refunds are not ingested at all yet.
  • Its CRM pulls upload one won deal per lead. Once a lead is closed-won, later won deals for the same contact in HubSpot, Salesforce, Zoho, Pipedrive, Freshsales, LeadSquared or Odoo are recorded in Attribi's deal mirror but not uploaded again. Renewals and expansions from a CRM do not reach the ad platforms as new revenue.
  • It stamps the won event with the time it found the deal, which is the next daily pull for most CRMs, not the close date typed in the CRM.
  • Its reports value unclosed journeys at a 100 dollar placeholder. A journey whose lead has no won value yet is counted at 100 so charts are not empty for new accounts. Read dollar totals as revenue only for leads whose deals have closed.
  • It has no public API and no data warehouse connector. You can export the attribution report by channel as CSV, export leads as CSV, and receive lead.closed_won events on your own HTTPS endpoint through the outbound webhook. There is no BigQuery or Snowflake sync.

CRM and Shopify revenue sources are on the Growth plan and above; the pricing page has the current list. Every new workspace starts with 30 days on Pro with no card, which is long enough to connect a CRM, watch won deals arrive and check them against your own totals. The HubSpot integration and Shopify integration pages describe each connection in detail.

Frequently asked questions

What is the difference between revenue attribution and marketing attribution? Marketing attribution credits marketing touches for an outcome, which can be a lead, a sign-up or a sale. Revenue attribution is the version where the outcome is money: closed-won deals or paid orders, valued at what was actually sold. Every revenue attribution is marketing attribution, but most marketing attribution never reaches revenue.

Can revenue attribution work without a CRM? Yes, if another system records the sale. An ecommerce store's paid orders, or an ERP's confirmed sales orders, can supply the revenue. What you cannot do without some system of record is attribute revenue at all, because a pixel event value or a form field is an estimate, not a sale.

Does the attribution model change the total revenue? No. A model only decides how one sale's value is divided among the touches before it. First touch, last touch, linear and position-based all add up to the same total. If two reports show different totals for the same period, the difference is in which deals were included or how they were valued, not the model.

How do refunds affect revenue attribution? A refund reduces revenue that was already credited to a channel, so a report that ignores refunds overstates the channels whose customers return things. Record the refund against the original sale so its attribution is reversed, and correct any value already sent to an ad platform with that platform's adjustment method.

Can I export Attribi's revenue attribution to a data warehouse? Not directly. Attribi has no public API and no warehouse connector. You can download the attribution report by channel and the leads list as CSV files, or receive closed-won events on your own endpoint through its outbound webhook and load them from there.

Connect your CRM once. Every closed deal reaches your ad platforms.

Attribi pulls stage changes from your CRM, matches each deal to the lead it already recorded, and uploads qualified and closed won conversions to Google, Meta, LinkedIn, TikTok and Microsoft.

No credit card. Free up to 500 visitors a month. New workspaces start with 30 days on Pro.