Documentation menu

Getting started

Tracking

Using Quietlytics

Help

Tracking

What is tracked

What the snippet records for each pageview, with no extra code.

With just the snippet installed, each pageview records:

  • The page path. The query string and #fragment are removed. Segments that look like IDs (numbers, UUIDs, long hex strings) become :id, so /users/48213 and /users/77 group as /users/:id.
  • The referrer, as a hostname only, such as news.ycombinator.com. Visits from your own site are not counted as referrals.
  • Browser, operating system and device type as coarse groups (for example Chrome, macOS, Desktop). Anything unrecognised is grouped as Other.
  • Country, as a two-letter code, when your site is served through Cloudflare. Cloudflare works it out from the visitor's address and passes it on; Quietlytics keeps the country only, never the address. There is nothing finer than country, and sites that are not behind Cloudflare simply have no country data.
  • Whether the page was an error page, such as a 404, when the browser reports it (see below).
  • Campaign tags from the address (see below).
  • A daily visitor code, used only to count unique visitors within a day. See privacy behaviour.

A new pageview is recorded when the page loads and when your app changes the address with history.pushState or the browser's back and forward buttons. Changing only the #fragment is not counted, and neither is navigating to the exact address the visitor is already on. A full page reload is a new pageview.

Error pages (404s)

When a visitor lands on a page that your server answered with an error, such as a 404 Not Found, Quietlytics records that status with the pageview. Your dashboard then shows it in two places:

  • Top pages marks a page with a red status such as 404 when most of its views were served as an error, so an old address that no longer exists stands out.
  • Broken pages is a card of its own. It lists the pages served as an error, most hit first, with the number of visitors, how many hits, and where those visits came from (the referring sites, or direct). Click a row to filter the whole dashboard to that page. The sources tell you which old links or other sites to fix or redirect.

Things to know:

  • It needs the tracker on your error page. Most sites use their normal layout for a 404, which already includes the snippet. If your 404 page does not, those visits are not recorded at all.
  • The browser has to report the status. Chrome and Edge do. Where a browser does not, the visit is counted as a normal pageview, so the list shows a minimum, not every broken page.
  • Only the page a visitor lands on is checked. A page your app opens by changing the address in the browser, without loading a new page, has no status of its own.
  • Single-page apps often answer 200 for everything and show a "not found" screen in the browser. The server never sent an error, so nothing is recorded. If you can, put data-status="404" on the snippet in your error page template:
    <script defer src="https://quietlytics.app/tracker.js" data-status="404"></script>
    It is used when the browser does not report a status. Only values from 400 to 599 count, and it applies only to the first pageview of that page load. Use it only on the error page itself.
  • The status is stored as a number, only for errors, and is included in the CSV export as status.