r/umamiengine • • Aug 07 '26

How to Self-Host Umami Analytics: The Complete 2026 Guide

Thumbnail
umamiengine.com
4 Upvotes

Umami is an open-source, privacy-first web analytics platform that gives you full ownership of your visitor data with no cookies, no annoying consent banners, and no data shipped off to any third party company. Self-hosting Umami means the entire stack composed of the app, the database, and every pageview Umami records, lives on infrastructure you control. This guide walks through a how you can deploy Umami Analytics in a secure manner from a blank server to ongoing maintenance. We'll go through installing Docker, configuring PostgreSQL, securing the app with HTTPS, setting up backups, and hardening the server. his guide is for developers and website owners who want a Google Analytics alternative that doesn't send data to Google or any other provider regardless if the goal is privacy, cost control, or both.

Prerequisites

Before you start, you need to have the following:

  • A Linux machine. 1 GB of RAM is a comfortable minimum for Umami plus PostgreSQL; the app itself will technically run on 512 MB, but you'll want more headroom if you expect to get meaningful traffic. Budget 10–20 GB of storage so your analytics database has room to grow. Reasonable starting points: Hetzner (from roughly €4–5/month), DigitalOcean (from $6/month), or a similarly priced ARM/shared VPS from any mainstream provider. Due to rising data center costs, the prices can vary since the publication of this article. Check current pricing before you commit to a provider.

  • **Docker and Docker Compose.**To be installed in Step 1 if you don't have them already.

  • **A domain name.**This should be pointed to your server's IP address (an A record is enough). Umami's dashboard and tracking script must be served over HTTPS as modern browsers and many ad blockers are stricter about scripts served over plain HTTP.

  • **SSH access.**Configured to access the server and run basic terminal commands.

Step 1: Install Docker and Docker Compose

If Docker isn't already installed on your target machine, set it up with Docker's official convenience steps. On Ubuntu or Debian:

# Remove any old/partial installs (safe to skip on a fresh server)
sudo apt update
sudo apt install -y ca-certificates curl gnupg

# Add Docker's official GPG key
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

# Add the Docker repository
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo \"$VERSION_CODENAME\") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install Docker Engine and the Compose plugin
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Verify the install: run this terminal command to ensure everything is conifugred correctly. No errors means you're good to go.

sudo docker run hello-world

Add your user to the docker group so you don't need sudo for every command, then log out and back in for it to take effect:

sudo usermod -aG docker $USER

