Tutorial

Self-Host Umami — Privacy-First Web Analytics

March 12, 2026

Back to Blog

Why Replace Google Analytics?

Google Analytics collects extensive user data, requires cookie consent banners in the EU, and can be blocked by ad blockers. Umami is a lightweight alternative that tracks what matters without compromising visitor privacy.

Key Advantages

FeatureGoogle AnalyticsUmami
Cookie consent requiredYes (GDPR)No (cookie-free)
Data ownershipGoogle's serversYour server
Script size~45 KB~2 KB
Page speed impactNoticeableNegligible
Ad blocker resistantOften blockedFirst-party domain = not blocked
Learning curveComplex UIClean, simple dashboard

Deploy on Panelica

Go to Docker → App Templates and deploy Umami. Panelica sets up the application with its PostgreSQL database automatically.

After deployment, log in with the default credentials (admin/umami) and change your password immediately.

Adding Your First Website

  1. Go to Settings → Websites → Add Website
  2. Enter your domain name
  3. Copy the generated tracking code
  4. Add the tracking code to your website's <head> section

The tracking script is a single line:

<script defer src="https://analytics.yourdomain.com/script.js" data-website-id="your-id"></script>

What Umami Tracks

  • Page views — Which pages are visited and how often
  • Visitors — Unique visitor counts (without cookies or fingerprinting)
  • Referrers — Where your traffic comes from
  • Browsers & OS — What devices and browsers visitors use
  • Countries — Geographic distribution of visitors
  • Custom events — Track button clicks, form submissions, and more

Using a Custom Domain

For ad-blocker resistance, serve Umami from your own subdomain (e.g., analytics.yourdomain.com). In Panelica, create a subdomain and link it to the Umami container. Since the script loads from your own domain, ad blockers cannot distinguish it from your regular content.

Summary

Umami provides everything most websites need from analytics without the privacy concerns, cookie banners, or data sharing of Google Analytics. At under 2 KB, it will not slow down your site, and self-hosting means your visitor data never leaves your infrastructure.

Share: