Sub topic 7
Engagement: what counts as an active user
This chapter covers how to decide who counts as an "active user" and how to turn that decision into a metric you can compute. It assumes you know how events and user identity work, and that you can state a metric as a population, an event, and a time window. It also assumes basic SQL (SELECT, JOIN, GROUP BY). Stickiness (DAU divided by MAU) and retention come in later chapters. This chapter builds the active-user definition they depend on.
Why "active" needs a definition
Engagement describes how much and how well users use a product after they have been activated. Almost every engagement metric starts with a count of active users, and "active" has no universal meaning. A user who logged in, a user who opened the app through a push notification, and a user who completed a task are all "active" under some definition. These definitions can give very different numbers for the same product on the same day.
An active-user metric has three parts, the same ones you use for any metric:
- Population: which users are eligible to be counted. For example, all registered users, only paying accounts, or only users in one region.
- Event: what the user must do to count as active.
- Window: the period in which the event must happen, such as a day, a week, or 30 days.
If any of these is left unstated, two teams can report different numbers under the same name and both be "right."
Choosing the qualifying event
The qualifying event is the most important choice. There are three common levels, from loosest to strictest.
| Level | Example event | Strength | Weakness |
|---|---|---|---|
| Any activity | App opened, session started, any event | Easy to collect, always available | Counts background activity and accidental opens |
| Meaningful action | Message sent, file saved, search run | Reflects real use | Needs a judgment about which actions count |
| Value action | Report exported, order completed, project shared | Closest to delivered value | Rare, so the count is small and noisy |
Choose the level that matches the value the product promises. A messaging app might count "sent a message." A project tool might count "created or edited a task." A news app might count "read an article for more than 30 seconds."
Many apps fire events with no user involved: background syncs, push-notification receipts, and automated API calls. If you count "any event," these inflate the active count and hide real changes in behavior. That is why the stickiness example in the plan counts one named core_action event instead of every row in the events table.
Defining the core action
A good core action meets these tests:
- A person triggers it on purpose.
- It reflects the product's main value.
- It happens often enough to measure in your chosen window. A core action that a typical user performs once a year cannot support a daily metric.
- It is hard to fake or trigger by accident.
If your product has several valuable behaviors, you can define a set of qualifying events, for example message_sent or file_shared. Keep the set small and written down. Every event you add changes the metric, and you will need to explain it later.
Active users over different windows
Activity is counted over a time window, and the window changes the meaning:
- DAU (daily active users): distinct users with a qualifying event on one calendar day.
- WAU (weekly active users): distinct users with a qualifying event in a 7-day period.
- MAU (monthly active users): distinct users with a qualifying event in a 30-day period, or in a calendar month.
Each count is distinct users, not events. A user who performs the core action 50 times counts once.
Two choices need to be fixed and documented:
- Calendar versus rolling windows. A calendar month has 28 to 31 days, so MAU for February is not comparable to MAU for March. A rolling 30-day window keeps the length constant.
- Time zone. A "day" depends on the time zone. Pick one, usually UTC or the company's reporting zone, and use it everywhere.
The next query counts active users in a rolling 30-day window and also in a single day, using one qualifying event.
-- Active users for 2026-03-31 using one qualifying event
-- Assumes: events(user_id, event_name, event_time)
SELECT
COUNT(DISTINCT CASE
WHEN event_time >= DATE '2026-03-31'
AND event_time < DATE '2026-04-01' THEN user_id END) AS dau,
COUNT(DISTINCT CASE
WHEN event_time >= DATE '2026-04-01' - INTERVAL '30 days'
AND event_time < DATE '2026-04-01' THEN user_id END) AS mau
FROM events
WHERE event_name = 'core_action'
AND event_time >= DATE '2026-04-01' - INTERVAL '30 days'
AND event_time < DATE '2026-04-01';The outer WHERE limits the scan to the 30-day range. The CASE expressions then pick out the users in the single day. COUNT(DISTINCT ...) ignores the NULL values that CASE returns for rows outside the day, so each count covers only users who matched. The half-open range (>= start, < end) avoids double-counting midnight events.
A worked example
Suppose a note-taking app has two possible definitions of "active."
- Definition A: any event in the day. This includes background sync, which runs for every installed device each day.
- Definition B: a
note_editedevent in the day.
On a given Tuesday the numbers might look like this:
| Definition | Active users | Share of 10,000 monthly users |
|---|---|---|
| A: any event | 6,200 | 62% |
| B: `note_edited` | 1,800 | 18% |
The difference is large. Under A, the team thinks the product is used daily by most people. Under B, only about one in five users does real work on a given day. The first number is not wrong, but it measures installed devices that are syncing. It tells you almost nothing about whether people get value. Definition B is the better engagement metric. Now suppose the team ships a change that improves sync reliability. Definition A could rise while real use stays flat.
Depth of engagement
A binary "active or not" view hides how much people use the product. Two users can both count as active and behave very differently. Useful supplements include:
- Frequency: how many days in a period a user was active. A user active 20 of 30 days is more engaged than one active 2 of 30.
- Intensity: how many core actions per active day, or minutes spent.
- Breadth: how many distinct features a user touches.
A common way to show frequency is a distribution: the share of monthly active users who were active on 1 day, 2 days, and so on. A flat or right-leaning distribution suggests habitual use. A pile at one or two days suggests casual use.
Take care with time-spent metrics. More time can mean more value, or it can mean the product is confusing. Pair time with an outcome, such as "tasks completed," before you treat it as healthy.
Edge cases
- Logged-out users. If users can act before signing in, decide whether anonymous visitors count. Counting them mixes identities. A person who uses the product on two devices, logged out, appears as two users.
- Bots and internal traffic. Exclude test accounts, employees, and automated clients. They distort counts, especially for small products.
- Reactivated users. A user who was inactive for months and returns counts as active again. Active-user totals do not separate new, continuing, and returning users, so split them when you need to understand growth.
- Definition changes. If you change the qualifying event, the history is no longer comparable. Recompute past values under the new definition, or mark the break clearly in the chart.
- Different products in one company. "Active" for a free tier and a paid tier may need different events. Keep the name distinct, such as "active paid user."
Common errors
- Counting events instead of users.
COUNT(*)gives actions.COUNT(DISTINCT user_id)gives users. - Using the wrong population. Dividing by all signups when you intended to measure only users who finished onboarding.
- Mixed windows. Comparing a calendar-month MAU for one month with a rolling 30-day number for another.
- Reporting a total with no definition. A figure like "50,000 active users" is not useful until someone can state its population, event, and window.
Exercise
A video app reports 40,000 daily active users, defined as any user with at least one event that day. The product team finds that 15,000 of those users only received a background push-notification delivery event and never opened the app. Propose a better definition in terms of population, event, and window, and explain what changes in the number.
Show answer
Population: registered users, excluding test and internal accounts. Event: a deliberate action that reflects value, such as video_played for at least 30 seconds. Window: one calendar day in a fixed time zone such as UTC. The 15,000 users who only received a notification no longer count, so the figure falls to at most 25,000. It could be lower if some of the remaining users also had only passive events. The new number measures people who watched something, not devices that received a message.
Exercise
Your MAU for February 2026 is 9,000 using a calendar month, and your MAU for March 2026 is 9,400 using a calendar month. Why might the comparison mislead, and how do you fix it?
Show answer
February has 28 days and March has 31, so March has more days in which a user can be counted as active. Some of the 400-user rise may come only from the longer window. Fix it by using a rolling 30-day window for both months, which gives each value the same length, and document the choice.