Skip to content

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.

  1. Set UMAMI_APP_SECRET in .env (openssl rand -hex 32).

  2. Add docker/docker-compose.umami.yml to COMPOSE_FILE in .env, then start Umami alone. Caddy isn’t restarted, so stats.<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 umami
    docker compose up -d umami
    docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$(docker compose ps -q umami)"
  3. From your computer, reach Umami through an SSH tunnel to that address, then open http://localhost:3001, sign in with admin / umami and change the password:

    Terminal window
    ssh -L 3001:<that address>:3000 you@your-server
  4. Publish stats.<DOMAIN>: docker compose up -d.

  5. In Settings › Websites, add your site, then set PUBLIC_UMAMI_WEBSITE_ID (the id shown there) and PUBLIC_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.