Prompt
How do I compare cohorts by acquisition source and plan?
Latest observation
Oct 30, 2026
OpenAI APIWeb search: off
To compare cohorts by acquisition source and plan, you usually want to build a cohort table where users are grouped by:
- Acquisition source at signup or first-touch, and
- Plan at signup or at the time of cohort entry.
1) Define the cohort key
A common cohort key is:
cohort_month = date_trunc('month', signup_date)acquisition_sourceplan
So each cohort becomes something like:
- Jan 2026 / Organic / Free
- Jan 2026 / Paid Search / Pro
- Feb 2026 / Referral / Team
2) Choose the metric to compare
Typical cohort comparison metrics:
- Retention: % of users active in later periods
- Revenue / ARPU
- Conversion rate: free → paid
- Churn
- LTV
3) Build a cohort matrix
You want a table like:
| cohort_month | source | plan | size | month_0 | month_1 | month_2 | month_3 |
|---|---|---|---|---|---|---|---|
| 2026-01 | Organic | Free | 1200 | 100% | 42% | 31% | 25% |
| 2026-01 | Paid Search | Pro | 300 | 100% | 55% | 44% | 39% |
This lets you compare how different source/plan combinations perform over time.
4) Example SQL pattern
If you have tables like:
users(user_id, signup_date, acquisition_source, plan)activity(user_id, activity_date)
You can do:
WITH cohorts AS (
SELECT
user_id,
DATE_TRUNC('month', signup_date) AS cohort_month,
acquisition_source,
plan
FROM users
),
user_activity AS (
SELECT
c.cohort_month,
c.acquisition_source,
c.plan,
DATE_TRUNC('month', a.activity_date) AS activity_month,
COUNT(DISTINCT c.user_id) AS active_users
FROM cohorts c
JOIN activity a
ON c.user_id = a.user_id
GROUP BY 1,2,3,4
),
cohort_sizes AS (
SELECT
cohort_month,
acquisition_source,
plan,
COUNT(*) AS cohort_size
FROM cohorts
GROUP BY 1,2,3
)
SELECT
ua.cohort_month,
ua.acquisition_source,
ua.plan,
ua.activity_month,
ua.active_users,
cs.cohort_size,
ROUND(100.0 * ua.active_users / cs.cohort_size, 2) AS retention_pct
FROM user_activity ua
JOIN cohort_sizes cs
ON ua.cohort_month = cs.cohort_month
AND ua.acquisition_source = cs.acquisition_source
AND ua.plan = cs.plan
ORDER BY 1,2,3,4;
5) If you want month-indexed cohorts
Instead of calendar months, calculate “age” of the cohort:
DATE_PART('month', AGE(activity_month, cohort_month)) AS cohort_age_months
Then compare retention at month 0, 1, 2, etc.
6) Best practices
- Use first-touch acquisition source, not last-touch, if you want stable cohort attribution.
- Freeze plan/source at signup time if you’re comparing acquisition cohorts.
- Watch out for small sample sizes — source+plan segments can get tiny fast.
- Consider slicing by one dimension at a time first:
- source only
- plan only
- source × plan
7) In a BI tool
If you’re using Looker, Metabase, Tableau, etc.:
- Rows: cohort month
- Columns: cohort age
- Breakout/filter: acquisition source, plan
- Metric: retention %, revenue, conversion
If you want, I can give you:
- a SQL query tailored to your schema,
- a Python/pandas version, or
- a dashboard layout for Looker/Metabase/Tableau.