Mixpanel
The Mixpanel piece in ZBrain Flow provides integration with Mixpanel's analytics platform, allowing you to track user interactions and events directly from your workflows. This connector enables you to send custom events, user properties, and engagement data to your Mixpanel project without manual tracking implementation. With Mixpanel integration, you can build automations that monitor user behavior, track conversion events, and capture user journey milestones across your business processes.
How to Use Mixpanel in ZBrain Flow
Step 1: Select Mixpanel as Your Connection
Click on the '+' button in the Flow and search for Mixpanel.
Select Mixpanel.
Decide on the action you need, then select it. ZBrain Flow provides two options:
Track Event – Send custom event data to your Mixpanel analytics.
Custom API Call – Make specialized requests to the Mixpanel API.
How to Track Events in Mixpanel
Step 1: Connect to Mixpanel
From the 'Mixpanel token' dropdown, click on 'Create connection'.
If creating a new connection, provide:
A descriptive 'Connection Name'
Your 'Mixpanel token' that is associated with your project. You can find your Mixpanel token in the project settings dialog in the Mixpanel app.
Click 'Save' to create the connection.
Step 2: Define Event Details
In the 'Event' field, enter a descriptive name for the action you're tracking. Use clear, consistent naming like 'Payment Completed' or 'Document Downloaded'.
Step 3: Identify the User
In the 'Distinct ID (Profile ID)' field, enter a unique identifier for the user performing the action. This could be a user ID, email hash, or another consistent identifier that links events to specific users.
Step 4: Add Event Properties (Optional)
Click 'Add Item' in the 'Event Properties' section to include additional contextual information. For each property, specify:
A property name (key)
The corresponding value
Add multiple properties to provide rich context about the event.
How to Make a Custom API Call to Mixpanel in ZBrain Flow
Step 1: Connect to Mixpanel
For connecting to your Mixpanel account, follow the first step in the "How to Track Events in Mixpanel" section above.
Step 2: Specify API Endpoint
In the 'URL' field, enter the Mixpanel API base URL with the specific endpoint you want to access.
Step 3: Select Request Method
From the 'Method' dropdown, choose the appropriate HTTP method (GET, POST, PUT, DELETE, etc.).
Step 4: Configure Headers (Optional)
Click 'Add Item' in the 'Headers' section to add any custom headers. Note that authorization headers are automatically injected from your connection.
Step 5: Add Query Parameters (Optional)
Click 'Add Item' in the 'Query Parameters' section to add URL parameters.
Step 6: Provide Request Body (Optional)
For POST, PUT, or PATCH requests, enter the JSON data to send in the 'Body' field.
Step 7: Set Error Handling (Optional)
Enable 'No Error on Failure' if you want the flow to continue even if the API request fails.
Set a 'Timeout' value in seconds to limit the request duration.
Last updated