Mostly Good Metrics Docs

Drop in an SDK, track events, and see funnels and retention.

Quick Start

Copy-paste examples to get started quickly. Replace your_api_key_here with your actual API key.

Quick Start (cURL)

curl -X POST https://ingest.mostlygoodmetrics.com/v1/events \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key_here" \
  -d '{
    "events": [{
      "name": "test_event",
      "user_id": "user_123",
      "properties": {
        "button": "signup",
        "screen": "home"
      }
    }]
  }'

A successful request returns HTTP 204 (no content).

For SDK documentation (Swift, Kotlin, React Native, JavaScript, Flutter), sign up and view the full integration guides in your dashboard.

REST API

POST https://mostlygoodmetrics.com/v1/events

Headers

Authorization: Bearer your_api_key_here
Content-Type: application/json

Request Body

{
  "events": [
    {
      "name": "button_clicked",
      "user_id": "user_123",
      "properties": {
        "button": "signup",
        "page": "/pricing"
      }
    }
  ]
}

Fields

events
required Array of event objects to track
name
required Event name (e.g., "button_clicked", "purchase_completed")
user_id
optional Unique identifier for the user
properties
optional Object with custom properties for the event
timestamp
optional ISO 8601 timestamp (defaults to server time)

Response

Returns 204 No Content on success.

Ready to get started?

Create a free account and start tracking events in minutes.