SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
InstalledModules

Analytics (module)

Analytics counts how often the website's pages are viewed, by roughly how many visitors, and which other sites sent them. SHADE counts this itself, on the client's own server, without cookies and without storing IP addresses or browser details, and nothing is sent to another company. A visitor is only recognised for one day, by a daily code made from IP address and browser: pseudonymous, kept at most one day and not linked to an account. It is an official module: an admin installs it and switches it on under Modules, editors read the numbers on the Analytics screen.

What users can do

Admins

  • Switch counting on or off by switching the module on or off under Modules (Managing modules). The site then rebuilds, because the counting script is only in the site while the module is on. Switching off keeps the counts and asks to type the name, like any module that keeps data.
  • Choose whether visitors are asked first: the module's setting Ask visitors for consent before counting under Modules (off by default; see Consent below). Changing it rebuilds the site.

Editors, admins and AI users

  • Open the Analytics screen and choose a period: the last 7, 30 or 90 days.
  • See the period's total page views and visitors, a bar chart of page views per day, the 20 most visited pages and the 10 sites visitors came from most.

Visitors

  • Nothing to do or accept: while the module is on, each page they open is counted once in the background. Browsers that send Do Not Track or Global Privacy Control are not counted. With Ask visitors for consent on, the consent banner asks for Visitor statistics first, and only visitors who allow it are counted.

Other sites

SHADE can count the page views of your other websites too, the same way: no cookies, nothing kept about visitors except the same daily code.

  • On the analytics screen, Other sites → Add a site: a name and the site's address. SHADE shows a script tag to copy into every page of that site (in its layout). Sites that change pages without reloading count each new address as well.
  • Only page views sent from that address count; the key in the tag alone is not enough.
  • The Site picker at the top shows one site at a time: this website or one of the others, with the same figures. Each site shows when its last page view came in.
  • Stop counting deletes a site's counts; its script tag then does nothing.

Who may: everyone who sees analytics sees the other sites; adding and removing them needs settings.update (admins).

Goals

A goal counts something a visitor did on a page that matters to the business: clicking Get started, opening the GitHub link, sending the contact form. Still without cookies, and with nothing kept about who: only how often per day and page.

  • On the analytics screen, Goals → Add a goal: a name of lower case letters, digits and dashes (at most 40), such as contact-sent. At most 50 goals.
  • The site (or another registered site) sends that name when it happens, with the page's path: POST /api/v1/account/analytics/event with { "goal": "contact-sent", "path": "/contact" } (another site adds its "site" key, as its script tag does), sent like a page view: navigator.sendBeacon with the JSON as text.
  • A name not added here is refused (404), so a site can't fill the counts with names of its own; a malformed request is refused too (400). Otherwise the answer is 204, counted or not, by the same rules as a page view (see Rules and limits).
  • Each goal shows its count for the period; Pages and days lists its 10 most frequent pages and the days it was reached. The goals are the same for every site; the Site picker shows that site's counts.
  • Stop counting deletes a goal's counts, of every site; the site's requests with its name are refused from then on.

Who may: everyone who sees analytics sees the goals; adding and removing them needs settings.update (admins).

Counting clicks from the website editor

  • Components → add Counted button or Counted link (they are there while analytics and the website module are both on). Each use has a Goal field: the goal's name as it is on the Goals card, such as get-started. The button looks like the theme's main button; the link is a plain text link.
  • Any other element counts too: give it the attribute data-goal with the goal's name (in the element's attributes), for instance a button in an interactive part, or a link to GitHub. A click on it, or on something inside it, counts the goal on that page.
  • The click is sent like a page view, so it counts also when the link leaves the page or opens a new tab (a middle click). Visitors with Do Not Track or Global Privacy Control are not counted, and nothing is sent in previews.
  • A name that isn't on the Goals card isn't counted. Check the Goals card after the first clicks.
  • Another site's script tag counts its data-goal elements the same way.

Who may do it

ActionPermissionRoles
Read the Analytics screen and reportcontent.readadmin, editor, ai
Add or remove other sitessettings.updateadmin
Add or remove goalssettings.updateadmin
Switch the module on or off, change its settingpackages.manageadmin
Report a page view (site script)noneanyone (rate-limited)
Report a goal reached (site)noneanyone (rate-limited), defined goals only
Read the counts with an AI assistant's toolsanalytics.read and content.readadmin, ai

The module's one action of its own, analytics.read (Read analytics through the AI's tools), gates its tools for AI assistants. Admins and AI accounts have it; give it to a custom role on the Team screen if needed.

For AI assistants

