Get started
WebMetric documentation
Everything you need to install WebMetric on your site and read what it reports.
Start here
New to WebMetric? The quickstart takes you from a new account to your first recorded page view.
Already installed and not seeing events? Go straight to troubleshooting.
Every page
Install guides
- HTMLAdd one script tag to the head of every page.
- npmImport the tracker in a bundled app and start it with init().
- Next.jsApp Router and Pages Router, with next/script or the npm package.
- ReactSingle-page React apps built with Vite, Create React App or similar.
- VueVue 3 apps built with Vite, and Nuxt.
- WordPressAdd the tag to your site’s head with a header code plugin or a few lines of PHP.
- ShopifyAdd the tag to theme.liquid so it runs on every storefront page.
- WebflowAdd the tag in your site’s custom code settings.
- SquarespaceAdd the tag to every page with code injection.
- WixAdd the tag as custom code in the head of all pages.
- Google Tag ManagerLoad the tracker from a Custom HTML tag on every page.
Reference
- SDK referenceEvery script tag attribute, init() option and method, with defaults and limits.
- Consent modeWait for your consent banner before recording anything, or before starting session replay.
- Content Security PolicyThe script-src and connect-src sources the tracker needs.
- Read API referenceEvery read API endpoint, with its parameters, response fields and errors.
- TroubleshootingNo events? Work through the common causes, from ad blockers to domain mismatches.
Your data
- PrivacyWhat the tracker collects, what it never stores, and the controls you have.
- Metrics glossaryHow every number in the dashboard is defined and counted.
- Retention, export and erasureHow long data is kept, what you can export, and how to erase a visitor.
- Data subject requestsWho answers a visitor’s request, how to find their data, what erasure deletes, and when backups catch up.
- Billing and usageWhat counts as an event, what happens at your limit, invoices, tax and cancelling.