Install with HTML script tag
Paste the XPmetric tracking script before </head> on every page of your site.
The simplest install — one deferred script tag in your HTML <head>.
Replace YOUR_SITE_TOKEN with your site token from Settings → Sites → Get Script.
Tracking snippet
<script defer data-site="YOUR_SITE_TOKEN" src="https://xpmetric.com/p.js"></script>Steps
- Open your site's HTML template or page
<head>section. - Paste the snippet before
</head>. - Repeat for every layout/template that renders pages (or use a shared include).
- Deploy and visit your site.
The script is ~1.4 KB, loads with defer, and sends pageviews to XPmetric without cookies.
Plain HTML example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>My Site</title>
<script defer data-site="YOUR_SITE_TOKEN" src="https://xpmetric.com/p.js"></script>
</head>
<body>...</body>
</html>Other platforms
- Google Tag Manager — if you manage tags centrally
- Webflow · Framer — no-code builders