MixPanel (Cloud Destinations)

  • Cloud
  • Destinations

MetaRouter makes it easy to send your data to MixPanel. Once you follow the steps below, your data will be routed through our platform and pushed to MixPanel in the appropriate format.

What is MixPanel and how does it work?

MixPanel, geared towards financial services, SaaS, consumer tech, and media/entertainment, is a product analytics tool for product people. The tool analyzes customer-drive data, allowing your team to deeply understand every user's journey with instant insights for everyone on mobile and web.

MixPanel creates funnel reports to identify user drop off or churn risk, allows for immediate A/B testing and experimentation, supports JSQL, and brings you automated insights that let non-technical users skip the data-mining.

Learn more about MixPanel

Why send data to MixPanel using MetaRouter?

Implementing MixPanel without MetaRouter involves building with two separate APIs - MixPanel and MixPanel People. In this case, you'd need to indicate which user traits and events that you want to be collected and send them to the appropriate SDKs.

Integrating MixPanel with MetaRouter, however, means that you don't need to work with any of MixPanel's APIs or SDKs.

Once you enable MixPanel in your MetaRouter UI, we'll route your data directly to MixPanel in a compatible format so you can skip native implementation and save time for insights.

Getting Started with MixPanel and MetaRouter

MixPanel Side

Once you've made a MixPanel account and find yourself on the site, go ahead to project settings. Here, you'll find your Token and API key.

mixpanel1

You'll need to copy these two fields into the MetaRouter App configuration for MixPanel.

mixpanel2

MetaRouter Side

Now, head over to your MetaRouter dashboard and insert both your Token and API key into the MixPanel destination.

Give your pipeline a unique name, and click Save to officially activate it.

With that, you're set! Your data should start flowing almost immediately.

Click on View Your Data back in the MixPanel UI to start exploring.

Additional Features

On top of our standard calls, you're free to do a few extra things with our MixPanel integration:

  • Enable MixPanel People: This will enable all of your analytics.identify() calls to get sent to MixPanel's People.

    • Events to Increment in People: Used for segmenting users by event counts and last event date in MixPanel People. List the events that you want to see in MixPanel People here.
    • Add People Properties: These are set off of identify API calls and allow you to explicitly set properties that you want to track.
    • Add Super Properties: This lets you explicitly set the super properties that you wish to track.

Note that, if Set All Traits by Default is enabled, you will not need to specify explicit people or super properties.

  • By default, we will track all pages to MixPanel with a consolidated event name. This sends all page and screen calls as Loaded a Page or Loaded a Screen events. If you wish to do this in a different way, disable the Consolidate Page Calls option and see the additional options below.
  • Track additional pages, including:

    • Named Pages: This sends a Viewed (name) Page event to MixPanel.
    • Categorized Pages: This sends a `Viewed (category) Page to MixPanel.
    • All Pages: This causes all page calls to be sent to MixPanel, regardless of how you have customized your pages. They will appear as Loaded A Page in MixPanel.
  • Group Identifier Traits:

    • What trait Metarouter should use as your MixPanel “group key” in group calls. If, for example, you set this to be company, then “company” will be sent as group_key and the value of traits["company"] will be sent as the group_id.
  • Cookies

    • Add Cross Subdomain Cookie: Allows MixPanel cookie to be read across all subdomains.
    • Secure Cookie: This marks the MixPanel cookie as secure, meaning that this cookie will only be transmitted over https.
    • Persistence Cookie: This allows the MixPanel cookie to persist between two separate pages of your application.
  • Geolocation

    • To stop geolocation from occuring based on the IP of your server side calls, add ignoreIp: true to the context of your identify, track, and alias calls. This will prevent ip and location from being updated in MixPanel.

Sending data to MixPanel’s European Union Endpoint

If you’d like to implement MixPanel in the European Union you will need to enable the setting “Enable European Union Enpoint” within the MixPanel settings in the app. When this setting is enabled, Segment will automatically update the endpoint for any data sent from one of our server-side libraries or from a browser using Analytics.js or the iOS SDK.

If you are sending data using our Android SDK, you will need to specify the different endpoints using meta-data tags. On your app’s AndroidManifest.xml file, you need to add the following tags under your <application> tags to override the track, engage, and group endpoints:

<meta-data android:name="com.mixpanel.android.MPConfig.EventsEndpoint"
  android:value="https://api-eu.mixpanel.com/track?ip=" />
<meta-data android:name="com.mixpanel.android.MPConfig.PeopleEndpoint"
  android:value="https://api-eu.mixpanel.com/engage=" />
<meta-data android:name="com.mixpanel.android.MPConfig.GroupsEndpoint"
  android:value="https://api-eu.mixpanel.com/groups" />

For additional information regarding MixPanel’s European Union endpoint, please see the MixPanel documentation here.

© 2020 MetaRouter

Disclaimer: MetaRouter Cloud leverages code from several of Segment's fabulous library of open-source tools, including their source SDKs, destinations, and core Analytics.js library. As some of the core configurations outlined in our docs are largely identical to Segment's, we often re-purpose, and in some cases copy, directly from Segment's docs. In the cases where we have forked Segment's tools, we acknowledge and attribute all credit to Segment for their creation and subsequent documentation.