- Documentation
- Integrations
- Apps
- Mixpanel integration
Mixpanel integration
Track events, sync user and group profiles, query reports, and react to cohorts and alerts in your clients' Mixpanel projects.
What it does
The Mixpanel integration keeps each client's product analytics in step with the rest of their stack. Connect a client project once and your workflows can send events and profile updates into Mixpanel, pull funnel, retention and segmentation numbers into reports, manage annotations and data definitions, and start automations when users join a cohort, when a tracked event happens, or when a Mixpanel alert fires.
Connect a Mixpanel account
- In Mixpanel, open Organization Settings, Service Accounts, and create a Service Account with access to the client's project. Use the Admin role if you plan to import events, and Analyst or higher for annotations. Copy the username and the secret. Mixpanel shows the secret only once.
- In Project Settings, Overview, copy the numeric Project ID and the Project Token.
- In the client workspace in TaskJuice, go to Connections, choose Mixpanel, and paste the username, secret, Project ID and Project Token.
- Leave the host fields at their defaults for US projects. For EU data residency use
api-eu.mixpanel.comandeu.mixpanel.com. For India useapi-in.mixpanel.comandin.mixpanel.com.
The Project Token is public by design (Mixpanel ships it in browser tracking code), so TaskJuice stores it with the connection's regular settings and adds it to every event and profile request for you. You never paste it into a payload.
Rotate Service Accounts from Mixpanel Organization Settings.
Triggers
mixpanel/events-recorded(Events Recorded) watches one named event and emits one activation per poll cycle, with every new event in anitemsarray. Each cycle re-reads today and yesterday in UTC and skips events it has already sent, matched on$insert_id, so late events are still picked up and nothing is sent twice. Watch an event recording up to about 500 events a day; above that the trigger misses events. The first cycle after publishing records the current window without emitting.mixpanel/user-added-to-cohort(User Added to Cohort) fires when users newly appear in a saved cohort, for example when someone becomes a power user or enters a churn-risk segment. Each activation carries the new members initems, with their distinct ID and profile properties. The first cycle records the current members without emitting. It watches the first 1,000 members of the cohort.mixpanel/alert-triggered-v2(Alert Triggered) fires instantly when a Mixpanel custom or anomaly alert on an Insights or Funnels report goes off. The payload includes the alert, the condition and current value, and links to the report and root cause analysis. It replaces the oldermixpanel/alert-triggered, which had no connection and no longer starts workflows: replace that step with the new Alert Triggered on a Mixpanel connection, republish the workflow, and paste the new URL into Mixpanel.
Set up the Alert Triggered webhook
You connect this trigger once by hand in Mixpanel:
- Pick the Mixpanel connection on the Alert Triggered step, publish the workflow, and copy the delivery URL the step shows for that connection. Each connection has its own URL, and an alert sent to it starts only the workflows that use that connection, so give each client project its own connection. The URL is private and is the only credential, so keep it out of shared documents; if it ever leaks, remove the connection and connect again so the old URL stops answering.
- In the Mixpanel project that connection belongs to, open the gear icon, Destinations, Notification Webhook, and select Add Webhook. Paste the URL and submit. Mixpanel's optional username and password are not needed.
- Open the report the alert belongs to, select the bell icon, and create or edit the alert. Under Notify, pick your webhook in Webhook.
- Select Test Notification Configuration. A test alert starts a run of your workflow within a few seconds.
Alert webhooks need a Mixpanel Growth or Enterprise plan.
Actions
Events and identity
mixpanel/track-eventrecords one event for a user, with custom properties, an optional timestamp and an optional insert ID for safe retries.mixpanel/import-eventssends a batch of up to 2,000 events through the import endpoint. Use it for historical backfills and for tracking many live events at once.mixpanel/create-identity,mixpanel/create-aliasandmixpanel/merge-identitieslink anonymous and known IDs. They only apply to projects on Mixpanel's Original ID Merge system. Merging cannot be undone.
User and group profiles
mixpanel/update-profilesets, sets once, increments, unions, appends, removes or deletes properties on a user profile.mixpanel/delete-profilepermanently deletes a user profile.mixpanel/update-group-profilesets, sets once, unions, removes or deletes properties on a group profile such as a company. Requires Group Analytics.mixpanel/delete-group-profilepermanently deletes a group profile.mixpanel/batch-update-profilesandmixpanel/batch-update-group-profilessend up to 1,000 user or group profile updates in one request, each with its own operation such as$set,$addor$delete. TaskJuice adds the Project Token to every update.mixpanel/query-profilessearches user or group profiles with a filter expression, 1,000 per page.mixpanel/get-profilefetches one user profile by distinct ID.mixpanel/list-cohortsandmixpanel/list-cohort-memberslist saved cohorts and the users in one.mixpanel/get-profile-activityreturns the events one user performed in a date range.
Reports
mixpanel/query-insightsreturns the result of a saved Insights report.mixpanel/list-funnelsandmixpanel/query-funnellist saved funnels and return a funnel's step-by-step conversion.mixpanel/query-retentionandmixpanel/query-frequencymeasure how often users come back.mixpanel/query-segmentation,mixpanel/query-segmentation-buckets,mixpanel/query-segmentation-sumandmixpanel/query-segmentation-averagecount, bucket, sum or average an event over time.mixpanel/query-eventsreturns totals for one or more events.mixpanel/list-top-events,mixpanel/list-event-names,mixpanel/list-top-event-properties,mixpanel/list-event-property-valuesandmixpanel/query-event-propertyexplore which events, properties and values are most common.mixpanel/export-eventsdownloads raw events for a date range as a file.
Project management
mixpanel/create-annotation,mixpanel/list-annotations,mixpanel/get-annotation,mixpanel/update-annotationandmixpanel/delete-annotationmanage the notes shown on Mixpanel charts, such as releases and campaign launches.mixpanel/list-annotation-tagsandmixpanel/create-annotation-taglist and create the tags you attach to annotations. Mixpanel has no API to delete a tag.mixpanel/list-schemas,mixpanel/list-entity-schemas,mixpanel/get-schema,mixpanel/upsert-schema,mixpanel/upload-schemasandmixpanel/delete-schemaread and write Lexicon data definitions, one at a time or as a whole tracking plan.mixpanel/delete-entity-schemasdeletes the definitions of one event, or of every event or the user profile, andmixpanel/delete-all-schemasdeletes every definition in the project. Events and their data are kept.mixpanel/list-lookup-tablesandmixpanel/replace-lookup-tablelist lookup tables and replace one table's rows with new CSV data.mixpanel/create-pipeline,mixpanel/list-pipelines,mixpanel/get-pipeline-status,mixpanel/list-pipeline-logs,mixpanel/edit-pipeline,mixpanel/pause-pipeline,mixpanel/resume-pipelineandmixpanel/delete-pipelinemanage Data Pipelines exports to a warehouse or bucket. Data Pipelines is a paid Mixpanel add-on.mixpanel/query-audit-logssearches the organization's audit log for who changed what, and when. It needs a Service Account with organization admin access.
Experiments and feature flags
mixpanel/list-experiments,mixpanel/get-experiment,mixpanel/create-experiment,mixpanel/update-experimentandmixpanel/delete-experimentmanage experiments in a workspace.mixpanel/launch-experiment,mixpanel/force-conclude-experimentandmixpanel/decide-experimentstart an experiment, end it early, and record whether it succeeded and which variant won.mixpanel/archive-experimentandmixpanel/unarchive-experimenthide an experiment from the active list and bring it back.mixpanel/list-feature-flags,mixpanel/get-feature-flag,mixpanel/create-feature-flag,mixpanel/update-feature-flagandmixpanel/delete-feature-flagmanage feature flags and their rollout rules. Disable a flag before you delete it.mixpanel/get-flag-variantsreturns the variant each enabled flag serves one user, andmixpanel/list-flag-definitionslists every enabled flag with its rules.
Warehouse imports
mixpanel/list-warehouse-imports,mixpanel/get-warehouse-import,mixpanel/update-warehouse-importandmixpanel/delete-warehouse-importmanage the imports that sync warehouse tables into Mixpanel, including pausing them and changing how often they run.mixpanel/create-event-stream-import,mixpanel/create-people-import,mixpanel/create-group-importandmixpanel/create-lookup-table-importstart syncing events, user profiles, group profiles or a lookup table from a warehouse table.mixpanel/run-warehouse-importstarts a sync now, andmixpanel/get-warehouse-import-historylists the 30 most recent runs.
Event, property, funnel, cohort, annotation, workspace, experiment, feature flag, warehouse import, lookup table and organization fields offer a dropdown of the values in the connected account, and every field also accepts a mapped value.
Known limitations
- The Query API allows about 60 queries per hour and 5 at a time per project. Report actions, profile queries, dropdowns and the User Added to Cohort trigger all count toward it. When Mixpanel returns a rate-limit response, TaskJuice retries with backoff.
- Raw exports are limited to 60 per hour. Lexicon schema changes are limited to 5 per minute.
- Track Event only accepts events from the last 5 days. Use Import Events for older data.
- Event and profile writes run in strict mode, so a rejected record fails the step with Mixpanel's validation message instead of being silently dropped.
- The Events Recorded trigger watches one event name and suits events recording up to about 500 a day. User Added to Cohort suits cohorts up to about 1,000 users.
- Export Events and the Data Pipelines actions ask for the data residency host on the node, because those APIs use separate regional hosts from the connection. Query Audit Logs asks for the region host for the same reason.
- Warehouse imports need a Mixpanel plan that includes Warehouse Connectors. On other plans Mixpanel refuses those actions as forbidden.
- Experiments and feature flags belong to a workspace. Most projects have one workspace, called All Project Data.
- Mixpanel's activity feed endpoint is in maintenance mode. JQL is not offered because Mixpanel recommends discontinuing it. GDPR data requests and Service Account management are not offered, because they need a personal Mixpanel login rather than the connection's Service Account.
- Each Service Account connection covers one project. Workflows that span several Mixpanel projects need one connection per project.