Build on DataGauge
Your apps POST events and subscription state to one endpoint; you get MAU, signups, revenue, and MRR per app, a portfolio rollup across all of them, and a read API that powers your own pricing pages, admin panels, and investor updates. For most stacks the curl example is the whole integration.
Integrate from a bash script: no dependency, one HTTP call.
When a runtime fights the simple path, reach for an SDK.
Point an agent at the MCP server and let it read your numbers.
Browse the docs
Getting started
Send your first event and read a number back, in about five minutes.
SDKs
Thin wrappers for the few runtimes where the plain curl call needs help.
- OverviewFor most stacks the curl example is the SDK. SDKs exist only where a runtime actively fights the simple fire-and-forget path, one per execution model.
- @datagauge/edgeDataGauge for serverless & edge runtimes: event sends ride the platform's waitUntil so they survive the response.
- @datagauge/convexDataGauge for Convex. track() schedules a registered internalAction transactionally with your mutation: rollback sends nothing, commit guarantees the send.
- @datagauge/clientDataGauge for client & offline runtimes: a durable queue with pluggable storage, idempotent replay, and server-side clock-skew correction. Ship a public key.
- @datagauge/nodeDataGauge for short-lived processes: a synchronous buffer with one explicit flush before exit. No timers, no daemon threads, no surprises.
API reference
Every endpoint, credential, and scope across the ingest, read, and control planes.
- POST /v1/eventsAppend-only event ingestion: one object or an array, idempotency, timestamp skew correction, and the exact-money payment path.
- POST /v1/objectsMutable subscription state, upserted with last-write-wins semantics. The source of MRR.
- GET /v1/metrics/*The read API: the same numbers the dashboard shows, for your own pricing pages, admin panels, and investor updates.
- Billing webhooksMRR and revenue with zero product code: paste your Stripe or Polar signing secret and point the biller at your endpoint.
- Control APICreate apps, mint and revoke keys, set webhook secrets over HTTP, so an agent can run the whole loop without touching the dashboard.
- MCP serverPoint Claude, Cursor, or any MCP client at mcp.datagauge.dev and let an agent read your numbers directly. Read-only, no install, always current.
Concepts
How keys are scoped, how test and live environments stay isolated, and why the numbers you read back are trustworthy.
- Keys & scopingTwo kinds of key, one hard rule: money is server-authoritative. Public keys ship in binaries and can never write revenue. Plus test mode: sk_test_/pk_test_ keys and dg_test_ tokens run in a fully isolated test environment.
- Why the numbers are rightThe only thing a metrics product sells is trust in the numbers. Here is what that means mechanically.
Every page has a .md twin, and the whole site is indexed at /llms.txt.