pragma-gtm.com

Work sample · revenue analytics

Which lead source deserves the next €10k?

The question: if a sales team has €10k more to spend on winning deals, which lead source should get it? My answer: signal-led outreach, where I contact companies that have just shown a buying signal, like hiring for sales or a new sales leader.

It beats generic outbound as long as pursuing one signal-led deal costs under about €1,670. That limit is modelled: the deals are made up and the costs are my assumptions.

Real: company signals, email statsMade up: the dealsAssumed: the costsNot live yet: CRM sync

Open the live dashboard in Hex →Public link, view only, no sign in

What the made-up deals show, 12 months before vs 12 months after the signal engine

€390kwon revenue, up from €295k
40% vs 12%of closed deals won: signal-led vs generic
+42%of leads became MQLs (marketing-qualified), up from 20.0% to 28.4%
36 vs 57days to win a deal: signal-led vs generic

What is real, what is built, what is not

In short: Clay finds companies showing buying signals, the deals and contacts sit in a Supabase database, and a Hex dashboard reads them through a restricted database user. The dashboard is public and the code is hidden. The 40% and 12% close rates are set in the made-up data on purpose, so the page shows how I would analyse and present them, not a discovery.

DashboardsSupabasePostgresSQLHexData modellingAccess controlClayApolloPython
Designed and builtThe analytics schema, the Hex database user, the Clay signal searches, every query, the charts and the public app. Claude Code wrote the SQL and chart code from my spec.
Tested, not liveA nightly HubSpot sync into the schema through n8n, so the numbers refresh on their own. I ran it end to end in n8n with sample deals and a mock database. It has not touched a real HubSpot account yet.

The deals, contacts and companies are synthetic, calibrated to mirror results I delivered (see the numbers on pragma-gtm.com). Every deal, company and person is made up. The outreach section is real, aggregate Apollo data with the sequence names anonymized. The Clay signals are real companies from public company data, with no people or contact data.

How it is put together

Find signalsThree Clay company searches on the ICP: hiring for sales, headcount growth and a new sales leader. A company with two or more signals goes on the call list.
ModelOne analytics schema in Supabase Postgres: Clay signals, deals, contacts, companies and outreach sequences. Every deal carries its lead source, period, stage path, amount and days to close.
Keep it safeThe dashboard tool (Hex) connects as its own database user. That user sees the analytics data and nothing else, so tables with personal data stay out of reach.
QueryFive SQL queries: headline numbers, revenue by month, close rate by source, the funnel and outreach. Months only count once they are complete.
PublishA Hex app with the code hidden and a public view only link. Hex's agent can answer new questions on the same tables.

The charts, and what they say

Signal-led deals close at 40%, generic outreach at 12%. Generic still brings in the most revenue because it runs at far higher volume: 325 closed deals against 50. So the move is not to stop generic outreach. It is to feed more of the pipeline from signals, where each deal is worth more effort.

Won revenue by month

Grey: the 12 months before. Orange: the 12 months after the signal engine went live. Hover a bar for the month. On a phone, swipe sideways.

Won revenue by month, 12 months before and 12 months after the signal engine Monthly won revenue in euros. Before: 295 thousand euros over 12 months. After: 390 thousand euros over 12 months. €0 €20k €40k €60k Nov 2024: €51k won, 6 deals Nov 24 Dec 2024: €36k won, 6 deals Jan 2025: €17k won, 3 deals Feb 2025: €20k won, 2 deals Feb 25 Mar 2025: €7k won, 2 deals Apr 2025: €35k won, 4 deals May 2025: €13k won, 2 deals May 25 Jun 2025: €40k won, 5 deals Jul 2025: €18k won, 3 deals Aug 2025: €11k won, 2 deals Aug 25 Sep 2025: €36k won, 3 deals Oct 2025: €11k won, 1 deals Nov 2025: €59k won, 4 deals Nov 25 Dec 2025: €29k won, 3 deals Jan 2026: €8k won, 2 deals Feb 2026: €17k won, 3 deals Feb 26 Mar 2026: €52k won, 7 deals Apr 2026: €3k won, 1 deals May 2026: €38k won, 4 deals May 26 Jun 2026: €44k won, 6 deals Jul 2026: €36k won, 3 deals Aug 2026: €40k won, 5 deals Aug 26 Sep 2026: €34k won, 6 deals Oct 2026: €30k won, 6 deals Before · €295k in 12 months Signal engine live · €390k in 12 months

