Start here
Add the snippet
Register a site in Settings, then drop one script on it. Pageviews — including single-page navigations — are tracked automatically.
Script tag
Paste this in your site's <head>, with your own site ID:
<script
id="ptmetrics-script"
data-site-id="your-site-id"
src="https://your-server/tracker.js"
defer
></script>Or npm
For browser-based projects that prefer modules:
npm install @ptmetrics/tracker
import * as Tarsier from "@ptmetrics/tracker";
Tarsier.init({
siteId: "your-site-id",
reporterUrl: "https://your-server/collect",
});One script, sixty seconds, zero cookies. Then open your dashboard and watch the first visitor arrive. Probably you.
Watched by Tarsier
A little bubble with his eyes, linking back here. Paste it anywhere you want the credit:
<script src="https://your-server/badge.js" defer></script>
Single-page apps
Client-side navigations are tracked automatically — no router hooks, no manual calls. If you render pages yourself instead, set autoTrackPageviews: false and call Tarsier.trackPageview() when a pageview happens.