You are viewing docs for v0.25.
The latest release is v0.25.0.

Concepts

Cohorly is a product analytics platform in the spirit of Mixpanel. Instrument your apps with the SDKs or the HTTP API, and get event analytics - segmentation, funnels, retention, and user profiles - in the Cohorly dashboard.

Why Cohorly

  • Simple integration. One project token, one track() call, and events start flowing. No schema to define up front.
  • Mixpanel-shaped API. If you have used Mixpanel, the concepts (track, identify, people profiles, super properties) and the HTTP ingestion shape will feel familiar.
  • SDKs everywhere. Client SDKs for web, React, Next.js, React Native, iOS, and Android, plus server SDKs for Node.js, NestJS, Python, PHP, and Go.
  • Multi-project. One account tracks many apps, each isolated by its own project token.

Core concepts

Events

An event is a named action a user took, with an optional bag of properties. Every event carries a distinct_id (who), a time (when, in unix milliseconds), and a unique $insert_id used for deduplication.

json
{
"event": "Signed Up",
"properties": {
"distinct_id": "user_123",
"time": 1751600000000,
"$insert_id": "b1f2c3d4-...",
"plan": "pro"
}
}

distinct_id

The distinct_id identifies the user or device an event belongs to. The SDKs start with an anonymous id and, when you call identify(), switch to your real user id. Pre-login activity follows the user forward automatically

  • Cohorly links the anonymous id's history onto the identified id, so a funnel or retention query spanning the login boundary counts one person, not two. Call reset() on logout so a shared device doesn't carry one person's identity into the next person's session. See Identity for the full mechanics.

Projects and tokens

Every app you track is a project. Each project has a UUID token that authenticates ingestion - the SDKs send it with each event, and Cohorly routes the data to the matching project. All stored data is scoped by project. Create projects and copy tokens in the dashboard under Settings.

Organizations and members

Projects belong to an organization. Owners invite teammates by e-mail from Settings > Account, as a Member or an Owner (owners can also drop events, manage tokens, billing and members). Each invite is a single-use link that expires in 7 days; the person signs up with the invited address, or signs in if they already have an account, and lands in your organization. Pending invites can be resent or revoked from the same screen.

People profiles

Beyond events, each user has a profile: a set of properties you update with the People API (set, setOnce, increment, unset, delete), which map to the /engage endpoint.

Cohorts

A cohort is a saved user segment. Cohorts can combine profile properties and event behavior, and are evaluated against the project's identity data at query time. Use them to filter analyses, inspect members, or target a feature flag rule. In the dashboard they live under Users > Cohorts. Property criteria can compare text, numbers, and app versions: the version_* operators compare major.minor.patch component-wise and sort a -prerelease below the same release, so "app 1.57.0 or newer" is one criterion instead of a list of contains prefixes.

A cohort can also come from a query. Click a point or a segment of a trend in Explore, then Save as cohort in the panel that opens: the cohort is everyone behind that point (the metric, the day, the segment and the filters in force, over the period the chart showed), not only the users listed on screen. Its members are recounted from that query every time the cohort is read, and the day stays the one you clicked. Its definition cannot be edited; you can rename it, delete it or open its query in Explore.

The same panel has Use as filter: one click saves that cohort under an automatic name and filters the chart by it. The chart runs again for the people behind the point, and a chip "In cohort ..." appears above it. Remove the chip to drop the filter; the cohort stays in Cohorts. If the cohort cannot be saved, nothing is filtered and the panel says so.

Feature flags

A feature flag controls application behavior for a project without requiring a new deploy. Flags can be simple on/off switches, percentage rollouts, or named variants with JSON payloads. Rules are evaluated from top to bottom and can target cohorts or exact distinct IDs. See the Feature Flags guide and Feature Flags API.

The platform

PieceWhat it is
Dashboardcohorly.velloalabs.com - six areas: Home; Explore, one builder for trends, funnels, retention and flows (saved reports open from its Open picker); Boards; Users (profiles and cohorts); Data (Lexicon, Health, Definitions, Live Events, Flags); and AI where enabled. Press ⌘K to search events, properties, reports, boards and cohorts.
Ingestion and Query APIcohorly-service.velloalabs.com - HTTP endpoints for sending events and pulling analytics results.
Client SDKsWeb @cohorly/web, React @cohorly/react, Next.js @cohorly/nextjs, React Native @cohorly/react-native, iOS CohorlySwift, Android cohorly-android.
Server SDKsNode.js @cohorly/node, NestJS @cohorly/nest, Python cohorly, PHP cohorly/cohorly-php, Go cohorly-go.

Next steps

Quickstart
Grab your project token and send your first event in minutes.
Install an SDK
Instrument a client or server app - web, mobile, Node.js, Python, PHP, or Go.
HTTP API
Send events directly over HTTP without an SDK.
PreviousOverview
NextQuickstart