While the module is on, an AI assistant connected over MCP (AI assistants) can read the same numbers as the Analytics screen with three read-only tools: analytics_summary (views, visitors, pages, where visitors came from, campaigns, devices, countries, languages, pages not found, and the other sites counted), analytics_goals (each goal per day and page) and analytics_paths (from which page to which, optionally only to or from one page, such as everything that leads to /contact). Each takes a period of 7, 30 or 90 days and a registered site. They change nothing, and they hold nothing about a visitor: only counts. So an assistant can answer "how did the launch week go?".

In the admin

Analytics in the sidebar's Insights section (icon a column chart), visible to everyone with content.read while the module is on. The admin is in English and Dutch; the labels below are the English ones.

  • Top right: a Period select with Last 7 days, Last 30 days (default) and Last 90 days.
  • For this website, a short explanation: no cookies, no IP addresses stored, nothing shared with other companies, visitors recognised within one day only, browsers that ask not to be tracked are not counted, and counting stops when the module is switched off while the counts stay.
  • Two totals: Page views and Visitors for the period. Under Visitors: "Counted per day and added up: someone who comes back on another day counts again." (also the hint on the pages table's visitors column).
  • Per day: a bar chart of page views for every day of the period (days without views show a minimal bar). Hovering a bar shows the date, its views and visitors. The first and last date are shown under the chart, and Show as a table lists every day with its views and visitors (for a keyboard and a screen reader too).
  • Most visited pages: a table with Page (the path), views and visitors, top 20 by views. Empty text: "No page views counted in this period."
  • Came from: referring host names with their views, top 10. Empty text: "No other sites linked here in this period."
  • From page to page: which page visitors opened next from another page of the site, as From, To and views, top 20. Empty text: "No visits from one page to another in this period."
  • Campaigns: the campaigns page views arrived with, top 20 by views: the campaign's name, with its source and medium under it ((none) for one the link didn't give). Empty text: "No page views with campaign parameters (utm_source, utm_medium, utm_campaign) in this period."
  • Goals: each goal with its count for the period, and Pages and days to open its 10 most frequent pages and the days it was reached (days without one are left out). Admins see Add a goal and, per goal, Stop counting (it asks first: Stop and delete). Empty text: "No goals yet."
  • Devices: page views on a phone, a tablet and a desktop. Countries: page views by country, top 20, with the credit for the country data under it. Languages: page views by the page's language and the language the visitor's browser prefers, top 20. Pages not found: visits to addresses the site doesn't have, by address, top 20.

The report contains only these things: totals, the daily series, pages, referrers, campaigns, page paths, devices, countries, languages, pages not found and goals. Each is counted on its own: there is no way to combine them, for instance phones from Germany, and no breakdown by browser.

  • Dashboard card "Visits" (in the default layout, medium): page views and visitors over the last 7, 30 or 90 days (its setting Period, 30 by default, set in Customize), with a link to the full report.

On the website

  • While the module is on, every page has a small script that reports the page view. It is left out of previews and is not there at all while the module is off.
  • The script does nothing when the browser sends Do Not Track or Global Privacy Control. Otherwise it reports the page's path and the address the visitor came from, once per page, and the goal of each element with data-goal that is clicked (see Counting clicks from the website editor).
  • No cookies are set.

SHADE's position. Counting needs no consent under the Dutch Telecommunicatiewet (article 11.7a, the Dutch form of the ePrivacy rule on cookies), because nothing is stored on or read from the visitor's device: no cookie, no local storage, and the request is one the page makes anyway. The day's code is personal data for one day, processed on legitimate interest (GDPR article 6(1)(f)): knowing which pages are used is a real interest of the site's owner, counting needs only that day's code and never the address or browser, the code is gone the next day and never combined across days or sites, visitors expect a site to know its visits, and Do Not Track and Global Privacy Control stop it.

The risk. The European Data Protection Board's Guidelines 2/2023 on the technical scope of the ePrivacy rule read it more widely: ways of recognising a device without storing anything on it, as fingerprinting does, can count. A regulator or court may follow that reading. Confirm the position with your own counsel; this page reports what the code and design do, and is not legal advice.

The choice. So the module has a setting, Ask visitors for consent before counting (off by default). Off: the module counts without asking, and the Modules page shows its reason for needing no consent. On: the consent banner (Consent banner) asks for Visitor statistics (Bezoekersstatistieken), and the counting script waits in the page until a visitor allows it; whoever does not is not counted. Changing the setting rebuilds the site, so the pages carry the banner and the script as chosen.

Rules and limits

