Sub topic 1
Why product metrics and the user lifecycle
Product metrics are numbers that describe how people use a product. A good set of them tells a team whether new users reach value, whether they keep using the product, and whether the business is healthy. A bad set gives false comfort. This chapter explains why teams measure at all, introduces the user lifecycle that the rest of the tutorial follows, and shows why every metric needs a precise definition.
Prerequisites
This chapter assumes you have:
- Basic familiarity with how a software product or app is used by customers.
- Comfort with percentages, ratios, and simple charts.
- Basic SQL (SELECT, JOIN, GROUP BY). You only need to read one short query in this chapter.
You do not need any prior knowledge of analytics tools or statistics.
What product metrics are for
A product metric turns a behavior into a number you can track over time. "Users seem to like the new onboarding" is an opinion. "The share of new users who create a project in their first week rose from 31% to 38%" is a measurement that people can check, argue with, and act on.
Metrics serve three jobs:
- Diagnosis. They show where the product loses people, such as at signup, during setup, or after the first week.
- Decision-making. They let a team compare options and judge whether a change helped.
- Alignment. They give engineering, design, marketing, and leadership one shared picture of what "working" means.
Metrics do not explain why users behave as they do. They show what happened and where. Interviews, session recordings, and support tickets explain why. Strong teams use both.
The user lifecycle
Most products can be described as a sequence of stages that a user passes through. The names vary between companies, but the shape is common.
The stages that this tutorial focuses on are:
- Acquisition. A person finds the product and signs up. This is the entry point, and it is usually owned by marketing.
- Activation. A new user first experiences the core value of the product. A budgeting app might count this as connecting a bank account and seeing a categorized spending report.
- Engagement. An activated user keeps doing meaningful things in the product, and does them often.
- Retention. Users are still active weeks and months after they joined.
- Churn. Users stop using the product or cancel. Churn is the mirror image of retention.
Revenue and referral are often drawn as extra stages, as in the "pirate metrics" (AARRR) framework. This tutorial concentrates on activation, engagement, and retention because they sit at the center of whether a product works.
Why the order matters
The stages depend on each other. Improving retention for users who never activated is hard, because they never saw the value. Pouring money into acquisition while activation is weak means paying to bring people in who then leave. A common rule of thumb is to fix the earliest broken stage first, since gains there multiply through every later stage.
Metrics are definitions, not just numbers
The word "active" does not mean one thing. Consider the sentence "40% of our users are retained." It could mean any of these:
- 40% of everyone who ever signed up used the product this month.
- 40% of last month's signups came back at least once in week 4.
- 40% of paying customers renewed their plan.
These are different populations, events, and time periods, and they produce very different numbers. A usable metric definition always states three things:
| Part | Question it answers | Example |
|---|---|---|
| Population | Which users are being counted? | Users who signed up in January 2026 |
| Event | What action counts? | Created a project |
| Time window | By when must it happen? | Within 7 days of their own signup |
If any of the three is missing, two people can read the same metric name and compute different results. A later chapter covers this in detail. For now, treat "population, event, window" as a checklist you apply to every number you meet.
A first look at lifecycle data
Metrics are computed from records of what users did. Two tables are enough for a first example. The users table has one row per user, and the events table has one row per recorded action.
The query below counts, for January 2026 signups, how many users signed up, how many ever created a project, and how many did the core action during their second week.
-- Lifecycle snapshot for users who signed up in January 2026 (PostgreSQL)
-- Assumes: users(user_id, signup_at), events(user_id, event_name, event_time)
WITH per_user AS (
SELECT
u.user_id,
BOOL_OR(e.event_name = 'project_created') AS activated,
BOOL_OR(
e.event_name = 'core_action'
AND e.event_time >= u.signup_at + INTERVAL '7 days'
AND e.event_time < u.signup_at + INTERVAL '14 days'
) AS active_in_week_2
FROM users u
LEFT JOIN events e
ON e.user_id = u.user_id
AND e.event_time >= u.signup_at
WHERE u.signup_at >= DATE '2026-01-01'
AND u.signup_at < DATE '2026-02-01'
GROUP BY u.user_id
)
SELECT
COUNT(*) AS signed_up,
COUNT(*) FILTER (WHERE activated) AS activated_ever,
COUNT(*) FILTER (WHERE active_in_week_2) AS active_in_week_2
FROM per_user;Read it against the checklist. The population is January signups. The activation event is project_created, but it has no time window, so "activated_ever" is deliberately loose. The week 2 measure has a window defined relative to each user's own signup time, not the calendar. Later chapters tighten the activation measure and explain why relative windows matter.
The LEFT JOIN keeps users who have no events at all. An inner join would drop them from the count of signups and make every rate look better than it is.
Common errors at this stage
Most beginner mistakes with metrics come from skipping the definition step.
- Counting events instead of users. "Created 5,000 projects" says little if three users created 4,000 of them.
- Dropping users with no activity. Inner joins and filters on activity quietly remove the users who did nothing, which inflates every rate.
- Mixing populations. Dividing this month's active users by last month's signups produces a number that means nothing.
- Chasing totals. Cumulative signups only go up. A metric that cannot fall tells you nothing about health.
- Treating one number as the whole story. An activation rate can rise while retention falls, if you activate people who were never a good fit.
How the rest of the tutorial builds on this
The next chapters follow the lifecycle in order. They start with the raw material, events and user identity. Then they cover precise metric definitions, funnels, activation, engagement, and retention. After that come cohort tables, retention curves, churn, segmentation, and the choice of a small set of metrics. Each later chapter applies the same habit: state who, what, and by when, then compute.
Exercise
A teammate reports "retention is 25%." List the three things you would ask them to specify before you trust the number, and give one example of how a different answer to each would change the result.
Show answer
Ask for the population, the event, and the time window. Population: 25% of January signups versus 25% of all-time users gives different denominators, so the same activity yields different rates. Event: counting any app open versus counting the core action changes who counts as retained, because background opens inflate the count. Time window: returning within 7 days versus within 30 days changes the numerator, since more users return given more time.
Exercise
In the lifecycle SQL query, what would happen to the signed_up count if you replaced the LEFT JOIN with an inner JOIN, and why is that a problem for measuring activation?
Show answer
Users with no events after signup would disappear from the results, so signed_up would count only users who did something. Activation and retention rates divide by that smaller number, so they would look higher than they really are. The users who never did anything are exactly the ones activation work is meant to reach.