ByteChef LogoByteChef

Mixpanel

Mixpanel is a product analytics tool that helps you track user interactions and behaviors in your app or website to make data-driven decisions.

Categories: Analytics

Type: mixpanel/v1


Connections

Version: 1

Basic Auth

Properties

NameLabelTypeDescriptionRequired
usernameUsernameSTRINGtrue

Connection Setup

  1. Login to the dashboard at https://eu.mixpanel.com/login/.
  2. Click on Settings.
  3. Select Settings and then click on Project Settings.
  4. Under Access Keys section, copy the Project Token. Use these credentials to create a connection in ByteChef.

Actions

Track Events

Name: trackEvents

Send batches of events from your servers to Mixpanel.

Properties

NameLabelTypeDescriptionRequired
eventsEventsARRAY
Items [{STRING(event), DATE_TIME(time), STRING(distinct_id), STRING($insert_id)}]
A list of events to be sent to Mixpanel.true

Example JSON Structure

{
  "label" : "Track Events",
  "name" : "trackEvents",
  "parameters" : {
    "events" : [ {
      "event" : "",
      "time" : "2021-01-01T00:00:00",
      "distinct_id" : "",
      "$insert_id" : ""
    } ]
  },
  "type" : "mixpanel/v1/trackEvents"
}

Output

Type: OBJECT

Properties

NameTypeDescription
codeINTEGER
num_records_importedINTEGER
statusSTRING

Output Example

{
  "code" : 1,
  "num_records_imported" : 1,
  "status" : ""
}

Find Distinct ID

To find the Distinct ID, click here.

Find Insert ID

To find the Insert ID, click here.

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.


Additional Instructions

How to find Distinct ID

Open the Mixpanel dashboard. On the left bar, go to Data/Users. Choose the user you want to use, click on the user and below the name, you will find Distinct ID.

How to find Insert ID

Open the Mixpanel dashboard. On the left bar, go to Data/Events. Choose the event you want to use, click on the event and in the table you will find Insert ID.

How is this guide?

Last updated on

On this page