Mixpanel
The Mixpanel modules enable you to track events, create/update user or group profiles, or perform an API call in your Mixpanel account.
Getting Started With Mixpanel
Prerequisites
- A Mixpanel account
In order to use Mixpanel with Integromat, it is necessary to have a Mixpanel account. If you do not have one, you can create a Mixpanel account at Mixpanel.com.
Connecting Mixpanel to Integromat
To connect your Mixpanel account to Integromat, you need to obtain the token.
1. Log in to your Mixpanel account.
2. Click on the cog wheel icon in the top-right corner, and then on your project name in the Project Settings section.
3. Find and copy your Token or API Secret (depending on the module you want to use) in the Access Keys section.
4. Go to Integromat, and open the Mixpanel module's Create a connection dialog.
5. Enter the Token or API Secret you have copied in step 3 in the respective field, and click the Continue button to establish the connection.
The connection has been established. You can proceed with setting up the module.
Actions
Track an Event
Sends a tracking event.
Connection | Establish a connection to your Mixpanel account. |
Event | Enter a name for the event. For example, "Signed Up", or "Uploaded Photo". |
Distinct ID |
Enter the desired ID for the event. The value of |
Time | Enter the time an event occurred. If this property is not included in your request, Mixpanel will use the time the event arrives at the server. |
Name | Specify the name property. |
Additional Properties |
Add properties in the JSON format you want to send with this event. A collection of additional properties associated with this event. You can use these properties to filter or segment events in Mixpanel. In addition, some properties are treated specially by Mixpanel. Because Mixpanel accepts any JSON-valid data as the request payload, you're able to map any value to this field. However, if you'd like to map values from a JSON string, please use the |
Create or Update a User Profile
Creates or updates a user.
Connection | Establish a connection to your Mixpanel account. | ||||||||||||||||
Distinct ID | Enter the string that identifies the profile you would like to update or create. Updates with the same $distinct_id refer to the same profile. If this $distinct_id matches a distinct_id you use in your events, those events will show up in the activity feed associated with the profile you've updated. | ||||||||||||||||
Operation |
Select the user profile operation you want to perform:
|
||||||||||||||||
Properties |
Specify the user profile properties you want to create or update.
|
Create or Update a Group Profile
Creates or updates a group.
Connection | Establish a connection to your Mixpanel account. | ||||||||||||
Group Key |
Enter the group key (connects event data for Group Analytics). If the property “company” is chosen for Group Analytics, “company” is the |
||||||||||||
Group ID | Enter the identifier for a specific group. | ||||||||||||
Operation |
Select the user profile operation you want to perform:
|
||||||||||||
Properties |
Specify the group profile properties you want to create or update.
|
Make a Query API Call
Allows you to perform a custom API call to the Query API.
Connection |
Create a new connection using the API Secret access key, instead of token. The API Secret can be found in the same location as the token (see Connecting Mixpanel to Integromat). |
URL |
Enter a path relative to For the list of available endpoints, refer to the Mixpanel Query API Documentation.
|
Method |
Select the HTTP method you want to use: GET POST PUT PATCH DELETE |
Headers | Enter the desired request headers. You don't have to add authorization headers; we've already done this for you. |
Query String | Enter the request query string. |
Body | Enter the body content for your API call. |
Example of Use - List Users
The following API call returns all users that fit specified parameters in your Mixpanel account:
URL:/2.0/engage/
Method:GET
The result can be found in the module's Output under Bundle > Body > results.
In our example, 2 users were returned:
Make an Ingestion API Call
Allows you to perform a custom API call to the Ingestion API.
Connection | Establish a connection to your Mixpanel account using the Project Token. |
URL |
Enter a path relative to For the list of available endpoints, refer to the Mixpanel Ingestion API Documentation.
|
Method |
Select the HTTP method you want to use: GET POST PUT PATCH DELETE |
Headers | Enter the desired request headers. You don't have to add authorization headers; we've already done that for you. |
Query String | Enter the request query string. |
Body | Enter the body content for your API call. |
Example of Use - Add User
The following API call adds a user with specified properties in your Mixpanel account:
URL:/engage/
Token Key:$token
Data:
{
"$distinct_id": "666",
"$ip": "123.123.123.123",
"$set": {
"Address": "1313 Mockingbird Lane",
"Birthday": "1948-01-01"
}
}
When the user has been successfully created, the Status code: 200
is returned in the module's output:
Import an Old Event
Imports an event older than five days.
Connection |
Create a new connection using the API Secret and Token. The API Secret can be found in the same location as the token (see Connecting Mixpanel to Integromat). |
||||||||
Event | Enter the name of the event you want to import. | ||||||||
Properties |
|