# Any other site

> One script tag in the head of every page. Works on any site.

On any site you control, Okidoki is one line. Put it inside `<head>` on every page:

```html
<script defer data-site="ok_your_site_key" src="https://okidoki.sh/js/okidoki.js"></script>
```

Copy the line from the setup page of your site in [Okidoki](https://okidoki.sh/app). It already has your site key in `data-site`.

## Where it goes

- **Every page.** Pages without the tag are not counted. If your site uses one shared header or template, put it there.
- **In the head.** The `defer` attribute makes the browser load it after your page, so it never slows the page down.
- **Once.** Two copies of the tag count each page twice.

## Static site generators and templates

| Tool | Where to put the tag |
| --- | --- |
| Astro | Your base layout, inside `<head>` |
| Hugo | `layouts/partials/head.html`, or the head of `baseof.html` |
| Eleventy, Jekyll | The base layout used by every page |
| Plain HTML | The `<head>` of every `.html` file |
| Google Tag Manager | A Custom HTML tag that fires on all pages |

## What happens next

Open your site once. The setup page in Okidoki turns green when the first visit arrives. See [Check that it works](https://docs.okidoki.sh/install/check).

The script counts page views, how long each page is on screen, outbound links, downloads, email and phone links and form submissions, all by itself. See the [Tracker reference](https://docs.okidoki.sh/tracker) for every attribute and what is sent.

