01Quick start
Install Metryo in minutes.
Create a website in your dashboard, copy your snippet, and paste it before the closing </head> tag. Data appears within seconds of the first visit.
index.html
Replace site_xxxxx with the site ID from your dashboard — everything else is copied as-is.
02Install guides
Step by step, for your stack.
The same snippet everywhere — these cover where it goes in each setup, what is tracked without any further code, and what to check if nothing arrives.
- 01Any websiteOne script tag before the closing </head> tag. Works on plain HTML, static site generators and any CMS that lets you edit the page head.
- 02Next.jsPut the script in your root layout. Route changes in the App Router and the Pages Router are counted automatically — there is no provider to wrap your app in.
- 03ReactAdd the snippet to index.html and you are done. Navigation through React Router or any router built on the History API is picked up without a line of code.
- 04WordPressA few lines in your theme's functions.php print the script on every page. No plugin to install or keep updated.
03Reference
Everything the product does.
One page per feature: what it is for, how to set it up, the exact syntax, and which plans include it.
- 05Custom eventsPageviews are automatic on every plan. For everything else — signups, purchases, downloads — call metryo.event() from anywhere in your code. Available on all plans, including Free.
- 06Paid plansClick trackingOn any paid plan the script also records clicks on its own. Mark an element with data-metryo-event and it is tracked by name; outbound links and file downloads are detected with no markup at all.
- 07Paid plansGoalsA goal is a page reached or an event fired that you count as a conversion: the thank-you page, a signup, a download. The dashboard shows how many visitors converted, how often, and at what rate of all visitors — and can be filtered to just the visitors who did.
- 08Growth and upFunnelsA funnel is a journey you define — a landing page, then pricing, then a signup. For each step Metryo counts the visitors who reached it after every step before it, so the step that loses people is the one with the steepest drop.
- 09FiltersClick a page, a source, a country, a browser or an event and the entire dashboard — every metric, the chart and every list — is recomputed for that segment. Filters combine, sit in the URL, and are on every plan.
- 11Pro and upStats APIA read-only JSON API over the same numbers the dashboard shows: totals, a visitor series, top pages and any breakdown, with the same filters. Create a key on your account page and send it as a bearer token. Up to 120 requests a minute per key.
- 12AI assistants (MCP)Metryo runs an MCP server. Add one address to an assistant that speaks the Model Context Protocol, sign in to your account, and ask about your traffic in plain language. It reads the same numbers your dashboard shows, and it cannot change anything.
- 13Script optionsThe script needs only data-site. The rest are attributes for the cases that need them, and one localStorage key for keeping your own visits out of your numbers.
- 14Collect APIThe script sends a tiny JSON payload to POST /api/collect. You can also call it directly from native apps or server-side code.