Sub topic 8
DAU, WAU, MAU and Stickiness
This chapter assumes you know what an event is, how a metric is defined by population, event, and time window, and basic SQL (SELECT, JOIN, GROUP BY). It builds on the previous chapter, which decided what counts as an "active" user. Here you count those users per day, week, and month, and combine the counts into a ratio called stickiness.
What the acronyms measure
- DAU (daily active users) is the number of distinct users who performed a qualifying action on one calendar day.
- WAU (weekly active users) is the number of distinct users who performed a qualifying action in a 7-day window.
- MAU (monthly active users) is the number of distinct users who performed a qualifying action in a 30-day window, or in a calendar month.
All three count distinct users, not events. A user who acts 50 times in a day adds 1 to DAU. All three also depend on one earlier decision: what counts as a qualifying action. If you count any event, background syncs and push-notification opens make users look active when they are not. Pick one meaningful core action, such as sending a message or creating a project, and use it for every window.
The windows are nested. Anyone active on a given day is also active in any week or month that contains that day, so DAU is never larger than WAU, and WAU is never larger than MAU.
Stickiness
Stickiness is the share of your monthly users who also show up on a typical day:
stickiness = DAU / MAU
If 2,000 users are active on a day and 10,000 are active in the 30 days ending that day, stickiness is 2,000 / 10,000 = 20%. Read it as "on an average day, 20% of the people who use the product in a month are using it today." If every monthly user came every day, the ratio would be 100%. A ratio near 3% (1 day in 30) means most monthly users come once.
You can build the same ratio from other windows. DAU/WAU shows how many of this week's users are here today. WAU/MAU shows how many of this month's users came this week. Choose the pair that matches the product's natural rhythm. A payroll tool used once every two weeks will always look weak on DAU/MAU, but WAU/MAU or a monthly measure fits it better.
Computing it in SQL
The query below uses the schema from earlier chapters, events(user_id, event_name, event_time). It counts only core_action events, so background activity does not inflate the numbers.
-- DAU, MAU (trailing 30 days) and stickiness for 2026-03-31
WITH dau AS (
SELECT COUNT(DISTINCT user_id) AS n
FROM events
WHERE event_name = 'core_action'
AND event_time >= DATE '2026-03-31'
AND event_time < DATE '2026-04-01'
),
mau AS (
SELECT COUNT(DISTINCT user_id) AS n
FROM events
WHERE event_name = 'core_action'
AND event_time >= DATE '2026-04-01' - INTERVAL '30 days'
AND event_time < DATE '2026-04-01'
)
SELECT dau.n AS dau, mau.n AS mau, dau.n * 1.0 / mau.n AS stickiness
FROM dau, mau;Points to notice:
- Both windows end at the same instant, midnight at the start of 2026-04-01. The 30-day window includes 2026-03-31 itself, so DAU's users are always a subset of MAU's users.
- The
* 1.0forces decimal division. Without it, many databases do integer division and return 0. - The half-open range (
>=start,<end) avoids double-counting events at exactly midnight. - For WAU, change
'30 days'to'7 days'.
Rolling windows versus calendar windows
A rolling (trailing) window counts the last 30 days ending on a given day. A calendar window counts a fixed month or week. They give different numbers, and mixing them is a common source of confusion.
| Choice | Strength | Weakness |
|---|---|---|
| Rolling 30 days | Computed for every day, so it plots as a smooth trend | Months have 28 to 31 days, so it does not match a calendar month report |
| Calendar month | Matches finance and board reporting | Compares unevenly across months of different lengths, and only updates once a month |
Whichever you pick, write it into the metric definition and keep it. Moving from calendar to rolling windows mid-year makes the trend line jump for reasons unrelated to user behavior.
Edge cases that change the number
- Single day versus average. A DAU taken on a Sunday for a work tool is far lower than on a Tuesday. A single-day stickiness is therefore noisy. A steadier measure is the average DAU over the last 30 days divided by the MAU at the end of the period. State which one you report.
- Identity. Distinct counts are only as good as the user ID. If anonymous visitors get a new ID per device, one person using a phone and a laptop counts twice, and MAU is inflated. If logged-out activity is dropped, MAU is understated. Decide which ID the metric uses.
- Time zones. "Day" depends on a time zone. If events are stored in UTC and your users are mostly in one region, one local evening can split across two UTC days. Choose one reporting zone and apply it everywhere.
- Bots and internal users. Test accounts, employees, and automated traffic all count as distinct users unless you filter them. Filter them before counting.
- New users in MAU. A big signup campaign raises MAU immediately. Many of those users may never return, so stickiness drops even though the product did not change. Check it alongside activation and retention before concluding anything.
- Zero denominators. If no one was active in the window,
mau.nis 0 and the division fails or returns null. Guard for it in production queries, for example withNULLIF(mau.n, 0).
What stickiness does and does not tell you
Stickiness describes frequency of use among monthly users. It does not tell you whether the product is growing, and it can mislead in two directions.
- A high ratio with a tiny MAU can mean a small group of loyal users and few new ones.
- A rising ratio can come from losing occasional users, which shrinks MAU while DAU holds steady. The product looks stickier, but it is getting smaller.
For this reason, report DAU, MAU, and stickiness together, not the ratio alone. When the ratio changes, look at which of the two counts moved.
There is also no universal good value. Chat and social products expect a high ratio. Tax software or travel booking should expect a low one, because the need arises rarely. Compare against your own history and against products with a similar natural frequency, not against a number from an article.
Exercise
A note-taking app has 3,000 users who performed the core action on 2026-05-10, and 12,000 users who performed it in the 30 days ending that day. What is the stickiness? Then the team launches a campaign that adds 8,000 one-time users to the month, with DAU unchanged. What happens to stickiness, and what should you check before deciding the product got worse?
Show answer
Stickiness is 3,000 / 12,000 = 25%. After the campaign, MAU is 20,000 and DAU is still 3,000, so stickiness falls to 3,000 / 20,000 = 15%. The product did not change for existing users. The drop comes from a larger denominator. Check DAU and MAU separately, and look at retention for the campaign cohort, to see whether the new users are low-quality or just not yet engaged.
Exercise
Why is it wrong to compute WAU by summing seven daily DAU values, and how do you compute it correctly in SQL?
Show answer
A user active on several days is counted once per day in the sum, so the total exceeds the number of distinct people. Compute it with COUNT(DISTINCT userid) over a single 7-day window, for example eventtime >= enddate - INTERVAL '7 days' AND eventtime < end_date.