capabilities.work

Cohort-Driven Segmentation

A 2-step recipe with Mixpanel. We can help you get access.

Recipe · 2 steps

Cohort-Driven Segmentation

with Mixpanel · Product Usage Analytics

List cohorts then segment an event scoped to one cohort.

  1. Retrieve all cohorts defined in the project to confirm the requested cohort exists. Uses service account basic auth.
  2. Query event segmentation for the event scoped to the chosen cohort using a where expression that references the cohort ID.
What you'll need to have ready
  • projectId: The Mixpanel project ID.
  • cohortId: The cohort ID to scope the segmentation to.
  • eventName: The event name to segment.
  • fromDate: Segmentation start date (YYYY-MM-DD).
  • toDate: Segmentation end date (YYYY-MM-DD).
For your developer

Arazzo workflow mixpanel:cohort-driven-segmentation, 2 operations: listCohorts → querySegmentation. Specs on APIs.io.