Dunmore

Mixpanel Integration

Track payment events in Mixpanel for product analytics.

Connect Dunmore to Mixpanel to track payment and customer events for product analytics.

Setup

  1. Get your Mixpanel Project Token from Settings > Project Details
  2. Add a Mixpanel connector in the Dunmore console
  3. Events will appear in your Mixpanel project immediately

Event Mapping

Dunmore EventMixpanel Event Name
payment.settledPayment Settled
payment.failedPayment Failed
customer.first_paymentCustomer First Payment
customer.milestoneCustomer 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"]
  }'