Sub topic 13
Segmenting Activation and Retention
Assume you know basic SQL, can calculate percentages, and understand product events such as signup and project creation. This chapter uses those events to compare activation and retention across user groups.
Segmentation means splitting a user population into groups that share a meaningful property. Examples include acquisition source, plan, device type, company size, or industry. A segment is useful only when its definition is stable and available for every user in the measured population.
Why segment metrics?
An overall activation rate can hide important differences. Suppose 40% of all signups activate:
- Paid-ad users might activate at 20%.
- Users invited by another customer might activate at 65%.
- Mobile users might activate at 10%.
- Desktop users might activate at 50%.
The overall rate does not tell you which experience needs improvement. Segmenting helps you find where activation or retention changes.
Use the same metric definition in every segment. If activation means creating a project within seven days of signup, keep that event and window unchanged. Change only the segment.
Segment activation
The denominator must be the number of eligible users in each segment. The numerator must be the number of those users who performed the activation event within the defined window.
For example, this query compares seven-day activation by acquisition source for January 2026:
WITH signup_cohort AS (
SELECT
u.user_id,
u.acquisition_source,
EXISTS (
SELECT 1
FROM events e
WHERE e.user_id = u.user_id
AND e.event_name = 'project_created'
AND e.event_time >= u.signup_at
AND e.event_time < u.signup_at + INTERVAL '7 days'
) AS activated
FROM users u
WHERE u.signup_at >= DATE '2026-01-01'
AND u.signup_at < DATE '2026-02-01'
)
SELECT
acquisition_source,
COUNT(*) AS signups,
COUNT(*) FILTER (WHERE activated) AS activated_users,
COUNT(*) FILTER (WHERE activated) * 1.0 / COUNT(*) AS activation_rate
FROM signup_cohort
GROUP BY acquisition_source
ORDER BY activation_rate DESC;The EXISTS expression returns true once a user has at least one qualifying event. It prevents repeated project-created events from counting a user more than once.
Segment retention
For retention, assign users to a cohort first, then compare later activity within each segment. A useful result might look like this:
| Acquisition source | Signups | Day 7 retention | Day 30 retention |
|---|---|---|---|
| Customer invite | 400 | 48% | 29% |
| Organic search | 900 | 35% | 18% |
| Paid ads | 1,200 | 22% | 9% |
These numbers suggest that paid acquisition brings users who activate and return less often. That does not prove the advertising channel causes poor retention. The segment may contain different customer types, or the users may have received different onboarding. Treat the result as a question for investigation.
Avoid misleading comparisons
- Set a minimum sample size before acting on a segment.
- Show counts with rates. A 90% rate from ten users is less reliable than a 45% rate from 10,000 users.
- Define segments before examining results when possible. Otherwise, repeated slicing can produce accidental patterns.
- Keep segment membership fixed for the analysis. For example, classify a user by signup plan rather than the plan they upgraded to later.
- Check whether a segment has enough time to reach the retention milestone. A cohort created yesterday cannot have valid day-30 retention.
- Compare like with like. Different signup months can reflect seasonality, pricing, or product changes.
Exercise
A segment has 80 signups and 24 users create a project within seven days. What is its activation rate, and what additional value should you report?
Show answer
The activation rate is 30% (24 ÷ 80). Report the 80-user denominator and the activated-user count so the sample size is visible.