All posts

Measure ROI on Paid Leads in Your CRM: The Three Joins, the Formulas and a Worked Month

By Rajesh Kumar, Founder, Attribi · · Updated

Two paid channels in one illustrative quarter. Meta has the cheaper lead at 60 dollars against Google's 120. Joined to the CRM, Google closes nine deals for a ROAS of 3.0x and Meta closes four for 1.5x. The cheaper lead is the worse investment.

Your ad platform knows what a click cost. Your CRM knows what a deal was worth. Neither knows the other number, and ROI is the ratio between the two.

To measure ROI on paid leads in your CRM you need three joins that no single system holds: click to lead, lead to deal, and deal to spend. Once those hold, the arithmetic is four short formulas computed on a cohort of clicks, not on a month of closes, because deals close weeks after the click that paid for them. Every number below is illustrative.

What does it take to measure ROI on paid leads in a CRM?

Paid-lead ROI is the gross profit from the deals that paid clicks produced, minus the ad spend that bought those clicks, divided by that spend. It can only be computed where the click and the deal meet, which is the CRM, because the ad platform stops seeing a lead at the form and the CRM never saw the click. Joining the two takes three joins, each in a different system.

The three joins behind paid-lead ROI. Join 1, click to lead: a click ID or UTM captured on the form into the CRM contact. Join 2, lead to deal: the CRM's own association between contact and deal. Join 3, deal to spend: the campaign and click month on the deal matched to the cost report.

Join 1, click to lead, is the one most teams have never built. The platform's click ID (gclid, fbclid, li_fat_id, ttclid, msclkid) reaches your landing page in the URL and vanishes on the next page unless a hidden form field stores it on the contact. The mechanics are in how to capture the GCLID in your CRM; this article assumes the field exists.

Join 2, lead to deal, is the one the CRM already does, with a catch. In HubSpot a deal is linked to a contact through an association; in Salesforce an Opportunity reaches its contact through the OpportunityContactRole junction, not a field on the Opportunity. A deal a rep created from a phone call often has no contact attached, and so no join 1 either. Those deals need a row of their own, which comes below.

Join 3, deal to spend, is arithmetic. You never join a deal to a single click's cost. You join the cohort of clicks from one campaign in one month to the spend for that campaign in that month.

Which CRM fields carry the numbers?

From every deal you need the amount, its currency, the date it was won, and a won flag that is not a date. Checked on each vendor's page on 2026-10-12:

CRMAmountCurrencyWon dateWon flag
HubSpotAmount, "the total value of the deal in the deal's currency"Currency, shown only when the portal has multiple currencies set upClose date, "the day the deal is expected to close, or was closed"Deal stage
Pipedrivevaluecurrencywon_time, settable only when the status is wonstatus: open, won, lost or deleted
SalesforceAmountCurrencyIsoCode, present only on multi-currency orgsCloseDateOpportunityStage.IsWon

Two traps hide in that table. HubSpot's close date is filled on open deals too, because it doubles as the expected close date, so filter on stage before you filter on date. Competing guides that say "sum Amount where Close date is in the month" are summing open pipeline. And HubSpot's "Amount in company currency" is recalculated from the account's exchange rates until the deal closes, so an open deal's converted amount drifts. The Salesforce row comes from how our own pull reads Opportunities, since Salesforce's reference refused my request today; a single-currency org has no CurrencyIsoCode field at all.

What are ROI, ROAS, CAC and payback for lead generation?

Four formulas, all over the same cohort of clicks:

  • Cost per lead (CPL) = spend ÷ leads. Every dashboard shows it. It says nothing about revenue.
  • Customer acquisition cost (CAC) = spend ÷ deals won from that spend.
  • Return on ad spend (ROAS) = revenue from deals won ÷ spend. A ratio, written 3.0x.
  • Return on investment (ROI) = (gross profit from deals won minus spend) ÷ spend. Revenue in place of gross profit overstates it by exactly your cost of delivery.
  • Payback = CAC ÷ monthly gross profit per customer, in months.

One illustrative quarter of clicks, two channels, one currency, measured three months after the quarter ended so the cohort has had time to close. Gross margin is 60 percent and contracts are twelve months, paid monthly.

January to March clicks, measured 30 JuneGoogle AdsMeta Ads
Spend36,00024,000
Clicks9,00016,000
Leads300400
CPL12060
Qualified6040
Deals won94
Revenue108,00036,000
Gross profit at 60 percent64,80021,600
CAC4,0006,000
ROAS3.0x1.5x
ROI80 percentminus 10 percent
Payback6.7 months13.3 months

Read the CPL row and Meta wins by half. Read any row below it and Google wins. Meta's leads are cheaper and worse, the one thing a platform dashboard cannot show, because the platform never learns which leads became deals. Why its counts cannot stand in for deals is the subject of why ad platforms optimise on the wrong conversions.

Payback is the row finance asks about. Google's average deal is 12,000 over twelve months, so 600 a month in gross profit, and 4,000 of CAC is repaid in 6.7 months. Meta's is 9,000, so 450 a month, and 6,000 of CAC takes 13.3 months: on a twelve-month contract, that channel has not paid back when the renewal conversation starts.