Close rate by lead source

All closed deals. Referral closes best, as it usually does, but there are only 22 of them. Signal-led matches it at more than twice the volume.

Close rate by lead source, closed deals Referral 41 percent, signal-led 40 percent, inbound 25 percent, generic outbound 12 percent. 0% 10% 20% 30% 40% 50% Referral Referral: 40.9% close rate, 9 of 22 closed deals won, €48k won, 57 days to win 41%9 of 22 won Signal-led Signal-led: 40.0% close rate, 20 of 50 closed deals won, €147k won, 36 days to win 40%20 of 50 won Inbound Inbound: 24.7% close rate, 21 of 85 closed deals won, €144k won, 66 days to win 25%21 of 85 won Generic outbound Generic outbound: 12.0% close rate, 39 of 325 closed deals won, €345k won, 57 days to win 12%39 of 325 won

Which source deserves the next €10k?

Average deal size comes from the deal data. The costs are modelled: my planning inputs for what it costs to pursue one deal to a yes or no (data, tools, rep time), not measured spend. Change them and the table follows.

Lead sourceAvg dealCost per closed deal (modelled)Cost per won deal (modelled)Won revenue per €10k (modelled)
Referral€5,389€400€978€55,100
Signal-led€7,370€1,200€3,000€24,600
Inbound€6,862€900€3,643€18,800
Generic outbound€8,846€600€5,000€17,700

Referral returns most per euro but cannot be bought: there are only 22 closed referral deals. Of the sources you can scale, signal led wins the next €10k. It stays ahead of generic outbound until a signal led deal costs about €1,670 to pursue, close to 2.8x the €600 modelled for generic. Past that, the money goes back to generic.

Before vs after

Two panels, one scale each. Won revenue grew 32%, on 39 to 50 won deals. The share of leads that became MQLs (marketing-qualified leads) grew 42%.

Before and after the signal engine: won revenue and MQL rate Won revenue rose from 295 to 390 thousand euros, plus 32 percent. MQL rate rose from 20.0 to 28.4 percent of leads, plus 42 percent. Won revenue, 12 months · +32% €0 €150k €300k €450k Before: €295k won €295k Before After: €390k won €390k After MQL rate, share of leads · +42% 0% 12% 24% 36% Before: 20.0% of leads became MQLs 20.0% Before After: 28.4% of leads became MQLs 28.4% After

Where signal led pipeline comes from

A 40% close rate only helps if there are enough signals to act on, so I went looking for them. The target is my ideal customer profile (ICP): corporate learning, L&D and HR tech companies that sell to other businesses, with 51 to 1,000 staff, based in DACH, Benelux, the UK, the Nordics, France or Spain.

Three Clay company searches looked for a buying signal: an open sales or RevOps role posted in the last 30 days, headcount up 5% or more in six months, or a new VP Sales, Head of Sales, Sales Director or CRO in the last six months. After removing recruiters, staffing agencies, schools and public bodies, 24 companies with 31 signals were left. Most show one signal. Seven show two at once, and those make this week's call list.

Companies by number of signals

Real companies, public company data, captured 23 November 2026. Each search was capped at 20 companies before the ICP filter.

