Skip to content
HelpMixpanel

Mixpanel

Connect an agent to Mixpanel: the service account and role it needs, the plan reports need, what it does with your reports, funnels and profiles, and how to disconnect.

What it is

An agent connected to Mixpanel answers questions about how people use your product, the way someone on your product or growth team would: how many people signed up last week and from where, where people drop out of a funnel, who comes back, what a saved report says today, and what one customer did. It reads your project; the only thing it adds is a note on your charts, and it asks you first.

Before you start

The agent connects as a service account: an account made for software, in your Mixpanel organization. Its role and the projects it may see decide what the agent can do. Only an Owner or an Admin of the organization can make one, and it takes about five minutes.

  1. In Mixpanel, open Organization settings, then Service accounts, and choose Add service account. Name it after the agent (for example “Maya AgentTeams”).
  2. Give it the role Analyst and access to your project only. Mixpanel’s Consumer role can’t look people up or read raw events, so the agent couldn’t either.
  3. Copy the username and the secret. Mixpanel shows the secret only once; if it’s lost, make a new service account.
  4. Note the project’s ID, a number under Project settings, Overview, and whether its data is kept in the US, the EU or India.

Connecting Mixpanel

  1. Open the agent, go to the Tools tab and choose Mixpanel.
  2. Choose where the project’s data is kept, then paste the username, the secret and the project ID. If you choose the wrong place, the check finds the right one.
  3. The wizard checks the connection and shows what the agent can read, with the project’s busiest events. If the plan or the role holds something back, it says what to change in Mixpanel; you don’t need to connect again afterwards.

Your Mixpanel plan

Reports (counting events, funnels, retention, cohorts, saved reports and what one person did) need a paid Mixpanel plan: on the free plan Mixpanel refuses every report request from other apps. On the free plan the agent can still look people up, read raw events (and count them for small questions), learn your events from your Lexicon and read and add chart notes.

What the agent can do

  • Count any event over time, broken down by a property (country, plan, campaign) and filtered
  • Read your saved reports and funnels, and work out retention
  • Learn your events from their descriptions in your Lexicon
  • Look up people’s profiles and what they did, and list your cohorts
  • Fetch raw events for questions no report answers
  • Add a note to your charts (a release, a campaign, an outage), approved first

Mixpanel allows 60 report queries an hour for each project, shared by everyone and everything using it. The agent asks well-aimed questions (a saved report, or one breakdown instead of many small queries) and says so when the hour’s queries are used up.

Disconnecting

  1. In AgentTeams. Open the agent’s Tools tab and disconnect Mixpanel. The secret is deleted from AgentTeams.
  2. In Mixpanel. Delete the service account under Organization settings, Service accounts. This is the step that ends its access at Mixpanel.

If something is off

  • Mixpanel doesn’t accept the username and secret. Copy both again. If the secret is lost, make a new service account.
  • It can’t read the project. Check the project ID, and give the service account access to the project.
  • It can’t read reports. The project is on Mixpanel’s free plan, which doesn’t let other apps read reports. They work once the project is on a paid plan, with nothing to change here.
  • It can’t look people up, read raw events or add notes to charts. Give the service account the Analyst role.
  • It says the hour’s queries are used up. Mixpanel’s limit of 60 an hour is for the whole project. Wait a little, or ask for one broader question instead of several narrow ones.

Still stuck? Email support@agentteams.com and a human will write back.