> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/analytics-monitoring/mixpanel.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Mixpanel

Mixpanel is a product analytics platform. Query events and activity, update user and group profiles, add annotations and manage data deletion.

![Mixpanel logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-221498f7148aaf9e36f053824db2bfd7fb5eba6c%2Fmixpanel.png?alt=media)

|                    |                                                                                              |
| ------------------ | -------------------------------------------------------------------------------------------- |
| **Category**       | [Analytics and monitoring](https://docs.fastn.ai/connectors/catalog/analytics-monitoring.md) |
| **Website**        | [mixpanel.com](https://mixpanel.com)                                                         |
| **Authentication** | Username and password                                                                        |
| **Slug**           | `mixpanel`                                                                                   |
| **On fastn.ai**    | [Embed Mixpanel in your product](https://fastn.ai/integrations/mixpanel)                     |

## Setup

Your customers enter their username and password for Mixpanel when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Mixpanel from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Mixpanel**.
2. Select **Connect** on the Mixpanel card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Mixpanel's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Activity Stream Query</td><td><code>activityStream</code></td><td>Return the chronological event activity stream for one or more users over a date range (Query API).</td></tr><tr><td>Append to List Property</td><td><code>appendToListProperty</code></td><td>Append values to list properties on a Mixpanel user profile ($append). Each value is added to the end of the list.</td></tr><tr><td>Average Segmentation Query</td><td><code>segmentationAverage</code></td><td>Average a numeric expression of an event over time, optionally segmented (Query API, maintenance mode).</td></tr><tr><td>Batch Update Groups</td><td><code>batchUpdateGroups</code></td><td>Update up to 200 Mixpanel group profiles in one request. Provide the raw JSON array of group update objects (each with $token, $group_key, $group_id and an operator such as $set).</td></tr><tr><td>Batch Update Profiles</td><td><code>batchUpdateProfiles</code></td><td>Update up to 2000 Mixpanel user profiles in one request. Provide the raw JSON array of profile update objects (each with $token, $distinct_id and an operator such as $set).</td></tr><tr><td>Cancel Data Deletion Task</td><td><code>cancelDataDeletion</code></td><td>Cancel a pending GDPR/CCPA data-deletion task by task ID. Requires OAuth/Service Account authorization.</td></tr><tr><td>Create Annotation</td><td><code>createAnnotation</code></td><td>Create a dated annotation in the project. Requires a Service Account credential.</td></tr><tr><td>Create Data Deletion Task</td><td><code>createDataDeletion</code></td><td>Create a GDPR/CCPA data-deletion task for the given distinct IDs. Requires OAuth/Service Account authorization.</td></tr><tr><td>Create Identity</td><td><code>createIdentity</code></td><td>Associate an anonymous ID with an identified user ID by sending a $identify event to the ingestion API (Original ID Merge). $anon_id must be a UUID v4 not already merged.</td></tr><tr><td>Create Service Account</td><td><code>createServiceAccount</code></td><td>Create a new service account in an organization with a role and optional expiry. Requires an owner/admin Service Account credential.</td></tr></tbody></table>

<details>

<summary>View 40 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Delete Annotation</td><td><code>deleteAnnotation</code></td><td>Delete an annotation by ID. Requires a Service Account credential.</td></tr><tr><td>Delete Group</td><td><code>deleteGroup</code></td><td>Permanently delete a Mixpanel group profile ($delete), identified by group_key and group_id.</td></tr><tr><td>Delete Profile</td><td><code>deleteProfile</code></td><td>Permanently delete a Mixpanel user profile ($delete). This removes the profile but not the user's past events.</td></tr><tr><td>Delete Schema</td><td><code>deleteSchema</code></td><td>Delete a Lexicon schema by entity type and name. Requires a Service Account credential.</td></tr><tr><td>Delete Service Account</td><td><code>deleteServiceAccount</code></td><td>Delete a service account by ID within an organization. Requires an owner/admin Service Account credential.</td></tr><tr><td>Frequency Query</td><td><code>retentionFrequency</code></td><td>Query how often users perform an event within a time unit (addiction/frequency report, Query API).</td></tr><tr><td>Funnels Query</td><td><code>funnelsQuery</code></td><td>Query conversion data for a saved funnel over a date range (Query API, maintenance mode).</td></tr><tr><td>Get Annotation</td><td><code>getAnnotation</code></td><td>Get a single annotation by ID. Requires a Service Account credential.</td></tr><tr><td>Get Data Deletion Task</td><td><code>getDataDeletion</code></td><td>Get the status of a GDPR/CCPA data-deletion task by task ID. Requires OAuth/Service Account authorization.</td></tr><tr><td>Get Pipeline Status</td><td><code>getPipelineStatus</code></td><td>Get the status of a data pipeline (warehouse export) by name, including succeeded/retried/canceled jobs.</td></tr><tr><td>Get Schema</td><td><code>getSchema</code></td><td>Get a single Lexicon schema by entity type and name. Requires a Service Account credential.</td></tr><tr><td>Get Service Account</td><td><code>getServiceAccount</code></td><td>Get a service account by ID within an organization. Requires an owner/admin Service Account credential.</td></tr><tr><td>Import Event</td><td><code>importEvent</code></td><td>Import a historical event into Mixpanel via the /import endpoint (authenticated, supports events older than 5 days). Requires $insert_id for deduplication.</td></tr><tr><td>Increment Profile Property</td><td><code>incrementProfileProperty</code></td><td>Increment numeric properties on a Mixpanel user profile ($add). Each value is added to the current value.</td></tr><tr><td>Insights Query</td><td><code>insights</code></td><td>Fetch the computed data for a saved Insights report by its bookmark ID (Query API).</td></tr><tr><td>List Annotations</td><td><code>listAnnotations</code></td><td>List all annotations in the project. Requires a Service Account credential.</td></tr><tr><td>List Cohorts</td><td><code>listCohorts</code></td><td>List all saved cohorts in the project with their id, name, and member count (Query API).</td></tr><tr><td>List Saved Funnels</td><td><code>listSavedFunnels</code></td><td>List the saved funnels (funnel_id and name) defined in the Mixpanel project.</td></tr><tr><td>List Schemas</td><td><code>listSchemas</code></td><td>List all Lexicon data-dictionary schemas defined in the project. Requires a Service Account credential.</td></tr><tr><td>List Schemas For Entity</td><td><code>listSchemasForEntity</code></td><td>List Lexicon schemas for a specific entity type (event, user, group, or lookup). Requires a Service Account credential.</td></tr><tr><td>List Service Accounts</td><td><code>listServiceAccounts</code></td><td>List all service accounts in an organization. Requires an owner/admin Service Account credential.</td></tr><tr><td>Numeric Segmentation Query</td><td><code>segmentationNumeric</code></td><td>Bucket a numeric property of an event into ranges over time (Query API, maintenance mode).</td></tr><tr><td>Query Profiles</td><td><code>queryProfiles</code></td><td>Query stored user profiles by filter expression or distinct IDs, with pagination (Query API /engage).</td></tr><tr><td>Remove from Group List Property</td><td><code>removeFromGroupListProperty</code></td><td>Remove values from list properties on a Mixpanel group profile ($remove).</td></tr><tr><td>Remove from List Property</td><td><code>removeFromListProperty</code></td><td>Remove values from list properties on a Mixpanel user profile ($remove). Each value is removed from the property's list.</td></tr><tr><td>Retention Query</td><td><code>retention</code></td><td>Query cohort retention: how many users returned to perform an event after a born event (Query API).</td></tr><tr><td>Segmentation Query</td><td><code>segmentation</code></td><td>Query event counts over time, optionally segmented by a property and filtered by an expression (Query API, maintenance mode).</td></tr><tr><td>Set Group Properties</td><td><code>setGroupProperties</code></td><td>Set properties on a Mixpanel group profile ($set). The group is identified by group_key and group_id.</td></tr><tr><td>Set Group Properties Once</td><td><code>setGroupPropertiesOnce</code></td><td>Set properties on a Mixpanel group profile only if not already set ($set_once).</td></tr><tr><td>Set Profile Properties</td><td><code>setProfileProperties</code></td><td>Set properties on a Mixpanel user profile ($set). Overwrites existing values for the given properties.</td></tr><tr><td>Set Profile Properties Once</td><td><code>setProfilePropertiesOnce</code></td><td>Set properties on a Mixpanel user profile only if they are not already set ($set_once). Existing values are preserved.</td></tr><tr><td>Sum Segmentation Query</td><td><code>segmentationSum</code></td><td>Sum a numeric expression of an event over time, optionally segmented (Query API, maintenance mode).</td></tr><tr><td>Top Events</td><td><code>topEvents</code></td><td>Return today's top events by volume with percent change (Query API).</td></tr><tr><td>Track Event</td><td><code>trackEvent</code></td><td>Send a single event to Mixpanel via the ingestion API. The project token identifies the project; distinct_id identifies the user.</td></tr><tr><td>Union to Group List Property</td><td><code>unionGroupListProperty</code></td><td>Merge lists of values into list properties on a Mixpanel group profile ($union). Duplicates are ignored.</td></tr><tr><td>Union to List Property</td><td><code>unionProfileListProperty</code></td><td>Merge lists of values into list properties on a Mixpanel user profile ($union). Duplicate values are ignored.</td></tr><tr><td>Unset Group Properties</td><td><code>unsetGroupProperties</code></td><td>Remove the named properties from a Mixpanel group profile ($unset).</td></tr><tr><td>Unset Profile Properties</td><td><code>unsetProfileProperties</code></td><td>Permanently remove the named properties from a Mixpanel user profile ($unset).</td></tr><tr><td>Update Annotation</td><td><code>updateAnnotation</code></td><td>Update an annotation's date and/or description by ID. Requires a Service Account credential.</td></tr><tr><td>Upsert Schema</td><td><code>upsertSchema</code></td><td>Create or update a Lexicon schema for an entity by name. Requires a Service Account credential.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/analytics-monitoring/mixpanel.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
