Mixpanel

Powerful, self-serve product analytics to help you convert, engage, and retain more users

Go to site
Explore
/
Apps
/
Mixpanel

Mixpanel API Integrations

Build and run workflows using the Mixpanel API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    mixpanel: {
      type: "app",
      app: "mixpanel",
    }
  },
  async run({steps, $}) {
    const data = `data={
      "event": "Pipedream test event",
      "properties": {
        "token": "${this.mixpanel.$auth.token}"
      }
    }`
    
    return await axios($, {
      method: "post",
      url: `https://api.mixpanel.com/track#live-event`,
      headers: {
        "Content-Type": `application/x-www-form-urlencoded`,
      },
      data,
    })
  },
})

Authentication

Mixpanel uses API keys for authentication. When you connect your Mixpanel account, Pipedream securely stores the keys so you can easily authenticate to Mixpanel APIs in both code and no-code steps.

Enter your project token below.