API referenceConsole
product analytics
Polylane queries Mixpanel events, funnels and retention during investigations to see when a drop started, which users it hits, and what changed around it.

Connect

Connect Mixpanel from the terminal. Pass --help for the flags Mixpanel accepts.

Terminal
polylane integration connect --type mixpanel

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 accessWhat it unlocks
Consumer role on the projectAll read-only queries: segmentation, funnels, retention, saved reports, and annotations.
Admin role on the projectEverything above, plus new chart annotations.
download_events_csv permissionRaw 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.

Terminal
polylane integration disconnect <id>

Tools

9

Operations agents can perform in threads.

Api
Call any Mixpanel REST endpoint that lacks a dedicated tool
Segmentation
Query Mixpanel event volume over time, segmented by a property
Events
Discover Mixpanel event names, properties, and property values
Funnels
List Mixpanel funnels or compute a funnel's conversion
Retention
Query Mixpanel cohort retention
Insights
List Mixpanel saved reports or fetch an Insights report's data
Annotations
List or create Mixpanel chart annotations
Export Events
Sample raw events from Mixpanel
Lexicon
Read Mixpanel Lexicon schemas (event and property definitions)