Retention
Use Cases
Maximizing user retention is a critical part of your business's success. Mitzu's retention feature lets you analyze how users or groups are retained by your product or marketing site.
Quick Start
In this example, we will showcase how website visitors come back to buy. We consider users "retained" if they check out.
The goal of the analysis is to visualize our users' overall monthly retention rate for one year. On top of that, we want to see how the retention rate changes over time with monthly granularity (cohort retention).
Step 1. Switch to retention and select events
First, switch to the retention insight tab and select the events you want to analyze.
As the Initial Step, I will select Page Visit, since we are interested in users who
visited the website.
Remember that you can set a segment filter on this event. For example, an Nth event filter with Nth event set to 1 and Type set to Ever narrows the scope of the analysis to the user's first visit.
We will now apply a property filter on User Country Code. We will select only users who performed Page Visit events in the US or Great Britain (us and gb).
For the Retaining Step, we can pick Checkout.

Step 2. Select the retention window
For this example, in the Settings section under the steps, I will set Return period to Month and pick All in the period picker next to it (or click the All button).

The retention period is the period you want to analyze retention for.
All means we will analyze the month over month retention of our user base for the last year.
Alternatively, I could pick only 1 in the period picker, which would show the retention rate of users after their first month.
Step 3. Select trends vs. overall measurement configuration
Open the date picker and choose 1Y under Relative date range, or set a custom date range of one year. The screenshots use 2021.
By default, Mitzu shows the change in retention rate over time. However, you can also visualize the retention rate as a whole (overall retention rate).

The results
By selecting the Overall retention configuration with All periods selected, we will see the typical retention curve on our graph.

This shows the month-over-month retention rate for our users, regardless of which month they visited the website, as long as the visit was within the date range.
Cohort retention / retention trend over time
You can select the Monthly retention trend configuration for the trends vs. overall measurement configuration.
This shows you the change in retention rate over time for each of the 12 months.
This chart can become very noisy if you have a long time window.

It is often better to visualize this as a heatmap.
Switching the chart type to the heatmap selects All periods and Return period to one unit of the trend (one month for a Monthly retention trend, one week for a Weekly retention trend), so every cohort gets a full row. You can change both afterwards.

However, if this is still too noisy, you can pick only 1 and 4 in the period picker, and visualize the result as a line chart.

Retention features
Retention period
The retention period is the configuration that lets you compare retention rates across different periods.
In the Periods row under Settings, you can select multiple values simultaneously. Selected periods show a checkmark, and the later periods are under More.
For example, by selecting 1 and 2 with Month as the Return period, you will see the retention rate for the first and second months after the initial step.
The retention period < 1 means Month 0, which measures the retention rate of users in the same Month as the initial step.

