Mixpanel
Connect
Connect Mixpanel from the terminal. Pass --help for the flags Mixpanel accepts.
polylane integration connect --type mixpanelService account credentials. Polylane finds the projects that the account can access.
Connect Mixpanel so agents can query your product analytics during investigations: event volumes, funnels, retention, and saved Insights reports. Polylane also checks your event volumes once a day.
- In Mixpanel, go to Organization Settings → Service Accounts and create a service account with the roles listed under Permissions. Copy the username and secret. Mixpanel shows them only once, when you create the account.
- Choose the data residency region of your Mixpanel organization: US, EU, or India. Check your Mixpanel URL:
mixpanel.comis US,eu.mixpanel.comis EU,in.mixpanel.comis India. The region must match your organization, or Polylane cannot validate the credentials. - Paste the service account username and secret into Polylane. Polylane validates the credentials and lists every project the account can access.
- Pick the projects to connect. Each project becomes its own integration, so query budgets and daily checks stay per project.
Your secret is encrypted before it is stored, and the agent never sees it.
How it works
Daily checks
Product analytics settles per day, so Polylane checks each project once a day. Each check reads:
- The hourly volume of your top events, and their sum.
- Each saved report that is pinned to a board. Polylane replays an Insights report with its saved range and filters, and charts the daily overall conversion of a funnel report.
Insights reports that show a number or categories, and retention and flows reports, have no dated series in the Mixpanel API, so Polylane skips them. A clear change opens an issue, and Polylane investigates it. On the integration page, you can turn the checks off.
Polylane also explores the connection when you connect it and every 12 hours after that, and records what it finds as issues. It checks the credentials every six hours.
Query budget
The Mixpanel Query API allows 60 requests per hour for each project. The daily check and the agents share that limit. Polylane counts every request against it and answers repeated queries from a cache.
During an investigation
Agents can:
- Run segmentation queries over event volumes and properties.
- Find event names, property values, and the Lexicon definitions of events and properties.
- Read saved funnels, Insights reports, and retention.
- Export raw event samples for record-level inspection.
- Read chart annotations, and create one to mark a deploy or an issue.
- Call other Mixpanel Query and App APIs.
A new annotation and any other change require safety review and approval before they run.
Permissions
| Mixpanel access | What it unlocks |
|---|---|
| Consumer role on the project | All read-only queries: segmentation, funnels, retention, saved reports, and annotations. |
| Admin role on the project | Everything above, plus new chart annotations. |
download_events_csv permission | Raw event export. Without it, agents can still run all aggregate analytics. |
Disconnecting
Disconnect Mixpanel in Polylane, then delete the service account in Mixpanel.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Everything Polylane set up in Mixpanel is removed as well; nothing is left behind.
polylane integration disconnect <id>Tools
9Operations agents can perform in threads.