← Back to Blogs

User Acquisition Funnel Analysis: CAC, LTV & Where to Focus Spend

Olist funnel analysis from MQL to repeat purchase. Paid Search and Organic convert alike at 9× different costs; a 3.1% repeat rate favours retention.

Growth Analytics

User Acquisition Funnel Analysis

Funnel thinking Core Concept

A funnel describes the stages a user passes through on the way to a desired outcome, and more importantly, where they drop off. In this project the funnel spans two datasets: a marketing funnel (the Olist Marketing Funnel dataset on Kaggle, lead → closed deal) and an e-commerce dataset (order → repeat purchase).

The analogy: Think of a funnel as a leaky pipe. Water enters at the top (leads). Some leaks at every joint (drop-off). What comes out the bottom (revenue) is a fraction of what went in. The question isn't just how much water you pour in; it's where the biggest leaks are, because plugging one large leak is often worth more than doubling the inflow.
# The Olist funnel in numbers
# Stage                    Volume      Rate
# MQLs (Leads)              8,000       -
# Closed Deals                842     10.5% of MQLs
# Delivered Orders          96,478       -
# Repeat Customers           2,997      3.1% of customers

The most striking finding isn't the 10.5% MQL-to-deal conversion; that's within normal range for B2B sales. It's the 3.1% repeat purchase rate. Almost 97% of customers never buy again. That is the biggest leak in the pipe.

Where to look for funnel drop-off

  • Top of funnel: Are MQLs actually qualified? Low CVR often signals a lead quality problem, not a sales problem
  • Mid funnel: Time-to-close tells you if deals are stalling, a 48-day avg vs 14-day median means a long right tail of stuck deals
  • Bottom of funnel: Repeat purchase rate is the most undertracked metric in e-commerce

Funnel vs pipeline

  • A funnel measures conversion rates across a defined sequence of stages
  • A pipeline measures the volume and value of deals at each stage at a point in time
  • You need both: the funnel tells you where to fix the process; the pipeline tells you where to focus now

Customer Acquisition Cost (CAC) Metric

CAC is the total cost to acquire one paying customer. Simple in concept, deceptive in practice; most teams undercount it.

# Naive CAC (what most teams calculate)
CAC = total_ad_spend / new_customers

# Fully-loaded CAC (what you should calculate)
CAC = (ad_spend + sales_salaries + tools + agency_fees) / new_customers
The analogy: If a restaurant counts only food costs and ignores rent, staff wages, and utilities, it looks profitable. Fully-loaded CAC is the same principle; the true cost of acquisition includes every resource spent to make a sale happen.

CAC by channel: industry benchmarks (not from Olist)

  • Email: $23, cheapest channel
  • Organic Search: $31, highly efficient
  • Referral: $35, underinvested by most teams
  • Direct Traffic: $42, strong intent signal
  • Social: $58, mid-tier
  • Display: $190, expensive for results delivered
  • Paid Search: $286, most expensive by far

When CAC data doesn't exist

  • Most public datasets have no spend data: it's proprietary
  • Industry benchmark CAC by channel type is a valid substitute when documented clearly
  • Source your benchmarks explicitly (e.g. FirstPageSage 2024)
  • Frame outputs as directional, not precise: the ratios matter more than the absolutes

Customer Lifetime Value (LTV) Metric

LTV is the total revenue a customer generates over their entire relationship with the business. It is the most important metric in acquisition analytics, and the most commonly miscalculated.

# Simple LTV from order history
ltv = orders_full.groupby('customer_unique_id').agg(
    total_orders  = ('order_id',    'count'),
    total_revenue = ('order_value', 'sum'),
).reset_index()

# Olist results
# Avg LTV (all customers):    $141.44
# Avg LTV (repeat buyers):    $259.87  ← 1.9× higher
# Avg LTV (one-time buyers):  $137.63

LTV variants

  • Historic LTV: Actual revenue to date. Easy to calculate, backward-looking
  • Predictive LTV: Modelled expected future revenue. Requires churn model and purchase frequency model
  • Cohort LTV: LTV tracked by acquisition cohort over time, the most actionable variant

Common LTV mistakes

  • Using revenue instead of gross margin: LTV should reflect what the business keeps
  • Ignoring customer segments: average LTV hides the fact that some cohorts are 5× more valuable
  • Not discounting future cash flows for long prediction windows
  • Confusing customer_id with customer_unique_id in datasets like Olist where they differ

The Olist customer ID trap

Olist has two customer identifier fields: customer_id (unique per order) and customer_unique_id (unique per person). Using customer_id to measure repeat purchases gives a repeat rate of 0%; every order looks like a new customer. Always join on customer_unique_id for retention analysis.

The LTV:CAC ratio Decision Metric

LTV:CAC is the single most useful number in acquisition analytics. It tells you whether a channel is an investment or a money pit, and by how much.

The rule of thumb:
  • Below 1×: You lose money on every customer. Stop immediately.
  • 1–3×: Viable but thin. Optimise before scaling.
  • 3× and above: Healthy. Scale with confidence.
  • Above 5×: You may be underinvesting; there is room to grow faster.
# LTV:CAC by channel: Olist analysis
# Channel           CAC    LTV    LTV:CAC   Verdict
# Email             $23   $141    6.15×    ✅ Scale
# Organic Search    $31   $141    4.56×    ✅ Scale
# Referral          $35   $141    4.04×    ✅ Scale
# Direct Traffic    $42   $141    3.37×    ✅ Healthy
# Social            $58   $141    2.44×    ⚠️ Optimise
# Display          $190   $141    0.74×    ❌ Cut
# Paid Search      $286   $141    0.49×    ❌ Cut

