> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openrevenue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HTML installation

> Add OpenRevenue analytics to a plain HTML website with one script tag and your project ID.

Use this guide for static sites, custom HTML, or any framework not listed in the sidebar.

## Add the script

Paste this before the closing `</body>` tag on every page you want to track.

```html index.html {8-12} theme={"theme":{"light":"one-light","dark":"one-dark-pro"}}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>My Site</title>
  </head>
  <body>
    <script
      src="https://api.openrevenue.com/tracker.js"
      data-site="your-project-id"
      defer
    ></script>
  </body>
</html>
```

Replace `your-project-id` with the project ID from [Settings → General](https://www.openrevenue.com/dashboard).

> [!TIP]
>
> Keep `defer`. It loads the tracker after the page is parsed.

## Verify

Deploy your site and open a page. A pageview should appear in your [OpenRevenue dashboard](https://www.openrevenue.com/dashboard) within seconds.

> [!NOTE]
>
> OpenRevenue ignores `localhost` automatically. Test on your deployed URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.