Docs Troubleshooting

Help

Troubleshooting

What to check when the dashboard stays empty, a goal does not show up, or the numbers look wrong.

The dashboard keeps saying “Waiting for the first visit”

Go through these in order. The first three explain almost every case.

  1. Is the code on the live site? Open your website, view the page source, and search for script.fivebar.eu. If it is not there, the change was not published yet, or it was saved to a different template than the one your pages use.
  2. Does the address match the site’s domain? The address in your browser has to end in the domain you added. A preview address from your hosting company, another domain you own, and localhost are not counted.
  3. Is something in your own browser blocking it? Ad blockers and some privacy-focused browsers stop analytics scripts. Try a private window with extensions off, or another browser.
  4. Is the tag unchanged? It must keep data-site with your id, must not have type="module", and must not be merged into another script file.
  5. Does your site send a Content Security Policy? Then it has to allow Fivebar.

See for yourself what the script is doing

Your browser can show you each request the script sends:

  1. Open your website, then open the browser’s developer tools (F12, or right-click and “Inspect”).
  2. Go to the “Network” tab and reload the page.
  3. Type script.fivebar.eu into the filter box. You should see two lines: latest.js, the script itself, and event, the pageview.

The number in the “Status” column of the event line tells you what happened:

StatusMeaningWhat to do
202Accepted. The pageview was counted.Nothing. Give the dashboard a few seconds.
403The page is not on the domain this site was added with.Check the domain of the site against the address in your browser.
404There is no site with this id.Copy the line of code again from the dashboard. A removed site’s id stops working.
400The request could not be read, usually a goal name with a character that is not allowed.Check the rules for names.
429Too many requests from your connection within a minute.Wait a minute. This only happens while testing very quickly.
No event lineThe script did not run.If latest.js is missing or marked as blocked, see steps 1, 3 and 5 above.

A goal does not show up

  • Check the name. Only letters a to z, digits, spaces, _ and -, up to 40 characters. A name with any other character is dropped without a message; in the Network tab it shows as status 400.
  • Check the period. The Goals list shows goals reached in the period you are looking at.
  • Check when it is called. A call to fivebar() that runs while the page is still loading fails, because the script is not there yet. Your browser’s console then shows “fivebar is not defined”. Add the extra line that collects early calls.
  • Check the spelling of the attribute. It is data-fivebar-goal, on the element that is clicked or one around it.

The numbers are lower than in another tool

Usually all of these play a part:

  • Crawlers, monitors and other automated traffic are left out. Server logs and some tools include them.
  • Visitors with an ad blocker are not counted.
  • Cookie-based tools count people who declined the banner differently, or not at all.
  • Fivebar counts a person once per day and cannot recognise them the next day. Tools that follow people for months report “users” differently. What the numbers mean.

Too much traffic is listed as “Direct”

Direct means the visit did not say where it came from, which includes most links in emails and chat apps. Tag those links to give them a source of their own.

My own visits are counted

Yes. Your visits to the live site count like anyone else’s, and there is no setting to leave them out. Work on your own computer (localhost) is never counted.