Mixpanel Integration
Track payment events in Mixpanel for product analytics.
Connect Dunmore to Mixpanel to track payment and customer events for product analytics.
Setup
- Get your Mixpanel Project Token from Settings > Project Details
- Add a Mixpanel connector in the Dunmore console
- Events will appear in your Mixpanel project immediately
Event Mapping
| Dunmore Event | Mixpanel Event Name |
|---|---|
payment.settled | Payment Settled |
payment.failed | Payment Failed |
customer.first_payment | Customer First Payment |
customer.milestone | Customer Milestone |
Each event includes properties: payment_id, amount, currency, network, endpoint, project_id, and the payer wallet as distinct_id.
Configuration
{
"type": "mixpanel",
"config": {
"projectToken": "your-mixpanel-project-token"
},
"eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
}
API Example
curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"type": "mixpanel",
"config": {
"projectToken": "YOUR_MIXPANEL_TOKEN"
},
"eventTypes": ["payment.settled", "customer.first_payment", "customer.milestone"]
}'