Group or Cohort data

In Leanplum, in addition to filters, you can group or cohort a chart to view a metric across different subsets of your user base.

Group

Once you have selected the report and metric you want to group, and applied any relevant filters, you're ready to group your data.

Let's try to build a report that shows how purchases vary across different user devices. We'll start by using the metric total purchases:

  1. Select the metric total purchases.
  2. Click the Group by dropdown at the top of the chart.
  3. Select the user targeting criteria you want to group by. Choose technology > device model.
  4. Click the refresh icon to apply it.

Cohort

Cohorts work just like groups, except they show a stacked line chart over time and include a table with each cohort's value for each time increment.

Using the first example above, let's cohort total purchases by device model.

  1. Select the metric total purchases.
  2. Click the Cohort by dropdown at the top of the chart.
  3. Select the user targeting criteria you want to cohort by. Choose technology > device model.
  4. Click the refresh icon to apply it.

Examples

You can group or cohort a metric by most user targeting criteria.

  • Total purchases by country: If you want to compare purchaes across all countries, you can group or cohort the metric total purchases by Localization > Country.
  • Average revenue by OS: If you want to compare revenue between Android and iOS, you can group/cohort the metric average revenue per daily user by Technology > OS name.
  • A custom event by its parameter: If you have a custom event you're tracking in Leanplum, you can view the occurrences of that event grouped/cohorted by one of its parameters (Selected event > Parameter). Be sure to click Name and select the parameter you want to group/cohort by.

Groups work perfectly with filters. Remember that data is filtered before it is grouped.

  • A single country's purchases by device. Filter the Total purchases metric by Localization > Country with the country as the filter criteria, then group by Technology > Device model.
  • iOS purchases by country. Filter the Total purchases metric by Technology > OS name with iOS as the filter criteria, then group by Localization > Country.

Was this article helpful?
Have more questions? Submit a request