About

Cookieless analytics (Plausible or Matomo): no consent banner, the script with the request's CSP nonce, never on a page that holds a token nor on the sensitive routes

Provides

Hooks filled
layout.scripts
Translations
es

Configuration

Setting Default What it does
ANALYTICS_PROVIDER plausible plausible or matomo. Both count without cookies, so no consent banner is needed (decision D11).
ANALYTICS_SCRIPT_URL empty The provider's script: https://plausible.io/js/script.js, or the address of matomo.js on the Matomo server (the tracker is matomo.php next to it). Empty loads nothing.
ANALYTICS_SITE_ID empty The site as the provider knows it: the domain registered in Plausible (uvlhub.io), or the numeric id of the site in Matomo.
ANALYTICS_EXCLUDED_PATHS /admin,/account,/login,/logout,/signup,/reset,/confirmemail,/confirm_email_change,/confirm_user,/developer,/api,/orcid,/github,/legal/accept The paths, and everything under them, that are never counted: the accounts, the tokens, the administration and the API.
ANALYTICS_SIGNED_IN false Whether the pages a signed-in account sees are counted too. Their addresses are about the account, so they are not by default.

These are the defaults. A product changes them in its own pyproject.toml, under [tool.splent.config], or in .env.deploy in production.

Dependencies

Works better with

In product lines

Extension points

Routes
A refinement can add routes to its blueprint

Other features fill its hook slots. A refinement can override its templates and services or extend its models without forking it.

Compatibility

Python
>=3.13
SPLENT framework
>=1.30.0