Why cohort by click month, not close month?

The same four months read two ways for one illustrative channel spending 12,000 a month. By close month, January shows 2 deals and 2.0x and the following months a flat 3.0x. By click month, January shows 4 deals and 4.0x, February 3.0x, March 2.0x and April 1.0x, with March and April still maturing.

A deal that closes in March was usually paid for in January. Most lead-gen ROI guides divide a month's closed revenue by the same month's spend, which is one month's harvest over another month's planting. The result looks stable and means nothing.

Date every deal by the month of the click that produced it, which join 1 gives you, and divide by that month's spend. One illustrative channel, 12,000 a month, average deal 12,000, read both ways as of 30 April:

MonthSpendDeals closed in the monthROAS by close monthDeals from this month's clicks, to 30 AprilROAS by click month
January12,00022.0x44.0x
February12,00033.0x33.0x
March12,00033.0x22.0x, still maturing
April12,00033.0x11.0x, still maturing

Both columns count eleven deals. They disagree about every month. By close month January is the worst month, and one of its two deals came from a December click the quarter never paid for. By click month January is the best month, and the recent months look weak only because their deals have not closed yet.

That is the cost of cohorting honestly: the newest cohort is always incomplete. Write a maturity rule on the report, for example "cohorts are reported at 90 days", and treat anything younger as a forecast. The platform-side version of the same lag, where the click leaves the import window before the deal closes, is in sales cycles longer than 90 days in Google Ads.

What do you do with open pipeline?

Two defensible answers. State both, then pick one and label it.

Closed only. Revenue counts when the deal is won. The March cohort above has 2 wins worth 24,000 against 12,000 of spend: 2.0x. This is the number finance can tie to invoices.

Expected value. Add the open deals, each weighted by the historical rate at which deals at that stage go on to win. Say the March cohort also has 6 qualified deals still open. In the quarter table, 60 qualified leads produced 9 wins, a 15 percent rate, at an average of 12,000. Expected value is 24,000 plus 6 × 0.15 × 12,000, which is 34,800, or 2.9x.

Report closed only as the ROI figure and put expected value in a separate column headed "forecast". The media buyer needs the forecast to act before a cohort matures; finance needs the closed figure to believe anything on the page. The mistake is one column that silently mixes them. Never use the amount a rep typed on an open opportunity as its value; that is optimism, and why it should not reach a bidding system either is in value-based bidding for lead generation.

How do you handle more than one currency?

You do not add them. A 10,000 dirham deal and a 10,000 dollar deal are not 20,000 of anything.

Keep the deal in its own currency in the CRM, as the field table shows every CRM does. Convert at the reporting layer only, with one stated rate per month written on the report. Spend follows the same rule: a Google Ads account billed in dirhams reports dirhams, and Google's conversion settings page (verified 2026-10-12) says values "will always be reported to you in your Google Ads billing currency", converting anything else at the average daily rate. A ROAS inside one account is already in one currency; a ROAS across two accounts billed differently is not, until you convert. If you cannot state the rate, report one ROAS per currency and no blended figure.

How much does the attribution model move the answer?

Join 1 attaches a deal to the click that produced the lead, the last paid click before the form. That is last-touch attribution, the default here because it is the join you actually have. Other models move the answer. Suppose three of Google's nine deals in the quarter table had a Meta click a week before the Google click: two touches each, same 12,000 deal. Under last touch Google is 3.0x and Meta 1.5x. Under first touch Google falls to 2.0x and Meta rises to 3.0x. Under position-based, often called U-shaped, a two-touch journey splits 50/50, so Google is 2.5x and Meta 2.25x.

Meta's ROAS doubles between the first two readings without a single deal changing. Which reading is right is the wrong question; how to read the disagreement is the subject of five attribution models, one deal, five different answers. For the ROI method the rule is simpler: pick one model, print its name on the report, and never compare a first-touch number with a last-touch one.

What does the spreadsheet version look like?

With no tool, three tabs and four formulas do the whole job, and the sheet is the method with nothing hidden.

  1. Spend tab, one row per platform per campaign per day: date, platform, campaign, spend, currency. Export it from each platform's cost report.
  2. Leads tab, one row per lead: lead_id, email, created_at, click_platform, campaign, click_month. Platform and campaign come from join 1; click_month is =TEXT(created_at, "yyyy-mm"), or the click timestamp's month if you stored it.
  3. Deals tab, one row per deal: deal_id, email, amount, currency, stage, won_date, plus click_platform and click_month borrowed from the lead with =XLOOKUP(email, Leads!email, Leads!click_month).
  4. Report tab, one cell pair per platform per month:
spend   =SUMIFS(Spend!spend, Spend!platform, "google_ads", Spend!month, "2026-01")
revenue =SUMIFS(Deals!amount, Deals!click_platform, "google_ads", Deals!click_month, "2026-01", Deals!stage, "closed_won")
ROAS    =IFERROR(revenue / spend, "")

