# Docusaurus

Add the tag to every page of a Docusaurus site, from its config.

Add the script to `scripts` in `docusaurus.config.js`, with `async` and your domain:

```
export default {
  // …
  scripts: [
    { src: 'https://fiveb.ar/js/tally.js', async: true, 'data-domain': 'example.com' },
  ],
};
```

Docusaurus puts it in the head of every page. It moves between pages without loading them, and each is counted as a [single-page app](https://fiveb.ar/docs/single-page-apps.md)’s. See [Docusaurus’s configuration](https://docusaurus.io/docs/api/docusaurus-config).

Once it’s live, [check it works](https://fiveb.ar/docs/install.md#check-it-works).

---

fivebar is web analytics without cookies, at https://fiveb.ar. Every page of its docs is listed at https://fiveb.ar/docs/index.md.
