Skip to main content
Umami

Umami – A Privacy-First Open Source Website Analytics Tool

Open SourceWeb Analytics

Umami is an open-source, privacy-first website analytics tool that supports real-time traffic statistics, custom event tracking, and multi-site management, making it a lightweight and secure alternative to Google Analytics.

★ 9 Last Updated: 2025-07-05 umami.is
Visit Website

Detailed Introduction

Umami – A Privacy-First Open Source Website Analytics Tool

What is Umami?

Umami is a simple, fast, privacy-focused website analytics tool. It is a lightweight open-source alternative to Google Analytics, allowing website owners full control over their data while avoiding the collection of visitor personal information, complying with privacy regulations such as GDPR/CCPA.


Why Choose Umami?

  • Privacy-First: No cookies are used, nor is individual user tracking; you have full control over your data.
  • Open Source and Self-Hosted: Free to use, no closed-source black box, continuously optimized by the community, can be self-deployed or use the official cloud service.
  • Simple Interface: Provides real-time statistics, page traffic, device/language/region data, intuitive and easy to use.
  • Quick Deployment: Supports Docker and manual installation, compatible with common databases such as PostgreSQL/MySQL/MariaDB.

Core Features of Umami

  • Real-Time Page Access Statistics: Includes page views, unique visitors, sources, device types, etc.
  • Custom Event Tracking: Tracks interactive events such as button clicks, form submissions.
  • Visitor Behavior Analysis: Session, retention rate, conversion funnel trend comparison analysis.
  • UTM and Channel Statistics: Supports UTM parameter tracking, can group monitor ad campaign performance.
  • Multi-User and Multi-Site Management: Can set team permissions, manage multiple sites, supports CSV export.

How to Install and Start Using Umami?

Ensure Docker and Docker Compose are installed, then create a docker-compose.yml file:

version: '3'
services:
  umami:
    image: ghcr.io/umami-software/umami:postgresql-latest
    ports:
      - '3000:3000'
    environment:
      DATABASE_URL: postgresql://umami:password@db:5432/umami
      DATABASE_TYPE: postgresql
      APP_SECRET: random string
  db:
    image: postgres:15-alpine
    environment:
      POSTGRES_DB: umami
      POSTGRES_USER: umami
      POSTGRES_PASSWORD: password
    volumes:
      - umami-db-data:/var/lib/postgresql/data
volumes:
  umami-db-data:

Execute:

docker compose up -d

Visit http://localhost:3000, log in with the default admin account.

2. Local Installation (Node.js Method)

  1. Clone the code:

    git clone https://github.com/umami-software/umami.git
    cd umami
    npm install
    
  2. Configure environment variables:
    Set DATABASE_URL=postgresql://... or mysql://... in the .env file.

  3. Build and run the application:

    npm run build
    npm run start
    

The login address is usually http://localhost:3000.


Usage Tips

  • Deploy to the Cloud: Official cloud and third-party platforms (such as Render, Elestio) support one-click deployment.
  • Add Tracking Code: Insert <script defer src="…/script.js" data-website-id="…"> in the <head> to start collecting page data ([dev.to][5]).
  • Track Event Interactions: Use JS to call umami.track('button_click') to track specific interactive events.
  • Multi-Site Management: Multiple sites can be added in the dashboard, suitable for managing multiple projects.

Databricks: The Unified Big Data and AI Solution Platform

Databricks offers a unified data analytics platform, empowering data engineers and scientists to efficiently process big data and build AI models. It integrates data lakes and machine learning lifecycle management to enhance team collaboration. Experience end-to-end AI solutions now.

Data AnalysisArtificial Intelligence

DeepWiki & Wiki Systems: Documentation, Knowledge Management, and Open Source Tools

Explore DeepWiki, an AI-powered documentation tool, alongside a range of wiki systems like MediaWiki and DokuWiki for knowledge management. Discover open-source solutions and tools for building personal wikis and collaborative platforms, enhancing productivity and information sharing.

wikidocumentationknowledge management

OpenPanel: Open Source Data Analysis Platform, Empowering Privacy Compliance and Professional Insights

OpenPanel is a lightweight open-source data analysis tool designed for small and medium-sized teams, offering real-time behavior tracking, drag-and-drop dashboards, and private deployment solutions to ensure data sovereignty and GDPR compliance. Experience it now to easily grasp user behavior insights.

data analysisopen source tools

PostHog Open Source Behavior Analysis Platform: A Powerful Tool for User Insights

PostHog is an open-source behavior analysis platform that helps development teams collect and analyze user interaction data to optimize product experience. It supports private deployment, with a free basic version meeting the needs of million-level event analysis.

data analysisopen-source tools

Google Analytics: Website Data Analysis and Optimization Tool

Google Analytics offers comprehensive website data analysis to help optimize user experience and marketing strategies. Free to use, it supports real-time tracking and e-commerce analysis. Experience it now to enhance your website performance.

data analysiswebsite optimization

Infldb.com - AI Information Retrieval and Data Analysis Platform

Infldb.com is a professional AI information query and data analysis platform, offering intelligent search, knowledge summary generation, and trend analysis services. It helps users efficiently obtain structured information and enhances research and work efficiency. Experience intelligent data analysis now!

Information RetrievalData AnalysisAI Tools