I have to send a post with a webhook to mixpanel. which are the parameters to send an event?
Hi Juan I., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
To send an event to Mixpanel via a webhook POST request, you need to include the following key parameters:1. Event Name: This is the name of the event you're tracking.
2. Properties: A JSON object containing metadata about the event.Here's a basic structure of the event object you should send::LBKSLBKS```LBKS{
"event":: "Your Event Name",
"properties": {
"time": 1234567890,
"distinct_id": "user_identifier",
"$insert_id": "unique_event_id",
"token": "your_project_token",
// Additional custom properties
}
}LBKSLBKSLet's break down the required properties:LBKS- `time`: The timestamp of when the event occurred (in seconds or milliseconds since epoch). - `distinct_id`: A unique identifier for the user who performed the event. - `$insert_id`: A unique identifier for this specific event occurrence (used for deduplication). - `token`: Your Mixpanel project token.LBKSYou can also include any additional custom properties relevant to your event.LBKSWhen making the POST request, you should send it to the Mixpanel import API endpoint:LBKSLBKS
https://api.mixpanel.com/import```Remember to include the appropriate headers, such as 'Content-Type: application/json' and any necessary authentication headers.For more detailed information on the event structure and API usage, you can refer to the Mixpanel Import Events API documentation.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.