Mitzu calculates retention in relative periods. For example, if the retention period is set to 4 weeks, users are considered retained if they perform the retaining event between 21 and 28 days after the initial step.
In other words, the retention period doesn't refer to calendar months or weeks.
Retention window granularity
The Return period row lets you choose the granularity of the retention buckets:
Day- day-over-day retention.Week- week-over-week retention.Month- month-over-month retention (used in this guide's examples).Year- year-over-year retention.

Pick the smallest granularity that still produces meaningful cohort sizes — daily retention works for high-frequency products like messaging apps, while monthly or yearly is more appropriate for subscription products.
Holding constant
Similar to Funnels, you can set a custom holding constant for the retention analysis with the Holding constant row under Settings.
For example, in a subscription product where the initial step is subscription_started and the retaining step is payment_received, you would set Holding constant to subscription_id.
This measures the retention rate of users who performed the payment_received event with the same subscription_id as the one their subscription was started with. This is crucial for correctly attributing the retaining events.
The retaining entity is unchanged — retention is still measured for the entity set in Analyze by (the user by default). The holding constant only adds a requirement that the retaining event shares the same value (here, the same subscription_id) as the initial event; it never lets a different user's event count as a retention.
As with funnels, the Analyze by setting changes the target entity for the retention analysis.
You can switch to Group to measure the retention rate of groups that performed the payment_received event after a single user from the group performed the subscription_started event.
Breakdowns
Retention steps can be broken down like any segment, including by the hour, weekday or month of a timestamp, one part of a text property, or ranges of a number. See Segment breakdowns.
Measurement types
By default, Mitzu measures the retention rate of users who performed the initial and retaining events.
However, you can change this behavior by selecting a different measurement type in the Measure row under Settings: Retention rate, Users or Aggregate property.

Select Users to show how many users retained in each period instead of the share of the cohort. When Analyze by is set to another entity, the option is named after it, such as Sessions, or Uniques for a property, and counts that. The tooltip still shows the retention rate next to the count.
Mitzu also supports the Aggregate property measurement type. As with funnels, this configuration makes Mitzu aggregate any property from the last step (the retaining step).
For example, in our case above, we can select the Aggregate property measurement type and choose the Sum aggregation function with the Event Props → Cost Usd property of the Checkout event.

This visualizes the total checkout value of the retained users in month 1 and month 4, for each monthly cohort.

On or after vs. on that period
The Returned row under Settings controls how Mitzu considers users retained.
If you select On or after, Mitzu considers users retained if they performed the retaining event during or after the retention period.
Consider an app with sporadic usage where every user opens it once a month.
If I visualize the week-over-week retention rate of users who open the app on the last day of the month, for three weeks I would see a drop in the retention rate. To reduce this noise, you can set Returned to On or after. This makes Mitzu consider each week before the retaining event as a retained week.
In contrast, On that <period> (for example On that week) makes Mitzu consider users retained only for the exact time period (week, month, etc.) in which they performed the retaining event.
Here the user returned once, in week 2:


Can the retention rate go up?
Yes, and whether that is expected depends on the measurement type and on whether the base stays fixed.
On that <period>: the rate can move up and down freely. Each period asks its own question — did the user return in that period. Someone can return in week 1, skip week 2 and come back in week 3, so a row that rises is normal, not a defect.On or after: the retained group can only shrink as the periods go on, because anyone retained in week 3 was also retained in week 2. With a fixed base the rate therefore only falls.
Cohort views — the heatmap and the daily, weekly and monthly trends — always divide by the full cohort, so the base is fixed and the rule above holds exactly: On or after only falls along a row, On that <period> may not.
Overall retention with the Eligible users base is the exception. There the base shrinks along with the retained group, because a later period counts only the users who have had that long to return. The rate can rise at the end even with On or after. See Incomplete periods for why, and what to do about it.
Retention attribution
The Retention attribution setting under Advanced lets you choose the attribution of the retention.
It has no visible effect on the "Retention rate" aggregation type (which is the default aggregation type).
Currently, we support two types of retention attribution:
Every event- each event is considered a "retaining" event of the retention insight.First event- only the first event of the retaining step (segment) is considered a retaining event.


Timestamp comparison
Retention often combines events from different sources — for example backend and frontend events — whose clocks are not always perfectly aligned for the same user interaction. When that happens, a retaining event that logically falls inside a retention period can land a few seconds before the period start and the user is counted as not retained for that period.
Set Timestamp comparison under Advanced to Loose to allow a 1 minute grace period when deciding whether a retaining event falls within a retention period. With it on, a retaining event can happen up to 1 minute before the period start and still count.
Here the return (B) was logged 20 seconds before the initial event (A):


The grace period only relaxes the start of each retention period, so returns never leak across adjacent buckets. The default comes from the Loose timestamp comparison setting in your workspace's insights settings, which is on for retention in new workspaces, and can be overridden per retention insight.
What it does to Day 0 / Week 0 / Month 0
Period 0 starts at the initial event itself, so this setting decides what the first retention period measures:
- On: a retaining event at the same moment as the initial one already lands in period 0. When the retaining step is identical to the initial one — same event, same filters — every initial event is its own return, so period 0 is 100% by construction. Any difference between the two steps (a different event, or a filter on one side) breaks that, and period 0 measures real returns again.
- Off: the retaining event has to land strictly after the initial one, so a retaining event at that same moment doesn't count. With identical steps, period 0 means the user performed the event a second time.
Both readings are correct, but they are not comparable: don't compare a period 0 measured with the setting on against one measured with it off.
Trend vs. overall measurement configuration
As discussed in our example above, retention insights also support trend and overall measurement configurations.
Retention trends are called Daily retention trend, Weekly retention trend and Monthly retention trend. Once selected, they help you understand how your retention rate changes over time.
Overall retention shows how the passage of time affects the retention rate for users who performed the initial event and then repeatedly performed the retaining event.
Retention base
Retention is sensitive to periods that have not fully elapsed yet: a user who performed the initial event two weeks ago has not had the chance to return in Week 5. The base row under Advanced, named after the Analyze by entity (User base when you count users, Session base for sessions, Retention base for a property), decides how such users are counted, and its options follow the same entity (Eligible sessions / All sessions, and so on); while Advanced is closed, its header shows a chip when the base differs from the workspace default. The chart header always shows which base is in effect, and the workspace default lives in Insights settings.
- Eligible users (the default): a user counts towards a period only once that period has fully elapsed for them — only users who could have returned are in that period's base. The later periods therefore rest on fewer users. Hover the chart header badge to see the rule.
- All users: every user stays in the base for every period. Users who have not reached a period yet count as not returned, so the last periods dip. This is what a hand-written retention query usually produces.
Here user U1 started more than two weeks ago and returned in week 1. U2 started about a week ago, so week 1 has not ended for U2 yet:


The two bases give identical numbers once every period has elapsed for everyone in the date range. They only differ at the recent end of the chart.
The base applies to overall retention only. Cohort views — the heatmap and the daily, weekly and monthly trends — always divide by the full cohort so that every cell in a row stays comparable, and the setting makes no difference to them.
Incomplete periods
Whatever the base, some periods have not finished for everyone yet. Mitzu shows them and marks them, so you can see the latest values without mistaking them for final ones.
- Overall retention with the
Eligible usersbase: the last periods, which no user in the date range has finished yet (not even those who joined at the very start of the range), are drawn dotted and marked with*. They show the users who are already inside those periods, and their values can still rise until the periods close. Every other point counts only the users who have finished that period; hover it to see how many that is, out of the users who have finished the first period. With theAll usersbase every user is in every period from the start, so nothing is marked. - Cohort views (the heatmap and the daily/weekly/monthly trend) always divide by the full cohort, so every cell in a row is comparable. A cell whose period has not finished for every member of the cohort shows the value so far, marked with
*and a dotted outline; that value can only rise as time passes. A cell whose period has not started for anyone is left blank.
The chart header shows an Incomplete periods marked badge whenever something is marked. Untick Show incomplete periods in the More menu to leave those periods out of the chart and the table instead; the badge then reads Incomplete periods hidden. The workspace default for new charts lives in Insights settings.
When the base is Eligible users, the overall curve can tick up at the very end: the last periods are measured on the users who joined at the start of the date range, and those are often long-time users who only look new because the range starts there. If you want cohorts of genuinely new users, add the Nth event segment filter to the initial step with Nth event set to 1 and Type set to Ever, so only each user's first-ever occurrence of the event starts a cohort. This is not a data problem, it is the base rule at work.
Data sampling
Retention queries are sensitive to long time horizons. Mitzu can downsample the events it reads and the entities it analyzes to keep queries fast — see Data sampling and resolution for the full description of Resolution and User sampling.
Comparison
The Comparison feature lets you analyze data trends by comparing them against those from a previous time period. For example, you can compare data points from the last month with data from the preceding month.
To activate the comparison, select the desired comparison window from the dropdown menu.
In retention analysis, comparisons are currently available using absolute values. Additional comparison methods will be introduced in future updates. For information about upcoming features, please contact us at support@mitzu.io.

Comparison with absolute values
When using comparison with absolute values, the chart displays both:
- the data points from the selected insight time window, and
- the data points offset by the chosen comparison time period.
This lets you view both trends simultaneously and identify changes or patterns between the two time windows.
