Self-Hosted Analytics: A Setup and Maintenance Checklist

A self-hosted analytics checklist for infrastructure, TLS, access control, backups, retention, scaling, and Umami, OpenPanel, or Matomo.

All posts · 2026-07-16 · Updated 2026-11-13 · By Data Lighthouse Research · Self-Hosting

self-hosted · analytics · devops · infrastructure · maintenance

Self-hosting analytics gives you control over data and infrastructure, and it also shifts responsibility to your team. Many organizations choose it for privacy, customization, and a tighter fit with systems they already run. Standing the stack up, and keeping it healthy, takes a plan. This checklist covers infrastructure, security, retention, scaling, and maintenance, and it names where Umami, OpenPanel, and Matomo usually fit before you commit.

Why self-host

Teams self-host to keep data on infrastructure they control, to meet a residency or retention rule, and to change the product instead of waiting on a vendor roadmap. It can also cost less than a usage-priced host once volume is high, because you pay for machines and time rather than an events quota. The trade is in-house skill. Someone has to patch the app, back up the database, watch disk, and answer an incident. Weigh that operating cost before you treat a one-afternoon Docker install as a finished analytics program.

Infrastructure requirements

A self-hosted analytics install needs a place to run, a database, a way to move data, and the analytics app itself. Decide the hosting plan first: a virtual machine, a container platform, or a managed host. Then pick the rest of the stack to match the traffic you actually expect.

  • Server: on-premise hardware or a cloud VM. Size it for CPU, memory, and disk, and write down how you will add capacity when traffic spikes.
  • Database: PostgreSQL and MySQL are the usual choices for these apps. MongoDB shows up in some custom pipelines. Plan backups and a retention policy with the database, not after the first disk alert.
  • TLS and a reverse proxy: terminate HTTPS, restrict the admin port, and monitor the proxy. A dashboard that is only reachable over plain HTTP is not a finished install.
  • Data processing: ETL such as Apache Airflow or Talend matters when analytics is downstream of a warehouse. A simple site tracker often writes straight into its own database and does not need a separate ETL cluster.
  • Analytics software: Matomo, PostHog, Umami, OpenPanel, or a dashboard you build. Match the app to the questions you ask, then size the host for that app.

Security and access

Treat the analytics host like any other production system that can see customer behavior. Access, patches, and logs are part of the checklist, not a later hardening project.

  • Role-based access for admins and viewers. Marketing should not need a shell account to read a report, and a viewer should not be able to export raw rows or change tracking settings.
  • A patch cadence for the analytics app, the database, the proxy, and the host OS. Write down who applies upgrades and how you roll back.
  • Audit logs and alerting where the tool provides them. At minimum, alert on disk, failed backups, certificate expiry, and a process that is down.

Data retention and backups

Retention is both a compliance control and a cost control. Raw events grow faster than the charts people actually open. Decide how long each kind of data lives, and prove you can restore it.

  • Define retention periods by data type. Regulatory needs and the decisions you still make from old data should set the window, not the default in the installer.
  • Backups: full and incremental, automated, and stored off the same disk as the database. A backup you have never restored is a hope, not a plan.
  • Deletion workflows. When a retention window ends, or when someone asks you to delete their data, the job has to exist. A policy page that the database ignores does not count.

Data governance

Infrastructure answers where the bytes sit. Governance answers who may look at them and what must never be stored. Self-hosting does not remove that work.

  • Anonymization or redaction for identifiers you do not need. IP addresses, raw user ids, and full URLs that contain emails or tokens are the usual leaks.
  • A written rule for who can access raw data versus aggregated reports. Raw event access should be rare, named, and logged.
  • A review when a new integration is added. A tag manager, a replay tool, or a server-side enricher can collect fields the original checklist never allowed.

Scaling considerations

Growth shows up as slower dashboards, a full disk, or an ingest path that drops events. Plan the first scale step before you need it overnight.

  • Vertical scaling: more CPU, RAM, or disk on the current server. It is the simplest step and it has a ceiling.
  • Horizontal scaling: more servers and a shared database or a queue. This is the usual path once a single node cannot keep up with writes.
  • Load balancing: spread dashboard and ingest traffic so one hot process does not take the site down.
  • A spike plan: a launch, a campaign, or a bot flood should degrade ingest gracefully instead of filling the disk.

Product and analytics fit

Do not size a cluster for a product you do not need. Umami focuses on privacy-first web analytics and a lightweight deployment: pageviews, referrers, and a small event model without a large ops surface. OpenPanel adds product analytics such as funnels, cohorts, and user profiles, which means a stricter event schema and more storage. Matomo is a broad suite with on-premise installation guidance and optional modules such as heatmaps, session recording, and A/B testing. Match the tool to the reports you will actually open, then invest in the infrastructure that tool requires.

Maintenance checklist

Self-hosted analytics has to be operated the way you operate the application it measures. Matomo's on-premise guide is a useful reference for scaling and upkeep even if you run a different app, because the chores are the same: backups, upgrades, monitoring, and performance. Use this list on a schedule, not only on the day of the install.

  • Monitor system health: server metrics, database health, and ingest lag, so you see trouble before the dashboard goes blank.
  • Update software: the analytics app and the infrastructure under it, for security patches and for bug fixes that affect counts.
  • Review data integrity: spot-check that the events you send are the events you store, and that retention jobs actually delete.
  • Security audits: access lists, exposed ports, and tokens in URLs. Re-run the audit when a new integration ships.

Conclusion

Self-hosting is a sound choice when control and customization are requirements and someone on the team can own the host. The checklist is the work: TLS, backups, least-privilege access, a retention job, a scale plan, and a product that fits. Skip any one of those and the dashboard becomes another unowned system. If you want the same reports inside a Next.js app you already deploy, the build guide and the template comparison are the next pages to read.

Related reading

Sources