← All help articles

Product analytics

Find out if users come back with retention, stickiness and cohorts

Sign-ups only tell you who arrived, so these insights show who comes back, how often, and which kind of user sticks around.

"Do people come back after signing up, and which ones?" PostHog answers that in a few ways:

  • Retention: of the people who signed up in a given week, how many came back in the weeks after?

  • Cohorts: do some groups of people come back more than everyone else?

  • Stickiness: how many days do people come back to do something?

  • Lifecycle: who is new, who is returning and who has gone quiet?

Each recipe below starts with the question, then the insight to use, the settings, and how to read the result. The examples use the events signed_up, uploaded_file and shared_file_link.

Do new users come back?

Of the people who sign up each week, how many come back and upload a file?

Use a Retention insight.

  1. In Product analytics, click New.

    The top of the Product analytics page, with the New button highlighted and the new insight menu opening below it
  2. Pick the Retention card, "How many users come back later."

    The new insight menu, with the Retention card highlighted
  3. Under Retention condition, pick signed_up as the first event. Keep Unique users as it is.

    The finished Retention condition sentence: Unique users who performed signed_up, first occurrence matching filters, and then returned to perform uploaded_file during the next 7 weeks
  4. Leave first occurrence matching filters as it is. It's the default.

  5. Pick uploaded_file as the event people return to perform.

  6. Set during the next to 7.

    The during the next box in the Retention condition, set to 7, highlighted
  7. Change the unit to weeks.

    The unit dropdown next to during the next 7, set to weeks, highlighted

The date range changes to Last 7 weeks. You don't need Calculation options for this, so leave that group closed.

How to read it

The retention table with the Cohort and Size columns, Week 0 to Week 7, the Mean row on top with its Week 1 cell highlighted, and one row per sign-up week below
  • Each row under Mean is one sign-up week. Size is how many people signed up that week.

  • The week columns show the share of each week's sign-ups who came back to upload a file. Week 1 is the week after they signed up.

  • The Mean row averages all the weeks. Its Size is the average cohort size, not the total. Here it's 412.

  • In this example, 38.4% come back in Week 1.

  • A cell with an outline is a week that isn't over yet, so its number isn't final.

  • Click any cell to see the people in it.

Which users come back more?

Do people who share a file come back more often than everyone else?

Make a cohort of those people, then compare it with all users in your retention insight.

Make the cohort

  1. In the NavBar, open People and groups.

    The NavBar, with People and groups highlighted
  2. Click the Cohorts tab.

    The tabs at the top of People and groups, with the Cohorts tab highlighted
  3. Click New cohort.

    The top right of the Cohorts page, with the New cohort button highlighted
  4. Type Shared a file as the name.

  5. Keep Dynamic · Updates automatically selected.

    The Type section of the new cohort form, with Dynamic · Updates automatically selected and highlighted
  6. Under Matching criteria, pick Completed event.

    The Matching criteria section, with the Completed event dropdown highlighted and shared_file_link as its event
  7. Pick shared_file_link as the event.

  8. Set the time to Last 30 days.

    The criteria row: Completed event shared_file_link within Last 30 days, with Last 30 days highlighted
  9. Click Save.

    The top right of the new cohort form, with the Save button highlighted next to Cancel

You'll see "Cohort saved. Please wait up to a few minutes for it to be calculated".

Dynamic · Updates automatically: PostHog recalculates the cohort from the latest data, so it keeps up as people's behaviour changes.

Static · Updated manually: the cohort is created once and never updated. Under Populate from, you fill it with a one-time snapshot of your criteria (Criteria · One-time snapshot) or with people you upload or add (Upload or add people).

Compare it with everyone

  1. In your retention insight, open the Breakdown group.

    The retention editor, with the closed Breakdown group highlighted
  2. Click the Breakdown button.

    The Breakdown button highlighted, with the breakdown picker opening above it
  3. In the category menu at the top of the picker, choose Cohorts.

    The breakdown picker's category menu open, with Cohorts highlighted
  4. Pick All Users, the first option.

    The breakdown picker showing cohorts, with All Users* highlighted at the top of the list
  5. Click the button again. It now reads Cohort.

    The Breakdown group with an All Users tag and the button that now reads Cohort highlighted
  6. Pick Shared a file.

    The breakdown picker showing cohorts, with Shared a file highlighted

