Retention
See how many signed-in people come back the next day, week or month, grouped by when they first visited.
Retention shows how many people come back after their first visit, the next day, week or month. Open Retention under Product in the sidebar. Retention comes with Insight and Foresight.
It needs a user ID
Retention counts only the people your site names with a user ID, since an anonymous visitor gets a new ID every day. Pass the user ID once someone signs in. Until a site does, the page shows the snippet to add.
Retention counts the signed-in visits recorded since it launched in November 2026. Earlier visits do not count, even on a site that already sent user IDs.
The page shows counts and shares only. It never shows who a person is, and Ultanimus stores a hash of each ID, never the ID itself.
Read the table
Each row of Cohorts is the people first seen in one day, week or month of the range. People is how many there were. Each column after it is a number of periods after the first one, so Day 1 is the next day and Day 7 is a week later.
- A cell is the share of the row's people who came back in that period. Hover it for the count.
- All cohorts, the first row, combines every row, weighted by its people.
- The last day, week or month of the range is still running, so its cells have a dashed outline and can still grow. All cohorts leaves them out.
The chart above the table draws the All cohorts row. The cards over it give the people in the range and the share who came back after 1, 7 and 28 days, 1, 4 and 12 weeks, or 1, 3 and 12 months, as far as the range reaches.
Choose what counts
Group by picks days, weeks or months. Each range offers the ones that give between 2 and 31 periods.
| Range | Group by |
|---|---|
| Last 7 days | Day |
| Last 30 days | Day or week |
| Last 90 days | Week or month |
| Last 12 months | Month |
Today holds one day, so it has nothing to compare. Pick 7 days or more.
Coming back means picks what a return is. Any visit is the default. Pick a goal or an event to count only the periods where people reached it, such as a purchase. An event your server sends with the same user ID counts too. A person still joins a cohort with their first visit, whatever counts as coming back.
The choices stay in the address, so you can bookmark a view or send it to a teammate.
How retention counts
- A person joins the cohort of their first visit in the range, not their first visit ever. With Last 30 days, someone who first came in May joins the cohort of their first day in the range.
- A person counts once per period, however many times they come back in it.
- Filters apply to every visit and event. With Country is Germany set, a person's visits from Germany count and visits from elsewhere do not.
- Days, weeks and months follow the site's time zone. Weeks start on Monday.
- On a site with more than 5 million events in the range, retention reads a sample of people and scales the counts back up. The table then shows Sampled.
- Days imported hold daily totals, not people, so retention leaves them out.
Share links do not show retention.
Download the table
The download button on Cohorts saves the table as CSV, one row per cohort, with each share as a number between 0 and 1.
In the API
The query endpoint takes retention and answers with the same cohorts the page shows.
{ "retention": { "goal": "signup" }, "interval": "week", "date_range": { "preset": "90d" } }Plans
On Glance, Retention shows what it does with demo numbers and the plan that has it. The query endpoint answers ULT-1203 for retention on Glance.