Skip to content
New Bring your history: import it from Google Analytics, Plausible, Simple Analytics, Umami, Matomo or GoatCounter, on every plan

Documentation

How to send your site's traffic, your product's events and your revenue to mettr, and how to read them on the dashboard, in alerts, on a TV or through an AI assistant.

mettr shows who is on your site right now, what they do in your product, where they came from, what broke and what it earns, live. These pages explain how data gets in and what you can do with it once it is there.

How data gets in

  • The browser script sends page views, navigation in single-page apps, outbound clicks, each page's Web Vitals and who is on the page right now. One line in your layout. See Browser script.
  • A server SDK sends your product's own events (sign-ups, upgrades, exports), errors and sign-ins from your backend, where nothing can block them. There are SDKs for Laravel, plain PHP, Node.js, Next.js, Python, Ruby and Go, and the Events API for any other language.
  • A platform's plugin does it with no code: WordPress, Statamic, Shopify, a Cloudflare Worker in front of any site, or the script pasted into a site builder.
  • Connections bring in what other services know: revenue from Stripe, Paddle, Polar or your own billing, Search Console from Google, downloads and releases of your packages on Packagist, npm, PyPI and crates.io, stars, releases and issues of your GitHub repositories, and deploys from GitHub, GitLab, Bitbucket or any CI.
  • History from before mettr comes from another tool (Google Analytics 4, Plausible, Simple Analytics, Umami, Matomo, GoatCounter) or through the Import API, and leaves as an export whenever you like.

Where to start

New to mettr? The Quick start takes you from an account to your first live visitor in a few minutes.

Already sending? Learn the dashboard, give your events names of your own with labels, set up alerts and reports, put the dashboard on an office TV, or let an AI assistant read your numbers through the MCP server.

Words used here

  • Site: one website or product, with its own domains, keys and dashboard. A site belongs to a team.
  • Event: one thing that happened, with a type: pageview, event (your product's own, such as signup), error, revenue, and a few the script and SDKs send for you.
  • Visitor: a person on the site that day, told apart by a daily hash. The same person is a new visitor the next day, and no address or cookie is kept.
  • Online: visitors seen in the last 90 seconds (the browser script sends a heartbeat every 30), or active in the last 5 minutes on a site with no script. Where the script runs, a client the server alone sees (a scraper fetching files) is not online, and sampled response times never count anywhere but their own panels.
  • Bots and staff: crawlers, scanners and your own team are flagged as they arrive and left out of every number. Nothing is dropped.

Sending data

Server SDKs

Platforms

API

Connections

Using mettr

Assistants and apps

Account

Updated · This page as Markdown · Something unclear? [email protected]

Search the docs, features, comparisons, blog and changelog