Performance
Lightweight analytics and Web Vitals: measuring speed without slowing pages
The PureStats tracker is about 7 KB gzipped and loads extra modules only when needed. Measure Web Vitals from real visits and serve it from your own domain.

Key takeaways
- The core tracker is about 7 KB gzipped and loads with defer.
- Web Vitals come from real visits, reported as P50, P75 and P95.
- A first-party proxy serves the tracker from your own domain.
What the tracker costs a page
Every script competes with your own code for the network and the main thread. The PureStats core tracker is about 7 KB gzipped, and the snippet loads it with defer, so it runs after the HTML has been parsed and does not block rendering.
Features that need more code come as separate modules: Web Vitals, experiments, no-code events, site search and session replay. A page only downloads a module when the site uses that feature, so a site that tracks pageviews pays for pageviews.
Web Vitals from real visits
Lab tests measure one device on one connection. Field data measures what your visitors experienced. PureStats uses Google's web-vitals library to collect LCP, INP and CLS, the three Core Web Vitals, plus FCP and TTFB, from real page loads.
Reports show P50, P75 and P95 for each metric. P75 is the value Google uses for its rating: three in four visits were at least this fast. P95 shows the slow tail that averages hide. Pages needing attention lists page and metric combinations outside the good threshold, and device, browser and navigation tables help you find where a regression lives.
- LCP: when the largest content element appeared.
- INP: how quickly the page responded to input.
- CLS: how much the layout shifted while loading.
- FCP and TTFB: first content and first byte, for diagnosis.
What Web Vitals collection records
Each sample holds the metric, its value and rating, the page path, the navigation type and the device and browser already detected for the visit. PureStats does not collect page content, resource URLs or performance traces.
Collection is on by default and follows the site's consent mode, Do Not Track setting, path exclusions and bot rules. You can switch it off in the site's privacy settings; the setting reaches the tracker through its configuration, so the snippet stays the same.
Serve the tracker from your own domain
A first-party proxy makes your server answer for /pf.min.js and /api/event and forward them to PureStats. The browser then talks only to your origin, which keeps your Content Security Policy short and makes the requests easy to find in your own logs.
Proxy the core tracker, the modules you use, the event endpoint and the tracker configuration. Cache the JavaScript files for about an hour and never cache /api/event or /api/tracker-config. Register your proxy's outgoing IP addresses as trusted proxies for the site, today through the management API, so PureStats trusts the client address your proxy forwards and nothing a visitor could fake.
- Forward /pf.min.js, the modules you use, /api/event and /api/tracker-config.
- Point the snippet's src and data-api at your own domain.
- Register the proxy's egress IPs as trusted proxies through the management API.
- Check the first hit on the setup page.
Frequently asked questions
How big is the PureStats tracker?
About 7 KB gzipped for the core tracker. Optional modules load only when a site uses them.
Which Web Vitals does PureStats measure?
LCP, INP and CLS, plus FCP and TTFB, from real page loads.
Do I need a proxy?
No. The proxy is optional and helps when you want every request on your own origin.
Measure your real page speed
Install the tracker and see Web Vitals from your own visitors, next to the rest of your analytics.
Start free

