Dunmore

Google Analytics 4 Integration

Track payment conversions in GA4 via the Measurement Protocol.

Connect Dunmore to Google Analytics 4 to track payment events as conversions.

Setup

  1. In GA4, go to Admin > Data Streams > Your Stream
  2. Click Measurement Protocol API secrets and create a new secret
  3. Copy the Measurement ID (e.g., G-XXXXXXXXXX) and API Secret
  4. Add a GA4 connector in the Dunmore console

Event Mapping

Dunmore EventGA4 EventDetails
payment.settledpurchaseIncludes value, currency, transaction_id
payment.failedpayment_failedIncludes payment amount and endpoint

The payer wallet address is used as the client_id.

Configuration

{
  "type": "ga4",
  "config": {
    "measurementId": "G-XXXXXXXXXX",
    "apiSecret": "your-measurement-protocol-secret"
  },
  "eventTypes": ["payment.settled", "payment.failed"]
}

API Example

curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "ga4",
    "config": {
      "measurementId": "G-XXXXXXXXXX",
      "apiSecret": "YOUR_API_SECRET"
    },
    "eventTypes": ["payment.settled"]
  }'