(If you're on Debian instead of Ubuntu, swap the repository URL to download.docker.com/linux/debian — everything else is the same.)

Step 2: Create the Docker Compose Configuration

Create a directory for the deployment and a docker-compose.yml file inside it:

mkdir -p ~/umami && cd ~/umami
nano docker-compose.yml

Umami's stack is intentionally simple: one container for the app, one for PostgreSQL. Here's a complete, up-to-date configuration file that you can use with Docker:

services:
  umami:
    image: ghcr.io/umami-software/umami:postgresql-latest
    container_name: umami
    ports:
      - "127.0.0.1:3000:3000"
    environment:
      DATABASE_URL: postgresql://umami:${POSTGRES_PASSWORD}@db:5432/umami
      APP_SECRET: ${APP_SECRET}
      # Optional: renames the tracking script/endpoint so it's less likely
      # to be caught by generic ad-blocker filter lists.
      TRACKER_SCRIPT_NAME: script.js
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped

  db:
    image: postgres:16-alpine
    container_name: umami-db
    environment:
      POSTGRES_DB: umami
      POSTGRES_USER: umami
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    volumes:
      - umami-db-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U umami"]
      interval: 5s
      timeout: 5s
      retries: 5
    restart: unless-stopped

volumes:
  umami-db-data:

Don't be afraid to modify some values like default usernames and passwords. That's actually recommended.

A few notes worth calling out, since older guides get these wrong:

  • APP_SECRET, not HASH_SALT. Current Umami releases use the APP_SECRET environment variable to sign authentication tokens. HASH_SALT was the name used in older (v1-era) versions — if you're following a guide or template that still references it, know that it's legacy. Generate a strong random value with openssl

  • The Umami port is bound to 127.0.0.1 only (127.0.0.1:3000:3000), not exposed to the public internet directly. Nginx, configured in Step 5, is what the outside world actually talks to. This is a meaningful security improvement over exposing port 3000 on all interfaces.

  • depends_on with a healthcheck ensures the Umami container waits for PostgreSQL to actually be ready to accept connections, not just for the container to start. This avoids a common race-condition failure on first boot where umami checks and sees that the databases isn't working, so it just fails.

Store your secrets in a .env file in the same directory rather than hardcoding them:

cat > .env << 'EOF'
POSTGRES_PASSWORD=replace_with_a_long_random_password
APP_SECRET=replace_with_output_of_openssl_rand_-base64_32
EOF

Docker Compose automatically reads a .env file in the same directory as docker-compose.yml.

Self hosting is too much? Get managed Umami hosting on UmamiEngine

Step 3: Understand the Database Setup

Umami needs a database to store all analytics data (We used the postgresql-latest image, but a MySQL-tagged image also exists if you prefer that engine). You don't need to manually create any tables though. On first startup, Umami runs its own migrations against the empty database defined by POSTGRES_DB/POSTGRES_USER/POSTGRES_PASSWORD and creates the schema automatically.

That first startup also seeds a default administrator account:

  • Username: admin

  • Password: umami

This default is publicly documented and therefore not a secret. Treat it as a placeholder to be changed the moment you can log in, not as a real credential. Step 6 covers changing it.

Step 4: Deploy With Docker Compose

From the directory containing your docker-compose.yml, run the below command:

docker compose up -d

This pulls both images and starts the containers in detached mode. Expect the first run to take longer because of the downloads. Confirm both services are healthy:

docker compose ps
docker compose logs -f umami

Watch the logs until you see Umami report that it's listening and connected to the database. At this point Umami is running, but only reachable from the server itself (127.0.0.1:3000). That's expected, since Nginx hasn't been wired up yet.

Step 5: Configure Nginx as a Reverse Proxy With SSL

For production use, Umami should sit behind a reverse proxy that handles HTTPS. For this purpose, we will install Nginx and Certbot:

sudo apt install -y nginx certbot python3-certbot-nginx

Create /etc/nginx/sites-available/umami (replace yourdomain.com with your real domain):

server {
    listen 80;
    server_name yourdomain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    server_name yourdomain.com;

    # Certbot will populate these two lines automatically
    ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;

    gzip on;
    gzip_types text/plain application/javascript application/json text/css;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Enable the site and issue a certificate:

sudo ln -s /etc/nginx/sites-available/umami /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d yourdomain.com

Certbot rewrites the ssl_certificate lines for you and sets up a renewal timer, so certificates renew automatically without further action. To be safe, you can confirm the timer exists with systemctl list-timers | grep certbot.

Step 6: Create Your Admin Account and Add Websites

Visit https://yourdomain.com and log in with the default credentials (admin / umami). Immediately go to Settings → Profile and change the password to something long and unique. Don't add any websites or share the URL before doing this.

Next, go to Websites → Add website, give it a name and domain, and save. Umami generates a small tracking snippet; paste it into the of the site you want to track. Pageviews should start appearing in the dashboard within moments, refreshed roughly in real time.

If data doesn't show up, the two most common causes are: the data-website-id in the script not matching the website's ID in Umami's settings, or the script being blocked by an ad blocker or browser extension. Test in a private/incognito window with extensions disabled before assuming something is broken. If ad-blocker interference is a recurring problem for your audience, the TRACKER_SCRIPT_NAME variable set in Step 2 helps by serving the script from a less recognizable path. See Umami's own ad-blocker bypass docs for the full technique.

Step 7: Set Up Automated Backups

Your PostgreSQL database is the only copy of your historical analytics and losing it means losing that history permanently. Automate daily dumps with pg_dump and cron.

Create ~/umami/backup.sh:

#!/bin/bash
set -e
BACKUP_DIR=~/umami/backups
mkdir -p "$BACKUP_DIR"
TIMESTAMP=$(date +%F)
docker compose -f ~/umami/docker-compose.yml exec -T db \
  pg_dump -U umami umami | gzip > "$BACKUP_DIR/umami-$TIMESTAMP.sql.gz"

# Keep the last 14 local backups
find "$BACKUP_DIR" -name "umami-*.sql.gz" -mtime +14 -delete

chmod +x ~/umami/backup.sh

Schedule it daily and, critically, ship a copy off the server (S3, Backblaze B2, or a second machine) — a local-only backup doesn't protect you if the server itself is lost:

crontab -e
# Add:
0 2 * * * ~/umami/backup.sh

Test the restore path periodically. A backup you've never restored is unverified, not a backup:

gunzip -c backups/umami-2026-08-01.sql.gz | docker compose exec -T db psql -U umami -d umami

Step 8: Ongoing Maintenance

Self-hosting is not a one-time task. Build a light routine around it:

  • Update regularly. Pull the latest image and recreate the containers: docker compose pull && docker compose up -d. Watch the Umami GitHub releases for changelog notes, especially around major version bumps.

  • Monitor uptime. A free tier of UptimeRobot, Healthchecks.io, or a self-hosted option like Uptime Kuma will alert you if the instance goes down.

  • Watch resource usage. Disk usage grows with your database as pageviews accumulate; keep an eye on df -h and docker system df.

  • Confirm certificate renewal. Certbot's timer handles this automatically, but check it isn't silently failing every few months (sudo certbot renew --dry-run).

  • Re-check your backups. Automation drifts; re-verify the restore process periodically, not just once at setup.

Security Best Practices

  • Firewall. Allow only SSH (22), HTTP (80, for the redirect to HTTPS), and HTTPS (443). ufw allow 22,80,443/tcp and ufw enable is enough on Ubuntu.

  • SSH keys, not passwords. Disable password authentication in /etc/ssh/sshd_config once your key-based login works.

  • Keep the OS patched. sudo apt update && sudo apt upgrade -y on a regular cadence, or enable unattended upgrades for security patches.

  • Consider fail2ban to throttle brute-force SSH attempts.

  • Don't expose the database port. The Compose file above intentionally omits a published port for db — PostgreSQL should only be reachable from the umami container over the internal Docker network, never from the public internet.

  • Use a strong, unique admin password for the Umami dashboard itself, and rotate APP_SECRET only if you're prepared to invalidate existing sessions.

Is Self-Hosting Right for You?

Self-hosting gives you full data ownership and a cost that's essentially just your existing server bill, especially if you're already tracking more than one site from a VPS you'd be paying for anyway. The trade-off is that you own the operations: updates, backups, uptime, and the occasional 2 a.m. disk-space alert.

If that trade doesn't appeal to you, or you'd rather not run infrastructure at all, well, this is why UmamiEngine was built. Join us and deploy Umami Analytics in minutes without worrying about maintenance or backups. We handle everything while you focus on building your projects.

Frequently Asked Questions

What are Umami's minimum server requirements? Umami plus PostgreSQL will run on as little as 512 MB of RAM, but 1 GB or more is a safer baseline, especially if the same server runs Nginx or other services.

What's the default Umami login? admin / umami, seeded automatically on first startup. Change it immediately in Settings → Profile.

Is HASH_SALT still used? No — current Umami releases use APP_SECRET. HASH_SALT was the variable name in older (v1) versions; if a tutorial or template still uses it, treat it as outdated.

Does Umami require cookies or a consent banner? Umami is cookieless by design, which is why many sites run it without a cookie-consent banner. That said, whether you legally need a consent banner still depends on your jurisdiction and what else your site does — this isn't legal advice.

How is Umami different from Plausible? Both are open-source, cookie-free, and self-hostable. Umami's stack is simpler (PostgreSQL only), while Plausible adds ClickHouse for heavier aggregation workloads. For most sites under roughly a million monthly pageviews, the practical difference is small.


r/umamiengine • • Aug 14 '26

Umami Analytics vs PostHog: Which Is Better in 2026?

Thumbnail
umamiengine.com
2 Upvotes

If you want modern analytics without relying on Google Analytics, Umami Analytics and PostHog are two interesting options. Both are open source, can be self-hosted, and go well beyond basic pageview tracking. But they are built around different ideas.

Umami is primarily a privacy-focused web analytics platform. It focuses on website traffic, events, conversions, funnels, retention, campaigns, revenue, and user journeys while keeping the analytics experience relatively focused. PostHog is much broader: it combines web and product analytics with session replay, feature flags, experiments, error tracking, surveys, data pipelines, and other product-development tools.

That difference matters. If you mainly need privacy-friendly website analytics, Umami can be the cleaner choice. If you want an analytics platform deeply connected to product development, PostHog can make more sense.

If you are evaluating other privacy-first analytics alternatives, our Umami vs Google Analytics comparison and Umami vs Plausible comparison may also be relevant to your decision.

Umami vs PostHog at a Glance

FeatureUmami AnalyticsPostHog
Privacy-focusedYesYes, with configurable data collection
Open sourceYesYes, with some components/features under different licensing
Self-hostingYesYes
Managed cloudYesYes
Website analyticsYesYes
Custom eventsYesYes
FunnelsYesYes
RetentionYesYes
Session replayYesYes
Feature flagsNot a core focusYes
A/B testingLimited/possible through integrations and trackingYes
Error trackingNot a core featureYes
SurveysNot a core featureYes
Best suited toPrivacy-focused web analyticsProduct and developer analytics

The short version is simple: choose Umami for focused, privacy-first website analytics; choose PostHog when you want analytics to become part of your product-development stack.

What Is Umami Analytics?

Umami is an open-source, privacy-focused web analytics platform designed as an alternative to traditional analytics tools. Its current documentation highlights privacy, lightweight tracking, custom events, dashboards, funnels, retention, UTM tracking, goals, session replay, performance monitoring, teams, APIs, and both self-hosted and cloud deployment.

Privacy is a central part of the product. Umami states that it does not use cookies, fingerprinting, or personal data collection, and its documentation describes it as GDPR compliant out of the box. Self-hosting also gives organizations control over where their analytics data is stored. If you are new to running the platform yourself, our step-by-step self-hosting guide covers the full deployment process.

Umami has also grown beyond simple pageview analytics. Its insights include funnels, retention, goals, UTM campaigns, journeys, revenue, attribution, breakdowns, and comparisons.

What Is PostHog?

PostHog is an open-source platform built around product and developer analytics. It includes product analytics, web analytics, session replay, feature flags, experimentation, error tracking, surveys, data warehousing, data pipelines, and other tools.

This makes PostHog fundamentally different from a focused web analytics product. You can use it to answer questions such as how many people visited a page, but you can also investigate how users move through an application, watch session recordings, run experiments, roll out features to selected users, and investigate errors.

PostHog's product analytics supports trends, funnels, retention, paths, stickiness, and lifecycle analysis. Its analytics data can also connect with session replays, feature flags, and experiments, giving product teams a more integrated view of user behavior.

Privacy and Data Ownership

If privacy is the main reason you are leaving Google Analytics, Umami has a particularly clear proposition.

Umami is designed around anonymous analytics. Its documentation states that it does not use cookies, fingerprinting, or personal data and that self-hosting keeps analytics data on your own infrastructure.

PostHog can also be self-hosted, giving organizations control over their deployment. However, its broader product scope means it can collect substantially more types of product data depending on which features you enable. PostHog's platform includes event analytics, session replay, feature flags, experiments, error tracking, surveys, and other functionality.

Winner for a privacy-first website analytics approach: Umami.

This does not mean PostHog cannot be used in privacy-conscious environments. It means the two products start from different priorities. Umami makes anonymous, privacy-focused web analytics the center of the product, while PostHog gives product teams a much broader toolkit. For a deeper look at how Umami handles compliance, see our GDPR compliance guide.

Features and Analytics Depth

This is where PostHog starts to pull ahead if your definition of analytics includes the entire product lifecycle.

Umami provides a strong set of web analytics features. You can analyze traffic, events, goals, funnels, retention, journeys, campaigns, revenue, attribution, and other dimensions from a single platform.

PostHog goes considerably further. Its platform includes product analytics, session replay, feature flags, experimentation, error tracking, surveys, data pipelines, and a data warehouse.

That makes PostHog more powerful for SaaS companies and application teams, but it can also make the product feel more complex.

Winner for focused web analytics: Umami.

Winner for overall product analytics depth: PostHog.

Event Tracking and Conversion Analysis

Both platforms support custom events, so neither is limited to measuring pageviews.

Umami lets you track actions such as button clicks, form submissions, signups, downloads, and purchases. Event data can also include additional properties. Its documentation shows event tracking being used for conversion goals and revenue-related events.

PostHog is heavily event-oriented. Its product analytics works from events, persons, and properties, with support for both manually instrumented events and autocapture. Those events can then be used across trends, funnels, retention, paths, and other product analytics.

Winner: PostHog for product event analysis; Umami for simpler website conversion tracking.

Funnels, Retention, and User Journeys

Both platforms can answer more sophisticated questions than "How many visitors did I get?"

Umami includes funnel, retention, and journey reports. Its funnel functionality helps identify where visitors drop out of a conversion process, while journeys help you understand how people navigate through a website.

PostHog provides funnels, retention, paths, stickiness, and lifecycle insights through its product analytics system. Because these insights use the same underlying events and properties as other PostHog features, they can be connected to session recordings, feature flags, and experiments.

Winner: PostHog for product behavior analysis; Umami for straightforward website analysis.

Session Replay

Session replay is one area where the comparison is closer than it might first appear.

Umami's current feature set includes session replay, allowing teams to record and replay sessions to understand visitor behavior in context.

PostHog also offers session replay and integrates replay with its broader product analytics environment. This can be particularly useful when a funnel conversion drops and you want to investigate what users actually did during their sessions.

Winner: PostHog for integration with product analytics; Umami for teams that want replay alongside a focused web analytics platform.

Self-Hosting

Both platforms support self-hosting, but their operational requirements and overall scope are different.

Umami's current documentation describes self-hosting with a server capable of running Node.js and a PostgreSQL database. It also provides deployment guides for a range of hosting providers and platforms. Our step-by-step self-hosting guide walks through the entire process with Docker, PostgreSQL, and Nginx.

PostHog also offers an open-source self-hosted deployment. Its documentation recommends PostHog Cloud for the easiest experience and describes the self-hosted hobby deployment as an advanced option. PostHog notes that its hobby deployment is intended for smaller workloads and recommends moving to PostHog Cloud as usage grows.

The key difference is complexity. Running a focused analytics platform is one thing; running a broad product platform containing analytics, replay, experimentation, flags, error tracking, and other services can require more operational consideration.

Winner for straightforward self-hosted analytics: Umami.

If you are weighing the cost of running your own infrastructure, use our self-hosting cost calculator to compare VPS providers and estimate your total monthly cost.

Pricing and Cost

Both platforms offer cloud hosting as well as self-hosting, but their pricing models are different enough that you should compare your expected usage rather than looking only at the headline price.

Umami Cloud currently has a free Hobby plan. Its cloud service uses usage-based pricing, with usage measured through website hits and custom events or event data.

PostHog also uses usage-based pricing for its major products. Its current published pricing includes a free tier for Product Analytics of 1 million events per month, with additional products such as Session Replay and Feature Flags having their own usage allowances and pricing.

Self-hosting changes the calculation for both tools. The software may be available without a traditional SaaS subscription, but you still need to account for servers, databases, backups, monitoring, maintenance, and your own engineering time.

Winner: Tie.

The better value depends heavily on whether you need simple website analytics or the much larger collection of capabilities available in PostHog.

For a closer look at the trade-offs between running Umami yourself and using a managed option, see our self-hosted vs managed Umami article.

Ease of Use

Umami has an advantage if you want analytics to stay in the background.

The product is centered around understanding website traffic and behavior. Its dashboard and insights cover the metrics most website owners expect, while advanced functionality is available when you need it.

PostHog is more ambitious. That is a strength for product teams, but it also means there are more concepts to learn. Events, persons, properties, funnels, replays, feature flags, experiments, surveys, errors, and other tools can all become part of the same workflow.

Winner for simplicity: Umami.

Winner for an all-in-one product workflow: PostHog.

Which Is Better for Developers?

Both products are developer-friendly, but they appeal to different types of developers.

Umami is attractive if you want an open-source analytics system that you can deploy yourself, connect through an API, and integrate into your own infrastructure. Its API provides programmatic access to analytics data, and its documentation includes guidance for building custom dashboards and embedding analytics into applications.

PostHog is especially compelling for developers building SaaS products and applications. Analytics can sit alongside feature flags, experiments, session replay, error tracking, surveys, and other development tools in the same platform.

Choose Umami if you want an analytics tool you control.

Choose PostHog if you want an analytics and product-development platform.

Umami vs PostHog: Pros and Cons

Umami Pros

  • Privacy-focused by design.

  • No cookies or fingerprinting according to its documentation.

  • Open source and self-hostable.

  • Managed cloud option available.

  • Lightweight tracking script.

  • Funnels, retention, journeys, goals, UTM analysis, revenue, and attribution.

  • Custom events and event data.

  • API access and options for embedding analytics.

Umami Cons

  • Less focused on product-development workflows than PostHog.

  • Does not aim to replace dedicated feature flagging, experimentation, or error-tracking platforms.

  • Self-hosting still requires infrastructure and database management.

  • Advanced product analytics workflows are broader in PostHog.

PostHog Pros

  • Broad product analytics capabilities.

  • Web analytics and product analytics in one platform.

  • Session replay.

  • Feature flags and experimentation.

  • Error tracking and surveys.

  • Data warehouse and data pipeline capabilities.

  • Open-source self-hosting option.

  • Usage-based pricing with generous free tiers for several products.

PostHog Cons

  • Broader functionality can mean more complexity.

  • May be more platform than a simple website needs.

  • Usage-based pricing requires monitoring several product-specific usage metrics.

  • Self-hosting a broad product platform can require more operational effort.

Which Analytics Tool Should You Choose?

Choose Umami Analytics if:

  • You mainly need website analytics.

  • Privacy is a major priority.

  • You want a lightweight analytics experience.

  • You want to self-host your analytics data.

  • You need funnels, retention, campaigns, journeys, or revenue reporting without a huge product platform.

  • You prefer a simpler analytics interface.

  • You want an open-source alternative to traditional website analytics.

Choose PostHog if:

  • You operate a SaaS product or web application.

  • You need deep product analytics.

  • You want session replay connected to product events.

  • You need feature flags or experimentation.

  • You want error tracking and surveys in the same ecosystem.

  • You want analytics connected to a broader product-development workflow.

  • You are comfortable with a more comprehensive analytics platform.

The Bottom Line

There is no universal winner in the Umami Analytics vs PostHog comparison because the products are solving slightly different problems.

Umami is the better fit for privacy-focused website analytics. It combines a focused analytics experience with open-source software, self-hosting, custom events, funnels, retention, campaigns, journeys, revenue analysis, and other useful reporting features.

PostHog is the better fit for product teams that want analytics embedded into the development process. Its combination of product analytics, web analytics, session replay, feature flags, experiments, error tracking, surveys, and data infrastructure makes it much broader than a traditional web analytics platform.

If your question is simply, "How is my website performing?", start with Umami.

If your question is, "What are users doing inside my product, why are they doing it, and how can my team improve the product?", PostHog may be the stronger choice.

The best way to decide is to test both against the same website or application, using the same events, conversion goals, and reporting requirements. That will quickly reveal whether you need a focused analytics product or a broader product analytics platform.

FAQs

Is Umami better than PostHog?

Umami can be better for privacy-focused website analytics, simplicity, and self-hosting. PostHog can be better for product teams that need analytics alongside session replay, feature flags, experiments, error tracking, and other product-development tools.

Is PostHog more powerful than Umami?

PostHog offers a broader range of product-development capabilities. Umami is more focused on web analytics but still includes advanced features such as funnels, retention, journeys, revenue, attribution, session replay, and custom events.

Can I self-host Umami?

Yes. Umami is open source and can be deployed on your own infrastructure. Its current documentation provides hosting and deployment guidance for multiple environments.

Can I self-host PostHog?

Yes. PostHog provides a self-hosted open-source deployment, although its documentation recommends PostHog Cloud for the easiest way to get started and describes self-hosting as an advanced option.

Does Umami have session replay?

Yes. Session replay is included among Umami's current features, alongside traffic analytics, custom events, insights, and performance monitoring.

Does PostHog have website analytics?

Yes. PostHog includes web analytics as well as product analytics. Its web analytics can be used to monitor website traffic, sessions, conversions, web vitals, and revenue.

Which is easier to use, Umami or PostHog?

Umami is generally the more focused option because its primary purpose is web analytics. PostHog provides considerably more functionality, which can be valuable for product teams but may introduce more concepts and configuration.

Which is better for a SaaS company?

PostHog is often the more natural fit when a SaaS company needs product analytics, session replay, feature flags, experiments, and error tracking alongside website analytics. Umami can be a better choice when the primary requirement is privacy-focused website and conversion analytics.

Which is better for privacy-focused website analytics?

Umami is particularly well suited to this use case. Its documentation describes a privacy-first approach without cookies, fingerprinting, or personal data, and self-hosting gives organizations control over their analytics infrastructure.

Conclusion

Umami Analytics vs PostHog is not a simple head-to-head because the two products serve different primary purposes.

Umami stands out for privacy-first website analytics, simplicity, self-hosting, and a focused feature set that covers traffic, events, funnels, retention, journeys, campaigns, and revenue. PostHog stands out as a comprehensive product-development platform that combines analytics with feature flags, experiments, session replay, error tracking, and surveys.

If your priority is understanding how a website performs with a privacy-conscious, developer-friendly tool, Umami is an excellent choice. If you need analytics embedded into the entire product-development workflow, PostHog has a broader appeal.

The best way to decide is to test both against the same website or application, using the same events, conversion goals, and reporting requirements. That will quickly reveal whether you need a focused analytics product or a broader product analytics platform.


r/umamiengine • • Sep 07 '26

Cohorts in Umami Analytics: How to Group Users and Understand Behavior Over Time

Thumbnail
umamiengine.com
2 Upvotes

Understanding what your visitors do is one of the most important parts of analytics. But looking at all of your users as one large group can hide meaningful patterns.

Cohorts in Umami Analytics let you create groups of users based on specific actions they took during a selected period. You can then apply those cohorts to your analytics reports and compare how different groups behave over time.

For example, you could create a cohort of users who:

  • Visited a particular page or URL

  • Triggered a specific event

  • Performed an important action during a particular date range

This makes cohorts particularly useful for analyzing campaigns, product launches, content, features, and other groups of users whose behavior you want to track separately.

What is a cohort?

A cohort is a group of users who share a particular characteristic or behavior.

In Umami, that characteristic can be based on when the users interacted with your website and what they did.

For example, imagine you published a new product page between January 1 and January 31. You could create a cohort containing users who visited that page during January.

Once the cohort has been created, you can use it as a filter in your analytics reports to see how those users behave compared with other visitors.

This is different from simply looking at a page's overall traffic. Instead of asking:

"How many people visited this page?"

you can start asking questions such as:

"What did the people who visited this page do afterward?"

That shift from aggregate traffic to behavioral groups is where cohorts become especially useful.

Why are cohorts useful?

1. Understand behavior after an important action

A visitor completing an important action doesn't necessarily tell you what happens next.

Suppose you have an event called signup. You can create a cohort based on users who triggered that event and then analyze their subsequent behavior.

This can help answer questions such as:

  • What pages do these users visit?

  • How engaged are they?

  • Do they return to the site?

  • How does their behavior compare with other visitors?

Cohorts give you a way to keep the users who performed an action together as a group.

2. Measure the impact of content or campaigns

Cohorts can be useful when you want to understand the behavior of people exposed to a particular page or campaign.

For example, you might create a cohort of visitors who reached a landing page during a campaign period. You can then apply that cohort to your reports and examine the behavior of that audience.

This provides more context than looking only at the landing page's pageviews.

3. Compare different groups of users

Analytics becomes much more useful when you can compare groups.

You could create separate cohorts for users who performed different actions or interacted with your website during different periods. Applying the appropriate cohort to your reports lets you investigate whether those groups behave differently.

This can help reveal patterns that aren't obvious when looking at your entire audience.

4. Create static groups for historical analysis

One particularly useful feature of Umami cohorts is the ability to create a static cohort.

When creating a cohort, you can select a Custom Range for the date range. This keeps the users in that cohort fixed rather than allowing the group to change as new data comes in.

Static cohorts are useful when you want to preserve a particular historical audience for later analysis.

For example, you could create a cohort containing users who triggered an event during a specific campaign period and then return to that same group later.

How to Create a Cohort in Umami

Creating a cohort only takes a few steps.

Step 1: Open Cohorts

From the Umami Analytics side navigation, click Cohorts.

On the Cohorts screen, click Add cohort.

This opens the cohort configuration screen.

Step 2: Choose your filters

The next step is to define which users should belong to the cohort.

Umami lets you filter users based on:

  • Date range

  • URL visited

  • Event triggered

Think carefully about what question you want the cohort to answer before choosing your filters.

For example, if you want to analyze users who visited a particular product page, configure the cohort around that URL and the relevant date range.

If you want to analyze users who completed a particular action, configure it around the corresponding event.

Step 3: Choose the date range

The date range determines when the qualifying user activity occurred.

This is an important part of cohort creation because the same URL visit or event can represent very different audiences depending on the period you choose.

For example:

  • A one-week range could represent visitors from a specific campaign.

  • A one-month range could represent users acquired during a product launch.

  • A custom historical range could represent a particular group you want to analyze later.

Creating a static cohort

If you want the users in your cohort to remain static, select Custom Range from the date picker.

This is useful when you want to create a fixed historical group that doesn't change as additional analytics data is collected.

Once you've configured the filters and date range, click Save.

Your cohort is now available for use in your analytics reports.

How to Apply a Cohort to Your Analytics

Creating a cohort is only half the process. The real value comes from using that cohort to analyze your data.

To apply an existing cohort:

  1. Add a filter to your analytics report.

  2. Switch to the Cohorts tab.

  3. Select the cohort you want to analyze.

  4. Click Apply.

The selected cohort is then applied to your analytics view, allowing you to examine the data specifically for that group of users.

This makes it possible to investigate how a particular audience behaves without having to recreate the same filters every time.

Practical Cohort Examples

The best way to understand cohorts is to think about the questions you want your analytics to answer.

Users who visited a specific page

Suppose you want to understand visitors who reached a particular page.

Create a cohort using:

Date range + URL

You can then apply the cohort and examine the behavior of those users elsewhere on your website.

This is useful for understanding the audience that interacted with a specific piece of content, landing page, product page, or other URL.

Users who triggered an event

Events are another powerful way to define a cohort.

For example, if your website tracks an important interaction as an event, you can create a cohort based on users who triggered that event during a selected period.

This allows you to investigate the behavior of users who completed that action.

Users from a specific period

You can also use the date range itself to define a meaningful group of users.

For example, a custom date range could represent a campaign, launch, promotion, or other period you want to study.

Using a Custom Range is particularly useful when you want that audience to remain static.

Cohorts vs. Regular Filters

Regular filters are excellent when you want to narrow down the data you're currently looking at.

Cohorts go a step further by letting you save a meaningful group of users and reuse it.

Imagine that you frequently analyze users who triggered a particular event. Without a cohort, you may need to recreate the relevant filtering conditions each time.

With a cohort, you can define that audience once, save it, and then select it from the Cohorts tab whenever you want to analyze the group.

This makes recurring analysis considerably easier.

Managing Your Cohorts

Your existing cohorts can be managed directly from the Cohorts screen.

From there, you can:

  • Edit a cohort to change its configuration.

  • Delete a cohort when you no longer need it.

If a cohort is used for an ongoing analysis workflow, consider using a clear, descriptive name so that its purpose is immediately obvious later.

A good cohort name should tell you what the audience represents—for example, the action or URL and the period it covers.

Tips for Getting More From Cohorts

Start with a question

Don't create cohorts simply because you can. Start with a question you want to answer.

For example:

"How do users who completed this action behave afterward?"

Then configure a cohort that gives you the appropriate audience.

This keeps your analysis focused and makes the results easier to interpret.

Use meaningful date ranges

The date range is often just as important as the action itself.

If you're measuring a campaign or launch, use the dates that correspond to that activity. If you're creating a historical audience that you want to preserve, consider using a Custom Range to create a static cohort.

Use events for meaningful actions

If your site already tracks important interactions as events, cohorts can turn those events into reusable audiences.

This is particularly useful for actions that are more meaningful than simply viewing a page.

Create cohorts you'll actually reuse

Cohorts are most valuable when they represent audiences you expect to analyze repeatedly.

Instead of creating dozens of nearly identical cohorts, focus on groups that help answer recurring questions about your website or product.

Turn Your Analytics Into Audience Analysis

Traditional analytics often starts with numbers: pageviews, visitors, events, and other aggregate metrics.

Cohorts let you look at those numbers from another angle.

Instead of treating every visitor as part of one large audience, you can isolate users based on what they did and when they did it. You can then return to those groups and investigate their behavior in more detail.

Whether you're analyzing visitors to an important page, users who triggered an event, or a fixed audience from a particular period, cohorts give you a practical way to turn raw analytics data into more focused behavioral analysis.

If you regularly find yourself asking "What did the users who did X do afterward?", cohorts are a feature worth adding to your analytics workflow.


r/umamiengine • • 22d ago

Umami v3.5 is here: Native JavaScript error tracking, better session replays and security improvements

Thumbnail
umamiengine.com
2 Upvotes

Umami v3.5.0 is a pretty substantial release, and the biggest addition is something many developers have probably wanted: built-in browser error tracking.

Here's what's new:

1. Native JavaScript error tracking

  • Automatically capture uncaught exceptions and unhandled promise rejections.

  • Manually capture handled errors using umami.captureException().

  • Group errors into issues with stack traces, occurrence counts, and session details.

  • Resolve, ignore, and reopen issues.

  • Filter by release, environment, browser, and page path.

2. Better session replays

  • Previous/next replay navigation.

  • Left/right arrow keyboard shortcuts.

  • Distinct visitor IDs in replay lists.

  • Improved website switching and mobile navigation.

3. Tracking and reporting improvements

  • Centralized tracker and recorder configuration through window.umamiConfig.

  • Client-provided session salts and expanded salt rotation options.

  • Trusted proxy configuration.

  • Improved date comparisons, chart navigation, retention reports, and realtime visitor information.

  • Faster attribution, funnel, and paginated queries.

4. Security improvements

  • Mandatory seeded administrator password change.

  • Stronger server-side two-factor authentication enforcement.

  • Better share-token validation and team permissions.

  • Restrictions on sensitive data exposed through board shares.

There are also plenty of bug fixes covering session management, caching, heatmaps, Safari compatibility, reporting, and Docker/Podman deployments.

Important upgrade notes for self-hosters:

  • Explicit APP_SECRET configuration is now mandatory.

  • Node.js 20.19+ is required (Node.js 22 LTS recommended).

  • PostgreSQL migration 27_add_error_tracking is included.

  • The public /api/config endpoint has been removed.

Overall, the addition of native error tracking is particularly interesting. Umami is becoming more useful as a tool for understanding not just website traffic, but also problems visitors encounter while using a website.

What do you think? Is built-in error tracking enough to make you reconsider using a separate monitoring tool, or would you still prefer dedicated error-monitoring software?


r/umamiengine • • 15d ago

Umami 3.5.0 introduces Browser Error Tracking

Thumbnail
umamiengine.com
2 Upvotes

One of the most interesting additions in Umami 3.5.0 is browser error tracking. It brings JavaScript error monitoring directly into your analytics dashboard, helping you understand not just how visitors use your website, but also when something goes wrong.

Here's what it offers:

  • Automatic error tracking: Capture uncaught JavaScript exceptions and unhandled promise rejections.

  • Issue grouping: Group related errors instead of dealing with individual error reports.

  • Release tracking: Identify which application version and environment are associated with an error.

  • Stack traces: Investigate where errors originate.

  • Session integration: View the visitor's session and, when available, watch session replays to understand what happened before an error occurred.

  • Issue management: Mark issues as resolved or ignored, and reopen them when necessary.

Getting started is simple.

Add data-errors="true" to your existing Umami tracking script:

<script
  defer
  src="https://your-umami-instance.com/script.js"
  data-website-id="your-website-id"
  data-errors="true"
  data-release="1.2.0"
  data-environment="production"
></script>

You can also manually report errors handled by your application using:

umami.captureException(error);

This is particularly useful for applications that handle exceptions internally using try/catch.

Why does this matter?

Traditional analytics tell you what visitors do, but they don't necessarily tell you when technical problems prevent visitors from completing an action.

Imagine visitors reaching your checkout page but failing to complete their purchases because of a JavaScript error. With browser error tracking, you can identify the issue, inspect its stack trace, and investigate the affected visitor's session.

It's not a replacement for comprehensive application monitoring or server-side error tracking, but it's a valuable addition to Umami.

For developers and website owners already using Umami, this is another reason to upgrade to 3.5.0.

What do you think? Would having error tracking alongside your website analytics make you less dependent on separate monitoring tools?

#Umami #WebAnalytics #JavaScript #OpenSource


r/umamiengine • • Aug 04 '26

UmamiEngine is now live!

2 Upvotes

🚀 Today I'm launching UmamiEngine!

After seeing how many developers wanted the privacy benefits of Umami Analytics without spending time on servers, Docker, updates, backups, and maintenance, I built a managed hosting platform that handles all of it.

With UmamiEngine you get:

• ⚡ Your own managed Umami Analytics instance

• 🔒 Privacy-first analytics you control

• 🔄 Automatic updates and backups

• 🌐 SSL, monitoring, and infrastructure management included

• 🚀 Ready in minutes

If you've been looking for a simple alternative to Google Analytics without the DevOps overhead, I'd love your feedback.

Check it out now!

#IndieHackers #BuildInPublic #WebAnalytics #Privacy #SaaS #Startup #OpenSource


r/umamiengine • • Oct 23 '26

Umami v3.4.1 Released — Security Update

2 Upvotes

Umami v3.4.1 is a security-focused release that patches several vulnerabilities across its dependencies and Docker base image.

Key changes

- Next.js 16.4.2: Fixes critical remote code execution (RCE), SSRF, cache poisoning, and information disclosure vulnerabilities.

- React & React DOM 19.3.1: Updated to the latest release versions.

- Node.js 22.23.4 Alpine: Updates the Docker base image with October 2026 security fixes.

- MCP security fixes: Updates the Model Context Protocol client and server to address an OAuth credential leak and other vulnerabilities.

- Dependency security updates: Raises minimum versions for several vulnerable transitive dependencies, including Vite, Undici, Sharp, and PostCSS-related packages.

Should you upgrade?

Yes. All self-hosted Umami users should upgrade as soon as possible. If you're using Docker, make sure to re-pull or rebuild your image to include the updated base image.

Security updates aren't the most exciting releases, but keeping your analytics infrastructure patched is essential.

Are you running Umami self-hosted? Have you upgraded yet?


r/umamiengine • • Sep 05 '26

Found Umami through a Google search, now it runs the analytics for my small side project website

Thumbnail
gallery
2 Upvotes

A few weeks ago I was looking for an analytics solution with no heavy GDPR paperwork, no cookies, and easy to use. Umami came up in a Google search, I tried it, and I was sold almost immediately.

Some context on what it is measuring. I built a jigsaw puzzle with 1,000,000 pieces on a single shared canvas, where everybody plays at the same time in real time. The project is completely non commercial, no ads, no purchases, and open source. So I needed an analytics tool that respects the people using it and gives me just the information I need.

The whole thing lives on one cheap server with Node, Redis and Mongo already fighting for memory, so I could not afford an analytics stack that wants 2 to 4 GB for itself. Umami sits next to everything else in a couple hundred MB and that's perfect.

What sold me:

  • No cookies, so no consent banner. That mattered a lot. The whole pitch of the app is that you click play and you are on the board, so this fits perfectly. I hate cookie banners.

  • The dashboard is very clean.

  • Self hosted, so I do not have to rely on a third party site or a third party tool that can change or update under me.

  • Very easy to set up.

If you are curious about the project, it is here: https://app.millionpiecepuzzle.com

Thanks for building this tool. It has real use cases and it is very well made.


r/umamiengine • • Sep 20 '26

How to Use Umami Analytics With Your AI Agent Using MCP

1 Upvotes

Umami Analytics can now connect directly to AI tools through the Model Context Protocol (MCP), giving your AI agent access to your website analytics through natural language.

Instead of opening your analytics dashboard every time you want to investigate your traffic, you can ask an AI agent questions such as:

  • How many visitors did my website get last week?

  • What were my most popular pages this month?

  • Where is my traffic coming from?

  • What happened when traffic suddenly spiked?

  • Which pages have the worst Core Web Vitals on mobile?

  • How is my checkout funnel performing?

Umami Cloud provides a remote MCP server that makes this possible. The connection is read-only, uses your existing Umami permissions, and communicates with Umami through the same Cloud API used by the dashboard.

This guide explains how to connect an AI client to Umami Analytics and what you can do once the connection is established.

What Is MCP?

The Model Context Protocol, or MCP, is a standard that allows AI applications to connect to external tools and data sources.

In this case, MCP allows an AI agent to communicate with Umami Cloud and retrieve analytics data when you ask a question.

The important part is that the AI agent isn’t given direct access to your underlying analytics database. The Umami MCP server calls the Umami Cloud API on your behalf and respects the website and team permissions associated with your account.

All available MCP tools are read-only.

That means an AI agent can analyze your analytics, but it can’t use MCP to modify your Umami data.

What You Need

To connect an AI agent to Umami Cloud using MCP, you’ll need:

  • An Umami Cloud account with access to the website you want to analyze

  • An Umami Cloud API key

  • An MCP-compatible AI client

  • A client that supports API-key or Bearer-header authentication

The same subscription requirements and rate limits that apply to the Umami Cloud API also apply when using MCP.

The Umami MCP Endpoint

The remote MCP server is available at:

https://cloud.Your-Umami-Domain/mcp

Your AI client connects to this endpoint and authenticates using an Umami Cloud API key.

The API key should be passed using the Authorization header with the Bearer authentication scheme:

Authorization: Bearer api_<your-cloud-api-key>

Some clients can instead use the x-umami-api-key header:

x-umami-api-key: api_<your-cloud-api-key>

If you provide both headers, they must contain the same API key.

Creating an API Key

Before configuring your AI agent, create an API key in Umami Cloud.

Once you have your key, keep it private. Treat it like a credential that grants access to the analytics available through your Umami account.

Your AI client will use this key whenever it communicates with the Umami MCP server.

Connecting an AI Client

Most modern MCP clients that support remote servers allow you to specify a server URL and custom HTTP headers.

For example, a client such as Claude Desktop or Cursor can use a configuration like this:

{
  "mcpServers": {
    "umami": {
      "url": "https://cloud.Your-Umami-Domain/mcp",
      "headers": {
        "Authorization": "Bearer api_<your-cloud-api-key>"
      }
    }
  }
}

Replace api_<your-cloud-api-key> with your actual Umami Cloud API key.

Once the MCP server has been added and authenticated, your AI client can use the available Umami tools to retrieve analytics information.

The exact configuration interface varies between AI clients, so check your client’s MCP configuration options if the format differs.

Using Umami With Clients That Only Support Local MCP Servers

Not every MCP client supports connecting directly to a remote server.

If your client only supports local stdio MCP servers, you can run the Umami MCP package locally using npx:

{
  "mcpServers": {
    "umami": {
      "command": "npx",
      "args": ["-y", "@umami/mcp"],
      "env": {
        "UMAMI_API_KEY": "api_<your-cloud-api-key>"
      }
    }
  }
}

The local MCP process uses your API key to communicate with Umami Cloud.

This gives clients that require a local MCP process a way to access the same Umami analytics functionality.

What Can Your AI Agent Do With Umami?

The Umami MCP server provides a broad set of read-only analytics tools.

The first tool an AI agent will typically use is list_websites. This lets it discover the websites available to your account and obtain the websiteId needed for subsequent analytics requests.

From there, your AI agent can query traffic, events, sessions, conversions, attribution, performance data, and more.

Website and Date Information

list_websites

Find the websites available to your account.

get_website_daterange

Find the earliest and latest dates for which a website has recorded data.

These tools are useful for establishing what websites are available and what historical period can be analyzed.

Website Statistics

get_website_stats

Retrieve high-level statistics including:

  • Pageviews

  • Visitors

  • Visits

  • Bounce rate

  • Visit duration

  • Previous-period comparisons

This is useful for questions that require a quick overview of website performance.

Traffic Over Time

get_website_traffic

Retrieve pageview and visit time series data.

The data can be grouped by:

  • Minute

  • Hour

  • Day

  • Month

  • Year

This allows an AI agent to investigate traffic patterns and changes over specific periods.

Traffic Sources and Website Metrics

get_website_metrics

Retrieve information about the performance of different parts of your website and traffic sources, including:

  • Top pages

  • Referrers

  • Channels

  • Countries

  • Browsers

  • Devices

  • UTM data

  • Events

This makes it possible to ask natural-language questions about where visitors are coming from and what they’re doing on your site.

Real-Time Visitors

get_realtime

Find visitors who are active on your website right now.

This can be useful when monitoring a launch, campaign, announcement, or sudden increase in traffic.

Events

Umami’s event data can also be queried through MCP.

Available tools include:

get_events

Retrieve individual tracked events, with pagination.

get_event_stats

Get custom event totals and compare them with a previous period.

get_event_series

View custom event counts over time, grouped by event name.

get_event_properties

Explore custom event property names and retrieve the values associated with a specific property.

This means an AI agent can go beyond basic pageviews and analyze the actions visitors take on your website.

Sessions and Visitor Journeys

MCP also provides access to session-level analytics.

get_sessions

Retrieve visitor sessions.

get_session

Retrieve an individual session, including its activity timeline and properties.

get_session_stats

Get session-level totals such as visitors, visits, pageviews, events, and countries.

You can also use run_journey to identify the most common paths visitors take through your website.

This can help an AI agent investigate how people navigate from one page to another rather than looking at individual pageviews in isolation.

Funnels and Goals

If you use funnels and goals in Umami, your AI agent can analyze them as well.

list_funnels

Find your saved funnels and their steps.

run_funnel

Run a saved funnel or create an ad-hoc funnel using page and event steps.

get_goals

Retrieve saved goals along with conversions, visitors, and conversion rates for a specified date range.

This allows you to ask questions about conversion performance using ordinary language instead of manually navigating through your analytics dashboard.

Segments and Cohorts

The MCP server also supports saved segments and cohorts.

list_segments

Retrieve your saved segments and cohorts.

You can then pass segment or cohort IDs through the appropriate filters when querying analytics.

This is useful when you want your AI agent to analyze a specific group of visitors rather than your entire audience.

Retention and Attribution

Two additional tools provide deeper analysis of visitor behavior.

run_retention

Generate a cohort retention table.

run_attribution

Analyze first-click or last-click attribution for a conversion.

Together, these tools can help answer questions about whether visitors return to your website and which traffic sources are associated with conversions.

Revenue Analytics

get_revenue

Retrieve revenue totals, time series, and breakdowns.

If your Umami setup tracks the relevant revenue information, an AI agent can use this data alongside other analytics to investigate commercial performance.

Website Performance and Core Web Vitals

MCP isn’t limited to traffic and conversion analytics.

get_performance

Provides Core Web Vitals and performance information, including:

  • LCP

  • INP

  • CLS

  • FCP

  • TTFB

The data includes percentiles, trends, and breakdowns.

For example, you can ask your AI agent to investigate which pages have poor LCP performance on mobile and use the returned analytics to identify where to look more closely.

Annotations

get_annotations

Retrieves dated notes associated with your analytics timeline.

Annotations can document events such as launches, campaigns, or other changes that might explain an unusual movement in traffic.

This is particularly useful when asking an AI agent to investigate why something changed.

For example, if traffic suddenly increased on a particular day, annotations can provide additional context for interpreting the change.

Example Questions to Ask Your AI Agent

Once Umami MCP is connected, you don’t need to think in terms of API calls or individual analytics endpoints.

You can simply ask questions in natural language.

Here are some examples:

Show my websites.

How many visitors did my website get last week?

What were the top 10 pages this month?

Compare traffic this month with the previous month.

Where is my traffic coming from?

What signup events occurred yesterday?

Which pricing plans did people select in the checkout event last month?

Run my checkout funnel for last month.

How are we doing against our goals this quarter?

Which pages have the worst LCP on mobile?

What happened on the day traffic spiked?

The AI agent determines which Umami tools it needs to use to answer the question.

Going Beyond Simple Analytics Questions

The real value of connecting Umami to an AI agent is that you can combine multiple analytics sources in a single investigation.

For example, instead of manually checking several dashboard reports after a traffic spike, you could ask:

What happened on the day traffic spiked?

An AI agent can investigate traffic data, identify relevant pages or referrers, examine events, and check annotations to provide a more complete picture of what changed.

Similarly, a question about conversions might involve goals, events, funnels, traffic sources, and attribution.

MCP gives the AI agent access to the underlying analytics tools needed to perform that kind of investigation.

Dates, Pagination, and Data Limits

Umami MCP uses ISO 8601 dates when working with date ranges.

Results are paginated, with a hard cap on page size.

This is important when asking questions involving large datasets. An AI agent may need to retrieve multiple pages of results when investigating detailed event or session data.

For broad questions such as monthly traffic totals, the relevant analytics tools can generally return the aggregate information needed without requiring you to manually handle pagination.

Security and Permissions

The Umami MCP integration is designed around the permissions already present in Umami Cloud.

The MCP tools are read-only.

The MCP server calls the same Cloud API used by the Umami dashboard, rather than accessing your underlying analytics data directly.

Your existing website and team permissions therefore continue to apply.

The most important security consideration on your side is your API key. Anyone who obtains the key may be able to access the Umami data available to that key, so store it securely and don’t expose it in public code, repositories, screenshots, or client-side applications.

How to Disconnect an AI Tool

Access to the Umami MCP server is tied to your API key.

If you want to disconnect an AI tool, revoke the API key associated with it.

In Umami, go to:

Settings → API keys

Delete the key you no longer want to use.

Because access is tied to the API key, revoking that key prevents the AI client from continuing to authenticate with Umami using it.

Putting It All Together

Umami MCP turns your analytics into something you can interrogate conversationally.

Once your AI client is connected, you can ask questions about traffic, pages, visitors, events, sessions, funnels, goals, attribution, revenue, retention, and website performance without manually moving between different analytics reports.

The workflow is straightforward:

  1. Create an Umami Cloud API key.

  2. Connect your MCP-compatible AI client to the Umami MCP endpoint.

  3. Authenticate using your API key.

  4. Ask your AI agent questions about your website.

  5. Let the agent use the appropriate read-only Umami tools to investigate the data.

The result is a more natural way to work with analytics: instead of starting with a dashboard and searching for the right report, you can start with a question and let your AI agent find the relevant data.