Before you start
- Live data sources enabled for your organization. See Live data sources.
- Admin role in the Lightdash project.
- A Mixpanel plan with the Query API, Growth or Enterprise.
- A service account with access to the project. In Mixpanel, open Organization settings → Service accounts, create one, give it access to the project, and copy its username and secret. Mixpanel shows the secret only when it creates the account.
- The project ID, the number after
/project/in the project’s URL, or under Project settings → Overview. - The project’s data region: US, EU or India. Projects you open at
eu.mixpanel.comare in the EU, and atin.mixpanel.comin India.
Connect Mixpanel
- On the nav bar, click Browse → Semantic Layer.
- In the sidebar, select Live data sources, then click Add.
- Select Mixpanel.
- Choose the Data region, enter the Project ID, the Service account username and its Secret, then click Test. A working account shows how many events the project tracked in the last 31 days.
- Under Details, check the Name and Explore prefix. People see the name in Explore and agents use it to refer to the source. The prefix is filled in from the name and can’t be changed later. See Explore prefix.
- Click Add source.
Tables
- Top events today lists the project’s most common events so far today.
- Events needs an Event filter with 1 to 3 event names; Mixpanel counts one event per call. It can be filtered and grouped by these event properties, grouped by one at a time: Country, Region, City, Browser, OS, Device, Library, Referring domain, UTM source, UTM medium and UTM campaign.
- Funnel reads a funnel saved in Mixpanel. Filter Funnel ID to the number in the funnel report’s URL. Its steps and conversion window come from the saved funnel, and it covers the whole date range.
- Retention needs a cohort dimension and the matching Days, Weeks or Months after start. Filter Start event to put users in a cohort the first time they did it; without it, a cohort is everyone who did the return event in that period. Filter Return event to choose what counts as coming back; without it, any event counts. Period 0 is the cohort’s own day, week or month, where every user counts, and a query reads at most 90 days, 52 weeks or 24 months after start.
Supported features
Limits
Mixpanel allows 60 Query API calls an hour and 5 at once per project, shared with every other tool that reads the project. Lightdash uses at most 40 of them an hour to leave room for those tools, and caches results for an hour, so repeated queries don’t count again.
Custom event and user properties, user profiles, sums and averages of numeric properties, saved Insights reports, sessions and user paths aren’t available from the Mixpanel source.
Example questions
- “Daily
Sign Upevents over the last 30 days.” - “Monthly unique users of
Export Reportthis year, by country.” - “Step-by-step conversion of saved funnel 1234567 this month.”
- “Weekly retention of users who signed up in the last quarter.”