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

  1. Open your site's HTML template or page <head> section.
  2. Paste the snippet before </head>.
  3. Repeat for every layout/template that renders pages (or use a shared include).
  4. 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