Install quietstats on Docusaurus
Add the one-line, cookie-free quietstats script to Docusaurus using the scripts list in docusaurus.config.js. It takes about two minutes.
Your snippet
It looks like this; copy yours, with your own site ID, from the Manage page in quietstats.
<script data-host="https://quietstats.co.uk" data-dnt="true" src="https://quietstats.co.uk/js/script.js" id="YOUR_SITE_ID" async defer></script>845 bytes, no cookies, nothing stored on the visitor’s device.
Steps
- Copy your quietstats snippet from your site’s Manage page in quietstats.
- Open
docusaurus.config.js(or.ts). - Add an entry to
scripts:{ src: 'https://quietstats.co.uk/js/script.js', id: 'YOUR_SITE_ID', 'data-host': 'https://quietstats.co.uk', 'data-dnt': 'true', async: true, defer: true }. - Build and deploy, then check the Live view in quietstats.
Good to know on Docusaurus
- This is a single-page app framework: page changes without a full reload are only counted with the SPA add-on, a second tag you add the same way.
Source: Docusaurus docs: scripts, checked 4 December 2026. Menus can move; the help page has the current names.
Check it’s working
- Visit your site in a normal browser window (not one with Do Not Track or Global Privacy Control switched on: quietstats respects them and sends nothing).
- Open the Live view in quietstats: your visit appears within a few seconds.
- Nothing after a minute? See site checks, which test that the snippet is on your page.
Related pages
- All install guides and docs
- WordPress, Shopify, Webflow and Framer
- Plain HTML websites
- Next.js apps
- Install on Squarespace
- Install on Wix
- Install on Ghost
- Install on Google Tag Manager
- Install on Astro
- Install on Nuxt
- Install on SvelteKit
- Install on Hugo
- Install on Jekyll
- Install on Eleventy (11ty)
- Install on Gatsby
- Install on React or Vue (Vite)
- Install on Django
- Install on Laravel
- Install on Ruby on Rails
Try quietstats on your own site
Free for one site and 5,000 pageviews a month, no card needed. No cookies and nothing stored on your visitors’ devices.