# Mixpanel integration

> Mixpanel product analytics — ingest events and profile data, query insights/funnels/retention/segmentation, manage projects, service accounts, annotations, feature flags, and run raw exports

- Authentication: apiKey

## Tools (43)

- **Add Unique Values to Profile List Property**: Add values to a list-type profile property only if they aren't already present, using $union
- **Append to Profile List Property**: Append values to list-type properties on a user profile using $append (duplicates allowed)
- **Batch Update Profiles**: Send up to 50 profile updates ($set, $set_once, $add, $append, $union, $remove, $unset) in a single /engage call
- **Create Alias**: Map an alias to an existing distinct_id via a $create_alias event. Only effective on Original/Legacy ID Merge projects (no-op on Simplified ID Merge).
- **Create Annotation**: Create a project annotation pinned to a specific timestamp (visible on Insights/Funnels charts)
- **Create Annotation Tag**: Create a tag that can be attached to annotations for categorization
- **Create GDPR Deletion Request**: Create an end-user data deletion task for a batch of distinct_ids (GDPR/CCPA compliance)
- **Create Identity**: Link an anonymous distinct_id to an identified user_id by sending a $identify event. Used after authentication to merge pre-login activity.
- **Create Service Account**: Create a new service account in an organization (Admin or Owner role required)
- **Delete Annotation**: Delete a single annotation by ID
- **Delete Group Profile**: Permanently delete a group profile by sending $delete to /groups
- **Delete Profile**: Permanently delete a user profile and all of its properties using $delete (events on the profile are preserved)
- **Delete Profile Property**: Remove one or more named properties from a user profile using $unset
- **Delete Service Account**: Remove a service account from the organization (Admin or Owner role required)
- **Execute JQL Query**: Run a custom JavaScript Query Language script against Mixpanel events + profiles (maintenance mode — prefer Segmentation/Insights/Export)
- **Get Aggregated Event Property Values**: Get aggregate count/unique/average data for a single event and a single property over a date range
- **Get All Projects**: List every project the authenticated service account or user has access to (uses /api/app/me)
- **Get Feature Flag Definitions**: Fetch the full set of enabled feature-flag definitions for local SDK evaluation
- **Get Feature Flag Variants**: Resolve variant assignments for a specific user context (distinct_id and custom properties)
- **Get Profile Event Activity**: Get the raw event activity feed for one or more distinct_ids over a date range
- **Get Top Event Properties**: List the most common property names sent with a given event
- **Get Top Event Property Values**: List the most common values for a given property on a given event
- **Get Top Events**: List the most common events over the last 31 days
- **Import Historical Events**: Bulk-import historical events to Mixpanel via /import (events older than 5 days, server-side ingestion with strict validation)
- **Increment Profile Numerical Property**: Increment one or more numeric properties on a user profile by a given amount using $add
- **List Annotations**: List all annotations in a project within a date range
- **List Cohorts**: List all saved cohorts in a project
- **List Saved Funnels**: List names and IDs of all saved funnels in the project
- **List Service Accounts**: List all service accounts in a Mixpanel organization (requires Admin or Owner role)
- **Query Frequency Report**: Get distribution of how frequently users perform an event (returning user counts at each frequency bucket)
- **Query Numeric Segmentation**: Sum / average a numeric property of an event, bucketed by an interval (uses /segmentation/sum or /segmentation/average)
- **Query Profiles**: List user or group profiles matching a filter expression, with cursor pagination (1,000 per page)
- **Query Retention Report**: Fetch cohort retention data — what fraction of users who performed a born event return for a target event over successive intervals
- **Query Saved Funnel**: Fetch conversion data for a saved funnel by funnel_id, bucketed by interval
- **Query Saved Insight**: Fetch results for a saved Insights report by bookmark_id
- **Query Segmentation**: Get time-series data for a single event, optionally segmented and filtered by properties
- **Raw Event Export**: Stream raw events for a date range as JSONL from the Export API
- **Remove from Profile List Property**: Remove a specific value from a list-type profile property using $remove
- **Set Profile Properties**: Set ($set) properties on a Mixpanel user profile; creates the profile if it doesn't exist
- **Set Profile Property Once**: Set ($set_once) properties on a profile only if they don't already exist; useful for first-touch attributes like signup source
- **Track Event**: Send one or more events to Mixpanel via /track. Use for low-latency real-time ingestion of recent events.
- **Update Annotation**: Patch the description, date, or tags of an existing annotation
- **Update Group Profile**: Send group profile updates ($set, $set_once, $union, $unset, $remove, $delete) to /groups in a single batched call (up to 50 updates)

## Related prompts

- [Weekly Mixpanel funnel regression audit into Linear](https://www.generalinput.com/prompts/weekly-mixpanel-funnel-regression-audit-into-linear.md)
- [Daily PQL alerts from Mixpanel into HubSpot and Slack](https://www.generalinput.com/prompts/daily-pql-alerts-from-mixpanel-into-hubspot-and-slack.md)
- [Daily churn-risk re-engagement emails from Mixpanel](https://www.generalinput.com/prompts/daily-churn-risk-re-engagement-emails-from-mixpanel.md)
- [Push every Stripe charge into Mixpanel in real time](https://www.generalinput.com/prompts/push-every-stripe-charge-into-mixpanel-in-real-time.md)
- [Weekly Mixpanel product analytics digest in Slack](https://www.generalinput.com/prompts/weekly-mixpanel-product-analytics-digest-in-slack.md)

Connect Mixpanel in General Input: https://www.generalinput.com/apps/mixpanel