CAC is the same with COUNTIFS in place of SUMIFS. Add a rate column before you add a second currency. The sheet's weakness is join 1: it keys on email, and emails do not always match between the form and the CRM. If more than a few percent of deals fail to match, you need hashing and a phone fallback, which how to hash emails for conversion uploads describes.

Where does the method break?

Three places, every time.

Deals with no click. Phone calls, walk-ins, referrals, a rep's own prospecting. They have no join 1 and no honest platform. Give them a row labelled "no click" and keep them in the revenue total so finance's number still reconciles. Never spread them across paid channels in proportion to the channels' other deals; that invents attribution the data does not contain. If the no-click row is more than a third of revenue, the ROI table describes a minority of the business and its title should say so.

Phone leads. A caller never filled the form, so no click ID was stored. Call tracking that swaps the displayed number per campaign recovers the campaign; without it, phone leads belong in the no-click row. Phone numbers stored without a country code also fail to match on Meta, so collect them in international format from the start.

Duplicates. One person, two form fills, two leads. One contact, two deals. Two contacts for one buyer because sales created a second record. Dedupe leads on email first and phone second before join 2, and decide in writing whether a second deal for the same contact is new revenue (a renewal usually is) or the same acquisition (a split invoice usually is). Platform conversion counts carry the same problem, which is why how ad platforms count and report conversions differently rules them out as the deal count.

How Attribi computes this, and where it stops

I build Attribi, so here is what the code does, read today, including the parts I would rather say plainly than have you find.

Attribi stores every touch as its own row, with the platform recovered from the click ID on the landing URL, and ties them to the lead at form submit, so join 1 is a stored journey rather than a single field. Attribution runs per journey: each conversion event closes one, and its value is the matched lead's closed-won amount from your CRM. Five models run over the same journeys: first touch, last touch, linear, position-based at 40/20/40, and time decay with a seven-day half-life, which the product labels data-driven. First and last touch are on every plan, linear and position-based from Growth at 99 dollars a month, time decay from Scale at 199.

Spend is pulled per platform, account, campaign and day with the account's currency on every row. Totals are grouped by currency and never summed across them; a workspace with spend in two currencies gets a lead count where the dashboard's ROAS tile would be, not a blended number.

Where it stops:

  • A journey whose lead has no closed-won value yet is valued at a placeholder of 100 so the charts are not empty. Read the revenue figures only once your CRM has marked deals won.
  • The dashboard's 30-day revenue sums closed-won amounts on leads created in the window with no currency check on the revenue side. Spend is currency-safe; revenue is not yet.
  • Microsoft Ads spend is not imported, so there is no Microsoft cost, CAC or ROAS. There is no call tracking either; phone leads reach Attribi only through the CRM.
  • The reports window is 7, 30 or 90 days of touches, a click-window view. A cohort table by click month is not a report Attribi produces today; the CSV export gives you the rows to build one.
  • A closed deal whose currency cannot be determined from the CRM is held back rather than guessed, and a second won deal for a contact already marked won is not counted again.

CRM connections are on the Growth plan. Every new workspace starts with 30 days on the Pro plan, no card required, long enough to see one cohort of clicks next to its closed deals.

Frequently asked questions

What is closed-loop attribution? Closed-loop attribution is the practice of joining the ad click that produced a lead to the deal that lead became in the CRM, and then sending the deal's outcome back to the ad platform as an offline conversion. The first half gives you ROI by channel. The second half gives the platform a deal signal, which changes its bidding only once that conversion is the campaign's goal and has enough volume.

What is the difference between ROI and ROAS for lead generation? ROAS is revenue from deals won divided by ad spend, a ratio such as 3.0x. ROI is gross profit from those deals minus the spend, divided by the spend, a percentage. A channel can show a ROAS above 1.0x and a negative ROI at the same time if the margin on what it sells is thin.

Should I measure paid lead ROI by click month or by close month? By click month. Dating a deal by the month of the click that produced it divides revenue by the spend that actually bought it. Close-month reporting divides one month's deals by another month's spend, and makes the newest months look stable when they are incomplete.

How do I calculate customer acquisition cost from CRM data? Divide a cohort's ad spend by the number of deals won from that cohort's leads, using the click ID or UTM stored on the contact to tie each deal back to its platform and month. In the illustrative quarter above, 36,000 of spend and 9 deals gives a CAC of 4,000.

Where do phone and referral deals go in a paid-lead ROI report? In a separate row labelled no click, kept inside the revenue total so the report still reconciles with finance. They should not be spread across paid channels in proportion to those channels' other deals, because that assigns credit the data does not support.

Can I add revenue in two currencies to get one ROAS? Not without converting first. Keep each deal in its own currency, convert at the reporting layer with one stated monthly rate, and print the rate on the report. If you cannot state a rate, report one ROAS per currency and no blended figure.

The takeaway

The joins are the hard part. Store the click ID on the lead, let the CRM link the lead to the deal, and match the deal's campaign and click month to the spend that bought it. Then cohort by click month, report closed-only with a labelled forecast beside it, keep currencies apart, and name the model on the page. The sheet takes an afternoon. To watch the joins happen on their own, start 30 days on the Pro plan and compare a cohort of your own clicks with the deals they became.

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.