Powerful, self-serve product analytics to help you convert, engage, and retain more users
Go to siteMixpanel is a powerful analytics API that allows you to track, analyze, and engage with your users. With Mixpanel, you can build a variety of applications and services, including:
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,
})
},
})
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.