Getting started
Add your site, paste one script tag into every page, and fivebar starts counting.
The tag is one line, the same on every page, so on most sites it goes in the template they all share. From the first visit, the dashboard shows which pages are read, where visitors came from and how fast the site loads for them.
Add the site
New to fivebar? Sign up: it’s free for 30 days, or
until your sites count 1M billable pageviews, and needs no card, as
Your account says. Once your trial has started, you’re taken to add your
first site. Any time after, open Sites and type your domain under Add a site, such as
example.com. A whole address works too: fivebar keeps the domain and drops any www., so
example.com and www.example.com are one site.
A new site counts its days in the time zone your account’s Settings choose for new sites, UTC until you pick another. You can change it in the site’s own settings.
Subdomains
A site covers its domain and every subdomain, so example.com, www.example.com and
shop.example.com are counted together, by path: each one’s home page is /. To count a
subdomain on its own, add it as a site of its own and use that site’s tag there.
Add the script
Paste this into the <head> of every page you want counted, with your domain in place of
example.com:
<script async data-domain="example.com" src="https://fiveb.ar/js/tally.js"></script>Tracking code, next after General in the site’s settings, gives you the tag with your domain filled in, and so does its dashboard until the first visit arrives. Put it in the template or theme every page shares: Platforms shows where that is on WordPress, Next.js, Shopify, Google Tag Manager and more. Or let a coding assistant do it: Coding assistants has instructions to paste into one. Moving from another tool? Switching from another tool has a guide for each.
async lets the page keep loading while the script arrives, and data-domain names the
site the page is counted under. Script attributes covers the rest. The script
sets no cookies and stores nothing in the visitor’s browser, and a page that ends up with two tags is still counted
once.
To serve the script from your own domain, so content blockers that know fiveb.ar let it through, see Proxying. A service with no pages, such as an API or an MCP server, sends each call from its own server instead: see Server events.
Check it works
Open a page of your site, then its dashboard. You’ll be among those on the site now straight away, and in the rest of the figures within a minute or two. Until the first visit arrives, the dashboard shows the tag in place of figures, and switches to them by itself when one does. A site added in the last few minutes can take up to six minutes more to start counting.
Or ask an app you’ve connected over MCP whether fivebar is working on your site. It reads your home page for the tag, as the installation checker does, and says what fivebar has counted so far.
If nothing is counted
Type your domain into the installation checker, which says what to change if the tag is missing or can’t run. If it finds nothing wrong, Troubleshooting goes through what else it usually is.
Content Security Policy
If your site sends a Content Security Policy, add https://fiveb.ar to its script-src
and connect-src:
script-src 'self' https://fiveb.ar; connect-src 'self' https://fiveb.arFor a policy that relies on default-src, or uses nonces, see
Content Security Policy.
What it counts
With nothing more to set up, the script counts:
- every pageview, including each page of a single-page app
- clicks on links to other sites, to files and to phone numbers and email addresses, and forms sent, as actions
- errors thrown by the page’s scripts, as script errors
- how fast each page loaded, as page speed
- how long each page was on screen and how far down it was read, as engagement
To count more, send custom events, set up goals, count what visitors search your site for with site search, or label pages with custom properties.
Read it on the dashboard, in email reports, through the API, or by asking an app connected over MCP.