Help · Install
Install on any website
One line in the head of every page. Works with static sites, single-page apps and subdomains.
Add this line inside the head tag of every page, with the site id shown in your site settings:
<script defer src="https://bearingstats.com/s.js" data-site="YOUR_SITE_ID"></script>defer loads the script after your page, so it never slows it down. The script weighs less than 3 KB and sets no cookie.
Single-page apps
React, Vue, Svelte and other apps that change page without reloading are followed automatically: each navigation counts as a pageview.
Several domains or subdomains
- Subdomains of your site's domain are counted with it:
shop.example.combelongs toexample.com. - Another domain (say
example.fr) is another site: add it in Sites and use its own line.
Testing on your computer
Visits from localhost are ignored, so your development doesn't pollute your numbers. To test locally anyway, add data-allow-localhost to the line.