What is counted

  • One view per page view. A visitor counts once per day for the whole site and once per day per page.
  • A visitor is recognised by a daily code made from the site, the day, their IP address and their browser. The code is pseudonymous: it holds neither, but SHADE's own key could produce it again for a known IP address and browser, so it is kept at most one day and not linked to an account. The code changes every day, so the same person on two days counts as two visitors: visitor totals over a period are the sum of the daily counts.
  • Days are calendar days in the site's time zone (Settings → Site → Time zone, Europe/Amsterdam by default).
  • The path is cut at ? or # and loses its trailing slash (/over-ons/?utm=x#team counts as /over-ons).
  • The referrer is kept as a host name only, lower case, without a leading www., at most 253 characters. Links from the site's own host (from Site URL in settings) are not referrers. A referrer that is not an address is dropped.
  • Campaigns: a link to the site with utm_source, utm_medium or utm_campaign in its address (such as https://example.org/?utm_source=newsletter&utm_campaign=launch) counts the page view under that campaign. Give each launch post or mailing its own link. Only these three parameters are read, nothing else of the address. Each is kept in lower case, at most 100 characters; a value with @ in it is left out, since it may be an email address. Campaigns count page views, not visitors. A visitor who reloads the page they arrived on counts again.
  • From page to page: when a page view's referrer is another page of the same site, the pair "from that page to this one" is counted, such as /vergelijking/wordpress to /contact. Each view is counted alone: pairs are never chained into one visitor's route through the site. A reload, a link within the page and pages the site doesn't count (such as /account) make no pair. A browser that sends no referrer, or only the site's address, leaves no pair either.
  • Devices: the browser works out phone, tablet or desktop when the page opens: a touch screen is a phone when its short side is under 600 pixels, else a tablet; a mouse or trackpad is a desktop. Only that word is sent.
  • Countries: looked up on the server from the visitor's IP address in a copy of DB-IP's free IP to Country Lite that comes with SHADE (licensed CC BY 4.0, credited on the screen). Only the two-letter country code is kept, never the address and never a region or city. Nothing is asked of another service. Addresses the data doesn't know aren't counted. The data is updated with each release of SHADE; the screen shows which month it is from.
  • Languages: the page's language, and the first language in the visitor's browser settings, each as its main code (en-GB counts as English). Visitor prefers German on English pages says a German translation would be read.
  • Pages not found: a view of an address the site doesn't have is the site's not found page: it is counted here by that address (cut at ?), not as a page view, and goals on it don't count. Only once the site has been published, so the site knows its addresses. Other sites (with a script tag) don't report these.

What is ignored (silently)

  • Everything while the module is off.
  • Page views from browsers that don't say what they are, and from bots, crawlers, link previews, monitors, headless browsers and scripts.
  • The site's own technical paths: /preview, /account, /pagefind, /_astro, /_server-islands (and anything under them).
  • Paths the site does not have: a page view counts only when its path is a published page or item page. So a script cannot fill the report with made-up paths, and the not-found page is not counted. Before the first publish, every path counts.
  • Paths over 500 characters and referrers over 2000.
  • Pages not found are counted, but not as page views (see above).
  • Page views of this website that say they come from another site's address.
  • Beyond 2,000 different pages, 500 different referring sites, 500 different campaigns, 2,000 different page pairs, 200 different language pairs or 2,000 different missing addresses for one site on one day, the rest is added up under (other), so the totals still add up. The limits keep the counts from growing without end; page views counted at the very same moment may each add a page and go over a limit by a few.

Privacy by construction

  • No cookies, no IP address and no browser details stored. The only per-visitor data is the day's code (pseudonymous, not linked to an account); it is deleted the next day (Data retention).
  • Counts are stored per day: views and visitors per day and path, views per day and referring host, views per day and campaign, views per day and pair of pages, views per day and device class, country code, language pair or missing address, and per day, goal and path how often the goal was reached (no daily code for any of these: they count times, not visitors).

Limits

  • At most 120 page views per minute from one IP address, and 120 goals (protection).
  • Beyond 2,000 different goal and page pairs for one site on one day, the rest counts on the goal's (other) page, so a goal's total still adds up.
  • Periods are only 7, 30 or 90 days.
  • The daily counts, referrers, campaigns, page paths, devices, countries, languages, pages not found and goals are kept two years by default (at least 90 days), see Data retention. Switching the module off keeps the counts; uninstalling it removes them.
  • Switching the module on or off rebuilds the site and is in the audit log, like any module.

For developers

The code and its tests: the README of shade-plugin-analytics.