Clay: companies by number of signals they show at once 17 companies show one signal, 7 show two, none shows all three. 0 10 20 1 signal: 17 companies 17 companies 1 signal 2 signals: 7 companies 7 companies 2 signals 0 companies 3 signals
Call this weekSignalsStaff
Cezanne HRLondon, United KingdomHeadcount growth + New sales leader180
ClasingMadrid, SpainHeadcount growth + Hiring for sales110
PINKTUMMunich, GermanyHiring for sales + New sales leader106
PerchPeekLondon, United KingdomHeadcount growth + Hiring for sales72
Tack TMILondon, United KingdomHeadcount growth + New sales leader428
ThomasMarlow, United KingdomHiring for sales + New sales leader522
WorkMotionBerlin, GermanyHiring for sales + New sales leader219

These are prospects found from public signals, not customers or deals. No people or contact data was pulled. The next step, not built yet, pushes this list into HubSpot as companies with the signals attached.

Outreach: which sequences get replies

Real Apollo numbers, aggregate only, sequence names anonymized. Sequences with at least 50 delivered emails. The multichannel sequence aimed at decision makers replies at 13.6%, more than three times the next best, while the open rate leaders reply far less. Opens are a weak signal; replies are the one to manage.

SequenceDeliveredRepliesReply rate
Decision-makers · email + LinkedIn (10 steps)3905313.6%
Marketing buyers · manual-first v2 (6 steps)23993.8%
Sales leaders · AI-written (7 steps)26062.3%
Marketing buyers · manual-first v1 (5 steps)6311.6%
High-intent prospects · email only (3 steps)13121.5%

The data

Deals
482 closed deals over 24 months plus 28 open ones. Exact closed and won counts per period and source, so the 40% and 12% close rates are set by design, not discovered. Won amounts are scaled so each 12 month period totals exactly €295k and €390k.
Contacts
1,000 leads, 500 per period. 100 MQLs before, 142 after: 20.0% to 28.4%, a 42% uplift.
Companies
300 invented companies with industry, size, region and ICP tier.
Clay signals
24 real companies with 31 signals from Clay company search, captured 23 November 2026. Public company data only: name, domain, location, size. No people, no contact data.
Outreach
Nine real Apollo sequences, aggregate counts only. Names replaced with a description of the audience and the steps.
Not in it
No real person or deal. The only real companies are the Clay signal accounts, and they appear as prospects, not customers. No figure from a current employer's CRM.

What I would change first

Replace the synthetic tables with a nightly sync from the CRM. The n8n workflow for it is written (in the repo): it pulls closed and open deals from HubSpot into the same schema, so every chart and query stays as it is. I ran it end to end in n8n with sample deals and a mock database, which caught two bugs. It has not touched a real HubSpot account yet, so the page still reads synthetic deals.

Split signal led by signal type. Funding, hiring and job changes probably do not close at the same rate, and the next budget decision is which signal source to pay for. The same chart answers it with one more column.

How I would judge it: the sales lead opens it on Monday instead of asking for a spreadsheet. If nobody opens it for two weeks, it answers the wrong question.

How it was built

AI did
Claude Code wrote the SQL, the data generator and the chart code from my spec, and set up the Hex project through Hex's connector.
I did
Chose the story and the targets, decided what is real and what is synthetic, set the access rule that keeps the app tables out of Hex, anonymized the outreach data, and checked every number against the source tables.
Not built
Running the HubSpot sync on a real account, pushing the call list into HubSpot as companies with the signals attached, and a nightly refresh of the Clay searches. The data is a snapshot from November 2026.
Stack
Clay (company search), Supabase Postgres, SQL, Hex (notebook, app builder, agent), Plotly in Hex, inline SVG on this page.

Files

The whole folder on GitHub.

The live dashboard in Hex: view only, the same numbers as this page.

queries.sqlEvery query behind the dashboard, and the database user Hex logs in with.
dashboard.jsonThe aggregates the charts on this page are drawn from.
README.mdWhat is real, what is synthetic, and how it fits together.