tools/integrations/mixpanel.md
Product analytics platform for tracking user behavior and retention.
| Integration | Available | Notes |
|---|---|---|
| API | ✓ | Ingestion API, Query API, Data Export |
| MCP | - | Not available |
| CLI | - | Not available |
| SDK | ✓ | JavaScript, iOS, Android, Python, etc. |
POST https://api.mixpanel.com/track
{
"event": "signup_completed",
"properties": {
"token": "{project_token}",
"distinct_id": "user_123",
"plan": "pro",
"time": 1705312800
}
}
POST https://api.mixpanel.com/engage
{
"$token": "{project_token}",
"$distinct_id": "user_123",
"$set": {
"$email": "[email protected]",
"$name": "John Doe",
"plan": "pro"
}
}
POST https://mixpanel.com/api/2.0/insights
{
"project_id": {project_id},
"bookmark_id": null,
"params": {
"events": [{"event": "signup_completed"}],
"time_range": {
"from_date": "2024-01-01",
"to_date": "2024-01-31"
}
}
}
GET https://mixpanel.com/api/2.0/funnels?funnel_id={funnel_id}&from_date=2024-01-01&to_date=2024-01-31
GET https://data.mixpanel.com/api/2.0/export?from_date=2024-01-01&to_date=2024-01-01
GET https://mixpanel.com/api/2.0/retention?from_date=2024-01-01&to_date=2024-01-31&retention_type=birth&born_event=signup_completed
// Initialize
mixpanel.init('YOUR_TOKEN');
// Identify user
mixpanel.identify('user_123');
// Set user properties
mixpanel.people.set({
'$email': '[email protected]',
'plan': 'pro'
});
// Track event
mixpanel.track('Feature Used', {
'feature_name': 'export'
});