Analytics
Umami counts visits to the public landing page: page
views, referrers and clicks on its main buttons. It is cookie-less and keeps
no visitor ID, and never tracks anything inside the app (/app).
This documentation site counts its own visits the same way, with the Umami instance of loomkeep.app. Your instance sends it nothing.
-
Set
UMAMI_APP_SECRETin.env(openssl rand -hex 32). -
Add
docker/docker-compose.umami.ymltoCOMPOSE_FILEin.env, then start Umami alone. Caddy isn’t restarted, sostats.<DOMAIN>isn’t published yet: Umami comes with a default account (admin/umami) that anyone could use until you change its password.Terminal window docker compose pull umamidocker compose up -d umamidocker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$(docker compose ps -q umami)" -
From your computer, reach Umami through an SSH tunnel to that address, then open
http://localhost:3001, sign in withadmin/umamiand change the password:Terminal window ssh -L 3001:<that address>:3000 you@your-server -
Publish
stats.<DOMAIN>:docker compose up -d. -
In Settings › Websites, add your site, then set
PUBLIC_UMAMI_WEBSITE_ID(the id shown there) andPUBLIC_UMAMI_SCRIPT_URL(https://stats.<DOMAIN>/loomkeep.js). Restart.
The tracking script and endpoint are renamed (/loomkeep.js and
/api/loom), so generic ad-blocker lists don’t drop a cookie-less counter
by name. Umami has its own login only: putting stats.<DOMAIN> behind
single sign-on would block those two paths for your visitors too.
Umami keeps its data in a database of its own inside Loomkeep’s PostgreSQL.
That database is created only on a new install: on an instance that already
ran, create it once with the command at the top of
docker/docker-compose.umami.yml.