Measuring how many visitors come back with retention

Updated

Retention shows how many visitors come back after they first do something on your site. Use it to answer questions such as "how many new visitors return the following week?", "do people who sign up come back to use the product?" or "how many customers buy again within three months?".

Retention is built from data Strabber already collects, so you don't need to add any code. Changing a table recalculates it for any period, including the past.

Create a retention table

  1. Open Retention in the sidebar and click New retention. If you have no retention tables yet, click Create retention.
  2. Enter a name, such as "Sign-ups who purchase", and click Create.

The table opens with Any activity as both actions, grouped by week over the last 3 months: how many visitors come back to your site at all. Then set it up:

  1. Under Did first, choose the start action: what puts a visitor into the table.
  2. Under Then came back and did, choose the return action: what counts as coming back.
  3. Choose the Period at the top, or click Last month, Last 3 months, Last 6 months or Last year.
  4. Click Display by at the top to group visitors by day, week or month.

The page shows a chart and, below it, the cohort table. The period and Display by stay at the top of the page as you scroll.

The chart and the table update as soon as you change them. When you type a URL or a property, they wait until you stop typing. Your changes are saved automatically. The period isn't saved: a table always opens with a period that suits its grouping.

Actions

The start action and the return action can each be one of:

  • Event: a call of one of your events. Click + Where property... to count only calls with certain properties, for example plan Is equal to pro. An action can have up to 5 property conditions, and a call must match all of them.
  • Page view: a view of a page whose URL matches a condition, for example Contains /pricing.
  • Any activity: any page view on your site.

The two actions can be the same. For example, a "Purchase completed" event for both shows how many buyers buy again.

Read the cohorts

The Cohorts block lists one row per cohort. A cohort is the visitors who did the start action for the first time in the period during that day, week or month. A visitor belongs to one cohort only, the one of their first start action in the period.

  • Visitors is the size of the cohort.
  • Day 0, Week 0 or Month 0 is the cohort itself, always 100%.
  • Each next column is the share of the cohort that did the return action during the 1st, 2nd, 3rd... day, week or month after the one they joined in. A visitor who comes back several times in the same week is counted once in that week.

Strabber shows 14 days, 8 weeks or 6 months after each cohort. Columns that haven't started yet are left empty. Coming back is counted up to today, also after the end of the period, so the last cohorts fill in over time.

The All cohorts row at the top shows the average of every cohort that has reached each column, weighted by cohort size. Hover over a cell to see how many visitors it counts.

Weeks start on Monday, and months on the 1st, so the first cohort may begin a few days before the period. Days are counted in your time zone. A period can be up to 3 months long when grouped by day, up to 1 year by week, or up to 2 years by month.

The retention chart

The chart above the cohorts has two views. Switch between them with Curve and Over time:

  • Curve shows the All cohorts row as a line: 100% at Day 0, Week 0 or Month 0, then the share that came back in each following day, week or month. It shows how quickly visitors drop off, and where retention levels out.
  • Over time shows one column of the table as a line across the cohorts, oldest first. Choose the column with Follow, for example Week 1. It shows whether retention is getting better or worse: a rising line means newer cohorts come back more than older ones. Use it to see the effect of a product change or a campaign.

In Over time, cohorts that haven't reached the chosen column yet, and cohorts with no visitors, are left out of the line rather than shown as 0%.

The chart and the table always use the same grouping, so every point on the chart matches a number in the table. The view you choose isn't saved: a retention table always opens on Curve.

If the table can't be shown, for example because the period is too long or an event was deleted, the page tells you why instead.

How visitors are matched

Strabber tells visitors apart by the identifier the tracking code stores in their browser. A visitor who comes back on another device or browser, or after clearing their cookies, counts as a new visitor. Event calls recorded before visitors got an identifier are only matched within the same recording.

Manage retention tables

  • Your retention tables are listed on the Retention page with their actions, grouping and when they were created, newest first. They're also listed on the left, where Search finds one by name.
  • Everyone with access to the site sees its retention tables.
  • To rename a table, click its name at the top of the page.
  • To delete a table, click Delete next to the period, or use the ... menu of its row on the Retention page. To delete several, select them and click Delete selected. Events and recordings aren't affected.

If an event of a table is deleted, the table asks you to choose another event.