capabilities.work

Track Event and Segment

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

Recipe · 2 steps

Track Event and Segment

with Mixpanel · Product Telemetry Instrumentation

Track an event then read its segmentation time series.

  1. Send a single event to Mixpanel in real time. Authentication uses the project token passed as the query parameter.
  2. Query event segmentation for the tracked event over the supplied date range, segmenting by the optional property expression. The Query API uses service account basic auth.
What you'll need to have ready
  • projectToken: Mixpanel project token used for client-side ingestion auth.
  • projectId: The Mixpanel project ID used by the Query API.
  • distinctId: Unique identifier for the user who performed the event.
  • eventName: The event name to track and then segment on.
  • fromDate: Segmentation start date (YYYY-MM-DD).
  • toDate: Segmentation end date (YYYY-MM-DD).
  • segmentOn: Optional property expression to segment results by.
For your developer

Arazzo workflow mixpanel:track-and-segment, 2 operations: trackEvent → querySegmentation. Specs on APIs.io.