---
title: "Install with HTML script tag"
description: "Paste the XPmetric tracking script before </head> on every page of your site."
source: "https://xpmetric.com/docs/install/html"
---
The simplest install — one deferred script tag in your HTML `<head>`.

<TokenCallout />

## Tracking snippet

<TrackingSnippet />

## 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

```html
<!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](/docs/install/gtm) — if you manage tags centrally
- [Webflow](/docs/install/webflow) · [Framer](/docs/install/framer) — no-code builders

