HowGetFree

Home / Guides / Free self-hosted website analytics

Free self-hosted website analytics

How to Set Up Privacy-Focused Website Analytics for Free With Umami

Explore Umami's self-hosted website analytics workflow, install the tracking snippet, verify events and understand privacy, consent and maintenance limits.

Published · HowGetFree Editorial · Practical guide

Illustrated cover for How to Set Up Privacy-Focused Website Analytics for Free With Umami
HowGetFree · December 4, 2026

Before you begin

Website owners need to understand which pages attract readers without automatically collecting every visitor's identity or selling their browsing behavior. Umami is a privacy-oriented analytics product with a self-hosted option and managed offerings. Its documentation describes tracking pageviews, events and other metrics with a lightweight integration. The open-source software can be deployed on infrastructure you control, but server costs, database management and compliance responsibilities remain. A good first test uses a small site you own and checks whether the numbers are meaningful before using them to make major editorial decisions.

Important: Self-hosting privacy-friendly analytics does not automatically satisfy every country's privacy law. Document what is collected, evaluate consent requirements and avoid collecting sensitive personal data unnecessarily.

1Choose the supported self-hosted version and deployment

Read Umami's current documentation carefully because major releases can change setup requirements and the administrative interface. The project supports self-hosting as well as a managed cloud service. Select a supported method that works with your server and database environment, and review whether the chosen features are included in the self-hosted edition. Protect application secrets and database credentials, keeping them out of public repositories. Set an administrator password and check network access controls before collecting visitor events. Hosting cost, backup space and operational maintenance are separate from the software license. Begin with a staging website or harmless practice environment.

2Create a site entry and obtain the official tracking code

In the supported Umami interface, add a website you own and configure its domain. Copy the tracking snippet provided by that deployment, following the official integration instructions for the actual version. Avoid inventing a tracking ID or installing a script from an unrelated domain that claims to accelerate analytics. Place the code in the appropriate HTML template or supported site integration, ideally once per rendered page. Multiple copies of a tracking snippet can distort pageview counts. If a content security policy restricts scripts, update it narrowly to permit only the required trusted analytics endpoint. Do not disable all browser security policies to make a tracker run.

3Generate one test visit and inspect the dashboard

Open the site in an ordinary browser on a controlled test device and navigate between two harmless pages. Return to Umami and check whether its dashboard reflects activity, allowing for normal processing delays and privacy restrictions. Compare the viewed page paths against what was actually loaded. Browser extensions, consent settings, blocked scripts and network errors may prevent some visits from appearing, so analytics numbers are estimates of observed events rather than a perfect census of human readers. Do not use a bot or repeated refresh loop to generate fake traffic. A clear test helps reveal a wrongly configured domain, duplicate tracking or script loading error.

4Track a meaningful event without collecting private details

If the site needs deeper engagement insight, review Umami's supported event tracking documentation. A practical event might be a click on a public resource button or a completed anonymous search interaction. Use descriptive event names and avoid recording email addresses, free-text personal search queries, passwords, order numbers or other identifiers in event properties. Understand the difference between a pageview and a conversion event before interpreting them together. Measure success in relation to the editorial goal, such as whether readers reach a useful guide, not merely by a large pageview total. Do not infer a person's intent from one session or single anonymous event.

5Document privacy boundaries and maintain the database

Review the current Umami FAQ for its privacy design, then compare your configured deployment with the actual legal obligations relevant to your visitors. Self-hosted software still stores analytics data and may involve IP handling, server logs, backups and domain routing. Set reasonable data retention and access permissions; only authorized staff should inspect detailed reports. Keep the application and database updated from trusted sources and verify a backup-and-restore procedure. If using a third-party hosting provider, understand where the data resides and what logging occurs. Publish a truthful website privacy notice rather than simply claiming that no visitor data can ever be observed.

Frequently asked questions

Can Umami be self-hosted without a managed analytics subscription?

Yes. The official documentation supports self-hosting, with separate infrastructure requirements.

Does privacy-focused analytics mean I can skip all consent or privacy reviews?

No. Legal obligations depend on local law and the actual data your deployment collects.

Official sources and further reading

Interface labels, availability and policies may change. Confirm current details with the relevant service before taking action.

Read all six December 4 guides