Paid Search converts at 12.3%, nearly identical to Organic Search's 11.8%. But at $286 CAC versus $31, it returns 49 cents on every dollar spent. The conversion rate looked impressive; the unit economics were broken.

Don't optimise for CVR in isolation

Conversion rate is a numerator metric; it ignores cost. A channel with a 12% CVR and a $286 CAC is worse than one with an 11% CVR and a $31 CAC. Always pair CVR with CAC before drawing conclusions. High CVR on an expensive channel is not a good sign; it just means you're paying a lot for conversions you might have gotten cheaper elsewhere.

Retention & the compounding effect Growth

Retention is the most underinvested lever in growth. Acquiring a new customer costs 5–7× more than retaining an existing one, yet most teams spend almost nothing on post-purchase experience.

The compounding analogy: Retention works like compound interest. A 5% increase in retention rate doesn't produce 5% more revenue; it compounds over each subsequent purchase cycle. A customer who buys twice has roughly 1.9× the LTV of one who buys once. A customer who buys three times has more still. Each repeat purchase is cheaper to generate than the first.
# Olist retention numbers
# Unique customers:        96,096
# Repeat buyers (>1 order):  2,997  →  3.1%
# One-time buyer avg LTV:   $137.63
# Repeat buyer avg LTV:     $259.87  →  1.9× premium

# Revenue impact of 1% retention improvement:
# ~960 additional repeat customers × $259.87 = ~$249,475

Why 3.1% repeat rate is a red flag

  • E-commerce benchmark repeat rate: 25–30% for healthy businesses
  • Olist at 3.1% suggests almost no post-purchase retention investment
  • Could indicate product-market fit issues, poor delivery experience, or simply no re-engagement strategy

Retention levers to investigate

  • Post-purchase email sequence (days 3, 7, 30)
  • Delivery experience: late deliveries kill repeat rates
  • Category replenishment windows: when do customers typically reorder?
  • Loyalty or discount incentive for second purchase

SQL patterns for funnel analysis SQL

Funnel analysis requires a handful of SQL patterns that come up repeatedly. These are the three most important.

-- 1. Stage-level conversion rate
SELECT
    COUNT(DISTINCT mql_id)                           AS leads,
    COUNT(DISTINCT seller_id)                        AS closed_deals,
    ROUND(COUNT(DISTINCT seller_id) * 100.0
          / COUNT(DISTINCT mql_id), 1)              AS cvr_pct
FROM mql
LEFT JOIN deals USING (mql_id);
-- 2. Repeat purchase identification
-- Note: must use customer_unique_id, not customer_id
WITH customer_orders AS (
    SELECT
        c.customer_unique_id,
        COUNT(o.order_id)  AS total_orders,
        SUM(i.price)       AS total_revenue
    FROM orders o
    JOIN customers c  USING (customer_id)
    JOIN order_items i USING (order_id)
    GROUP BY 1
)
SELECT
    SUM(CASE WHEN total_orders > 1 THEN 1 ELSE 0 END) AS repeat_customers,
    COUNT(*)                                              AS total_customers,
    AVG(total_revenue)                                    AS avg_ltv
FROM customer_orders;
-- 3. LTV:CAC by channel (with benchmark CAC injected)
WITH channel_cac AS (
    SELECT * FROM (VALUES
        ('organic_search',  31),
        ('paid_search',    286),
        ('email',           23)
    ) AS t(origin, cac)
),
channel_cvr AS (
    SELECT
        m.origin,
        COUNT(d.mql_id) * 1.0 / COUNT(m.mql_id) AS cvr
    FROM mql m
    LEFT JOIN deals d USING (mql_id)
    GROUP BY 1
)
SELECT
    cv.origin,
    cv.cvr,
    cc.cac,
    141.44            AS avg_ltv,   -- from order history
    ROUND(141.44 / cc.cac, 2) AS ltv_cac_ratio
FROM channel_cvr cv
JOIN channel_cac cc USING (origin)
ORDER BY ltv_cac_ratio DESC;

Decision framework Framework

Given a funnel and channel data, what actions does the analysis recommend?

Is a channel's LTV:CAC below 1×?
→
Cut or pause immediately. The channel destroys value regardless of its CVR.
In Olist: Paid Search (0.49×) and Display (0.74×) both fail this test.
Is the repeat purchase rate below 10%?
→
Fix retention before scaling acquisition. Adding more customers to a leaky bucket is wasteful.
In Olist: 3.1% repeat rate; retention is the highest-ROI investment available.
Two channels have similar CVRs but different CACs?
→
Shift budget to the cheaper channel. Conversion rate alone does not justify higher spend.
In Olist: Organic (11.8% CVR, $31 CAC) vs Paid Search (12.3% CVR, $286 CAC), near-identical conversion, 9× cost difference.
A channel has great LTV:CAC but low CVR?
→
Likely a lead quality problem, not a channel problem. Improve upstream qualification criteria before cutting the channel.
In Olist: Email has 6.15× LTV:CAC but only 3.0% CVR. The economics work; the list doesn't.

Acquisition vs retention investment

Acquisition is visible; every spend shows up on a dashboard. Retention is invisible until a customer churns. The result is structural underinvestment in retention across almost every company. Build both into your funnel reporting; the two numbers that matter most are LTV:CAC ratio (acquisition efficiency) and 90-day repeat purchase rate (retention health).

Resources: Funnel Analysis & Growth

Free
Olist Marketing Funnel Dataset (Kaggle)

The dataset used in this analysis: MQLs, closed deals, channel origins.

Free
FirstPageSage CAC Benchmarks 2024

Industry CAC benchmarks by channel: the source used for this analysis.

Book
Reforge: Retention & Growth

The most rigorous public writing on retention mechanics and how they compound into growth.