Each pick closes the picker, so every cohort you add needs its own click.

How to read it

The retention table broken down by cohort: one summary row for All Users and one for Shared a file, with the Shared a file row highlighted
  • The table shows one summary row per cohort, with its name, total size and mean percentage.

  • Click the chevron on a row to see that cohort's weekly rows.

  • In this example, 38.4% of All Users come back in Week 1. For the 1,184 people in Shared a file, it's 61.7%.

  • People who share come back more. That doesn't prove sharing is the reason, but it tells you where to look next.

How often do they come back?

Of the people who upload files, how many do it on more than one day a week?

Use a Stickiness insight.

  1. Start a new insight as in the first recipe.

  2. Click the Stickiness tab.

    The insight type tabs, with the Stickiness tab highlighted
  3. In the series, pick uploaded_file and keep Unique users.

  4. Set the date range to Last 7 days.

    The date range button above the chart, set to Last 7 days, highlighted
  5. Set the interval to day.

    The interval dropdown next to the date range, set to day, highlighted
  6. Open the Filters group.

    The stickiness editor, with the closed Filters group highlighted
  7. Make sure Stickiness Criteria is set to greater than or equal to 1 time(s) per interval. A day counts when someone uploads at least once.

    The open Filters group, with Stickiness Criteria set to greater than or equal to 1 time(s) per interval highlighted
  8. Keep Compute as on Non-cumulative.

    The Compute as dropdown in the Filters group, set to Non-cumulative, highlighted

How to read it

The stickiness line chart, running from 1 day to 7 days, with the share of users on the y-axis
  • The x-axis runs from 1 day to 7 days. The y-axis shows the share of users.

  • With Non-cumulative, each point on the line shows the people who uploaded on exactly that many days.

  • In this example, 41.2% uploaded on 1 day only, and 3.8% uploaded on all 7 days.

  • Switch Compute as to Cumulative to see people who were active on at least that many days instead.

Stickiness has no Breakdown. To compare a cohort with everyone, use a retention insight, as in the recipe above.

Who's new, returning or going quiet?

How many of my active users are new, how many keep coming back, and how many have stopped?

Use a Lifecycle insight. This one is optional, but it's a quick way to spot people slipping away.

  1. Start a new insight.

  2. Click the Lifecycle tab.

    The insight type tabs, with the Lifecycle tab highlighted
  3. Pick one event, such as uploaded_file. Lifecycle takes a single series.

  4. Open Filters to see Lifecycle Toggles.

    The Filters group of a lifecycle insight, with Lifecycle Toggles for new, returning, resurrecting and dormant highlighted

All four toggles are on at the start.

How to read it

  • New: people who did the event in that period and were created in that period.

  • Returning: people active in the previous interval and in this one.

  • Resurrecting: people who were inactive in the previous interval and are active again now.

  • Dormant: people who were active in the previous interval but not now.

  • Anonymous events aren't counted. A person's lifecycle starts when they're identified.

Lifecycle has no Breakdown either. Compare cohorts in a retention insight.

Common problems

My new cohort shows no users. A cohort takes a few minutes to calculate after you save it. Wait a few minutes, then open it again.

I can't find Stickiness Criteria. It's inside the Filters group of the stickiness insight. Open Filters to see it.

There's no Breakdown on my stickiness or lifecycle insight. Those insights don't have one. Compare your cohort with everyone in a retention insight instead.

I can't set "during the next" above 31. 31 is the most you can enter. For a longer period, change the unit to weeks or months.

The Mean row's Size is smaller than my total sign-ups. That's expected. It's the average size of one week's cohort, not the total.

The breakdown picker closed after one pick. Picking a cohort closes it. Click the button again, which now reads "Cohort", to add the next one.

Watch it

Prefer to watch? The video Are users coming back? Retention, stickiness and cohorts (4:04) covers the same ground.

  • 0:00 Two ways to ask if users come back

  • 0:28 Build a retention insight

  • 1:08 Read the table

  • 1:41 Make a cohort

  • 2:39 Compare the cohort with everyone

  • 3:19 Stickiness