Track your site visitors with privacy-friendly analytics using Umami
You will add your site to Umami and copy the tracking code into your pages, so you can see how many visitors you get and which pages they read, with no cookies and no consent banner.
The problem
You want to know how many visitors your site gets, where they come from, and which page they read. But the big analytics tools are complex, often need a cookie consent banner, and collect more data than you need. A small site owner needs simple, clear numbers, not a dashboard with a hundred reports.
The tool
Umami is an open-source analytics platform. According to its official features page, it doesn't use cookies, so no consent banner is needed according to it, it doesn't automatically collect personal information about visitors, and it says visitor data is anonymized by default. These are the company's own claims, and you may need to check the privacy requirements in your country. You can run it on your own server or use its cloud service, Umami Cloud. The steps below come from Umami's official docs.
The steps
- Create an account on Umami Cloud from its official site (umami.is) and log in. If you prefer to run it on your own server, see its official docs for installation; this guide covers only the cloud service.
- From the sidebar click Websites.
- Click the Add website button in the top corner.
- Fill in the form. In Name write any name, often the domain name. In Domain write your site's actual domain, because according to the docs Umami uses it to exclude your own site from referrer metrics. Then click Save.
- Click Edit for the website you added.
- Find the Tracking code section and copy the code.
- Paste the code inside the head tag of your site. In WordPress you can use a plugin that injects code into the header, and on ready-made platforms look for a "custom code" box in the store settings. If you use Next.js, the docs say to add the code with the next/script component instead of a plain script tag.
- Open your site in the browser yourself. According to the docs, data should appear in the Umami dashboard after the visit.
- If no data appears, open the browser developer tools with F12, the Network tab, look for requests to the Umami server, and check that the script loads without errors. The docs warn that ad blockers can stop the script from loading.
- Give it a day or two and review the numbers. For single-page apps, the docs say Umami tracks page navigations automatically with no extra setup.
The real cost
According to the official pricing page at the time this guide was written, the free Hobby plan at $0 per month allows up to 100K events per month, 1 website, and 6 months of data retention, with community support only. Pro is $20 per month for 1 million events, up to 20 websites and 2 years of retention, and Business is $200 per month. The page writes the $ sign without naming the currency. It also lists a 14-day free trial for Pro and Business. The page does not explain what happens to someone who goes over 100K events on the free plan.
The free alternative
Run Umami on your own server. According to the features page, the platform is open source and says your data never leaves your infrastructure. But you will bear the cost and maintenance of the server.
Notes
- We have not tried these steps ourselves yet; they are based on the current official docs. Button names may change, so if your interface differs, follow the docs.
- The privacy claims come from Umami's own website. If you have a legal obligation, review your site's privacy policy and consult a specialist.
- The free plan is limited to one website. If you have both a site and a store, you may need a paid plan or self-hosting.
- Ad blockers may hide some visits, so treat the numbers as estimates.
Sources
Did you like this guide?
The weekly newsletter is being prepared. Leave your email and we'll send it when it launches.
We use your email only to send the newsletter. Privacy policy
