You can now connect your Mixpanel data to Planhat and leverage product usage insights without going through additional work to set up our tracking script or to push data via API.

How it works

1) We expect the events in Mixpanel to have the following structure 

{"event": "Viewed report", "properties": { ...}}

2) In the Planhat Mixpanel integration settings you specify under which property of this object you have the company id, so we can match events to the right company (if they cannot be matched unambiguously to an existing contact directly) or potentially even create new users under the right account.
If no user identifier is available, the event/metric can be saved on account level with the help of this company id  (which typically would be the account id in your own system).

3) The same is configurable for user level events - $user_id and email  can be defined in the settings.

We'll use either or both of those to find the best matching contact in Planhat. For the $user_id to work, the contact in Planhat will need to have a matching external id. In addition to being logged on enduser level this data also gets aggregated in Planhat to the customer level, and even entire sub segments of the portfolio.

Since Mixpanel doesn't support a real-time event flow (the way we usually have it set up with Segment or our own tracking) we pull data every 10 minutes from the Mixpanel API.

Note: the integration will work only with Paying plans on Mixpanel.

Did this answer your question?