Metrics

See how people use your app.

Track pageviews, sessions, and custom events with a TypeScript SDK. Explore them in one dashboard.

Traffic overviewSample data

Pageviews over 14 days4,629

Daily values
  1. Day 1: 128
  2. Day 2: 208
  3. Day 3: 173
  4. Day 4: 290
  5. Day 5: 224
  6. Day 6: 338
  7. Day 7: 301
  8. Day 8: 389
  9. Day 9: 284
  10. Day 10: 422
  11. Day 11: 365
  12. Day 12: 489
  13. Day 13: 437
  14. Day 14: 581

Traffic and sessions

See where visitors come from, which pages they open, and how long they stay.

Custom events

Track signups, form submissions, and actions specific to your app.

Project API keys

Use separate ingestion keys for production, staging, and individual apps.

Send your first event

Install the SDK, initialize it with your project key, and call track() where the action happens.

Setup guide
npm install harshit-metrics
import { createMetricsClient }
  from "harshit-metrics";

const metrics = createMetricsClient("mtr_your_key");

metrics.track("signup_completed", {
  metadata: { plan: "pro" },
});