r/umamiengine • • Sep 17 '26

Umami 3.4 is out: Annotations, MCP support, API keys, and more

Thumbnail
umamiengine.com
1 Upvotes

Umami 3.4.0 has been released with a pretty substantial set of new features and improvements. We already tested and applied the update in UmamiEngine and here's what you need to know.

The biggest additions:

📌 Annotations
You can now add dated notes directly to website analytics charts. This makes it easier to correlate traffic changes with launches, campaigns, promotions, or other important events. Annotations support both all-day and time-specific notes, with tools to create, edit, and delete them.

🤖 Model Context Protocol (MCP)
Umami now supports MCP-compatible assistants through read-only analytics tools. The available tools cover traffic, events, sessions, funnels, goals, journeys, retention, attribution, revenue, performance, segments, and annotations.

MCP supports both remote HTTP and local stdio connections, with API key authentication and existing user/team permissions. For self-hosted installations, MCP is disabled by default and can be enabled with MCP_ENABLED=1.

🔑 API keys + typed API client
Account API keys can now be created and revoked from Settings → API keys.

There's also a new u/umami/api-client TypeScript package generated from Umami's OpenAPI contracts, providing typed requests and responses, structured errors, ESM/CommonJS support, and generated API documentation.

📊 Expanded analytics APIs
3.4 adds website-scoped analytics GET endpoints, dedicated funnel and goal resources, separate performance datasets, and a dedicated UTM metrics endpoint. Legacy report APIs remain available through compatibility handlers.

🎯 Better segments and tracking
Session property filters can now be saved in segments and combined with active filters. The tracker also supports visitor identity through data-distinct-id.

The release adds TWD and ISK revenue currencies, plus Georgian and Azerbaijani translations.

🔒 Security improvements
There are also a number of security changes, including stronger 2FA token handling, password fingerprint session binding, improved deleted-team access handling, report website reassignment protection, and Gitleaks secret scanning.

And, as usual, there are plenty of fixes covering PostgreSQL and ClickHouse timezone consistency, session handling, query performance, mobile UI, filters, boards, navigation, chart tooltips, and more.

The release also updates Next.js, Prisma, React, React Zen, and various runtime, frontend, build, and security dependencies.

Overall, 3.4 looks like a release focused not just on the analytics UI, but also on making Umami much easier to integrate with other tools and developer workflows.

What are you most interested in trying in 3.4 — Annotations, MCP, or the new API tooling?


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 • • 7d ago

Introducing UmamiEngine V2: A Better Analytics Experience

1 Upvotes

We're excited to announce UmamiEngine V2!

We've been working on making managed Umami Analytics easier to use, manage, and migrate to.

Here's what's new:

- Cleaner UI: A refreshed interface for a smoother, more intuitive experience.

- Updated WordPress Integration: Improved integration to make connecting your WordPress website with UmamiEngine easier and give you more control on what data to share and consent.

- Analytics Data Import & Export: Moving between analytics platforms or migrating your existing data is now easier with built-in import and export capabilities.

Our goal remains simple: make privacy-friendly web analytics accessible without the hassle of managing your own infrastructure.

Whether you're running a personal blog, an indie project, or managing multiple client websites, UmamiEngine makes analytics simpler.

Give V2 a try and let us know what you think!

Website: https://umamiengine.com/


r/umamiengine • • 9d 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 • • 16d 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 • • 17d ago

OSSEngine Analytics Connector 1.1.0 released – Major WooCommerce tracking, consent management, and reliability improvements

1 Upvotes

I've released version 1.1.0 of OSSEngine Analytics Connector, and this is a fairly substantial update.

The main focus of this release was improving WooCommerce tracking reliability, handling user consent properly, and making event delivery more resilient.

Here's a breakdown of what's changed.

🛒 WooCommerce purchase tracking

One of the biggest additions is exactly-once purchase tracking.

The implementation introduces a claimed → delivered state machine to prevent duplicate purchase events, along with:

  • A nonce-free order-key + HMAC confirmation endpoint.
  • Stable, salted event_id generation.
  • Per-order consent snapshots.
  • Migration of legacy 1.0.0 delivery markers without re-firing previously tracked purchases.

The JavaScript tracking layer has also been completely rewritten to support:

  • Classic and block-based cart and checkout.
  • WooCommerce Store API add/remove operations.
  • AJAX cart fragments.
  • Non-AJAX add-to-cart forms.

The new implementation has no external dependencies and is under 3 KB.

🔒 Consent management

Version 1.1.0 introduces three consent modes:

  • Auto: Automatically follows the available consent configuration.
  • Require consent: Only tracks when consent is granted.
  • Always track: Enables tracking regardless of the consent configuration.

Other additions include:

  • WordPress Consent API integration.
  • A window.ossengineConsent JavaScript interface.
  • Cross-tab consent withdrawal propagation.
  • Cache-safe role exclusion.
  • Per-order consent snapshots.

⚙️ More reliable event delivery

I've also introduced a bounded server-side event queue.

It includes:

  • A versioned database table.
  • Configurable eviction limits.
  • Exponential backoff.
  • Dead-letter handling.
  • Retry-After support.
  • A circuit breaker.
  • An optional server-side fallback, disabled by default.

There's also a new queue status panel in the WordPress administration area.

🛠️ Administration and privacy improvements

The new Advanced Settings tab provides controls for consent, trigger status, order-ID opt-in, excluded roles, queue limits, and the server-side fallback.

Additional improvements:

  • Read-only WooCommerce order metabox.
  • WordPress privacy exporter and eraser integration.
  • Privacy policy text.
  • Strict per-event payload allowlist.
  • PII scrubbing and an 8 KB payload limit.
  • Extend-only schema filters.
  • Complete uninstall cleanup covering the new options, queue table, and scheduled hooks.

Other fixes

  • Improved cache-safe tracking initialization using an inline bootstrap.
  • Existing ossengine_script_position and ossengine_tracking_enabled filters remain supported.
  • begin_checkout deduplication now uses the cart hash instead of the session ID.

Get the plugin

https://wordpress.org/plugins/ossengine-analytics-connector/

This release involved quite a bit of work, particularly around purchase deduplication, consent handling, and event delivery reliability.

I'd appreciate feedback from anyone using it, especially those running WooCommerce stores with block-based checkout or caching plugins.

Suggestions, bug reports, and feature requests are welcome!


r/umamiengine • • 22d ago

Why does Google Analytics show fewer active users than other analytics tools?

1 Upvotes

Have you ever noticed that your Google Analytics 4 (GA4) active-user numbers fluctuate even when your website traffic seems relatively stable?

There's a good reason for that.

GA4's Active Users metric isn't simply a count of everyone visiting your website. Visitors generally need to meet specific engagement conditions to qualify as active users, including:

  • Having a session longer than 10 seconds.
  • Viewing at least two pages.
  • Triggering a key event.

Other factors can also affect the numbers, including user identification methods, consent settings, behavioral modeling, reporting identity, and data processing.

How does Umami Analytics handle this differently?

Umami takes a different approach:

  • Visitors: Counts unique anonymous visitor sessions.
  • Visits: Measures website visits.
  • Views: Tracks pageviews.
  • Real-time: Shows visitors currently active on your website.

Umami generates anonymous visitor identifiers using the website ID, IP address, browser User-Agent, and a rotating salt. The default salt rotates monthly, limiting persistent visitor identification without requiring traditional tracking cookies.

The important distinction is that Umami Visitors and Google Analytics Active Users measure different things. You shouldn't expect their numbers to match.

If you're comparing analytics platforms or trying to understand your website's actual traffic, knowing how these metrics work is essential.

I wrote a detailed article explaining why GA4 active users fluctuate, how Umami measures visitors, and which metrics you should focus on when measuring website growth.

Read the full article: https://umamiengine.com/blog/google-analytics-active-users

Have you experienced significant differences between Google Analytics and other analytics platforms? I'd be interested to hear about your experience.


r/umamiengine • • 25d ago

🚀 Introducing the OSSEngine Analytics Connector – Bring Umami Analytics to WordPress

1 Upvotes

I've just released OSSEngine Analytics Connector, a new WordPress plugin that makes connecting your WordPress website to Umami Analytics much easier.

The goal is simple: make privacy-friendly website analytics accessible to WordPress users without having to deal with complicated manual installations or tracking-script configuration.

What's included?

- One-click UmamiEngine integration: Connect your WordPress website to UmamiEngine and get your analytics running in minutes.

- Automatic tracking: The plugin handles adding and configuring the Umami tracking script.

- WooCommerce support: Track e-commerce events, including products, orders, revenue, and other shopping activity.

- Admin exclusion: Administrators are excluded from tracking by default.

- Self-hosted Umami support: Already running your own Umami instance? You can connect it directly instead of using UmamiEngine.

- Lightweight: Tracking loads asynchronously, so analytics won't block your website from rendering.

Getting started

  1. Install the plugin from the WordPress plugin directory.
  2. Navigate to Settings → OSSEngine Analytics.
  3. Create a UmamiEngine account (14-day free trial, no credit card required).
  4. Click Connect UmamiEngine and authorize the connection.
  5. That's it! Your website analytics are ready.

You can also skip UmamiEngine entirely and connect your own self-hosted Umami installation.

Links

- WordPress plugin: https://wordpress.org/plugins/ossengine-analytics-connector/

- UmamiEngine: https://umamiengine.com/

This is the first release (v1.0.0), and I'd love to hear feedback from the WordPress and Umami communities.

If you give it a try, let me know what works, what could be improved, and what features you'd like to see next!

Disclaimer: This is an independent third-party plugin developed by OSSEngine. It is not an official Umami project or endorsed by the Umami team.


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 • • Oct 15 '26

How to Track Marketing Campaigns with UTM Parameters in Umami Analytics

1 Upvotes

If you're using Umami Analytics to understand where your website traffic comes from, the UTM insight is a handy feature worth checking out.

UTM tracking lets you add tags to URLs so you can see which marketing channels and campaigns are driving views to your website.

Umami's UTM insight (available since v2.11.0) breaks down views across five parameters:

  • utm_source --> Where traffic comes from (e.g., Google, newsletter, Twitter)
  • utm_medium --> The marketing channel (e.g., email, social, CPC)
  • utm_campaign --> The campaign name (e.g., product_launch, spring_sale)
  • utm_term --> Paid search keywords
  • utm_content --> Different links or content variations within a campaign

How to get started:

  1. Choose the page you want to track.
  2. Add UTM parameters to its URL.
  3. Use the tagged URL in your email, social media post, or ad campaign.
  4. Open your website in Umami Analytics.
  5. Navigate to the UTM insight and select the date range you want to analyze.
  6. Review the views broken down by UTM parameter.

For example:

https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=product_launch

This tells you the traffic came from a newsletter, through email, as part of your product launch campaign.

A few tips:

  • Keep your UTM naming consistent.
  • Use descriptive campaign names.
  • Test tagged URLs before launching campaigns.
  • Remember that the UTM insight measures views, not automatically conversions or revenue.

The best part? You don't need to configure additional parameters inside the UTM insight. Just use properly tagged URLs and check the report for your selected date range.

I've put together a step-by-step guide covering how UTM tracking works, how to set it up, and how to troubleshoot missing data.

What UTM naming conventions do you use to keep your campaigns organized?


r/umamiengine • • Oct 11 '26

Which platform do you need better analytics for?

1 Upvotes

r/umamiengine • • Oct 06 '26

Cloudflare Web Analytics vs. Umami: Which one should you use?

Thumbnail
umamiengine.com
1 Upvotes

If you're looking for privacy-friendly, cookieless analytics, both Cloudflare Web Analytics and Umami are worth considering. But they solve slightly different problems.

Cloudflare Web Analytics is primarily focused on traffic and website performance. It's free, easy to set up, and particularly strong when it comes to Real User Monitoring and Core Web Vitals.

Umami is more focused on understanding what visitors actually do.

You get things like:

  • Event tracking
  • Goals and conversions
  • Funnels
  • Journeys
  • Retention reporting
  • Real-time analytics
  • A full API
  • Self-hosting and data ownership

So the simplest way I'd describe the difference is:

👉 Cloudflare tells you how your website performs.
👉 Umami tells you what your visitors do.

For example, Cloudflare can help you understand whether your pages are loading quickly for real users. Umami can help you determine how many people clicked your signup button, completed registration, downloaded something, or dropped out of a funnel.

And you don't necessarily have to choose one.

Using Cloudflare for performance monitoring and Umami for behavioral analytics can actually give you a pretty complete picture of your website.

The real question isn't "Which analytics platform has more features?"

It's "What do I need my analytics to tell me?"

If you mainly care about speed and Core Web Vitals, Cloudflare is a great choice.

If you care about conversions, user behavior, and understanding what visitors actually do, Umami is probably the better fit.


r/umamiengine • • Oct 05 '26

Umami Analytics looks like it has some interesting features coming next

1 Upvotes

I’ve been following the recent development of Umami Analytics, and the project seems to be moving pretty quickly.

Umami 3.4 already brought some big additions like MCP support, annotations, API keys, a typed API client, and expanded analytics APIs.

But there’s also a lot of interesting work happening in the development pipeline.

Some of the things currently being worked on include:

- Raw data export — useful for people who want more control over their analytics data.

- UTM link builder — making campaign tracking easier without needing another tool.

- Nested segment conditions — more powerful audience/session filtering.

- Per-row board filters — more flexibility when building custom dashboards.

- Multi-website board components — potentially useful if you're managing multiple sites.

- Cross-website metric/event overview — a way to compare analytics across multiple websites.

- Global command palette — faster navigation through the application.

- Engaged-time tracking — potentially improving how visit duration is measured.

These aren't all released features yet, so I'd consider them a glimpse at where Umami is heading rather than a roadmap guarantee.

What I find interesting is that Umami continues to add fairly sophisticated analytics capabilities without turning into the enormous, complicated analytics platforms that many of us originally wanted to avoid.

For people using self-hosted analytics, which of these features would you actually use?

And what is the one feature you think Umami is still missing?


r/umamiengine • • Oct 04 '26

Why Umami Analytics Might Be the Best Web Analytics Tool for Simplicity

Thumbnail
umamiengine.com
1 Upvotes

Umami has a real claim to being the simplest option, though "best" depends on what you need. Here's is our argument for Umami:

Minimal setup. You add one small script tag to your site (the tracker is around 2 KB) and you're collecting data. There's no tag manager, no event taxonomy to design up front, and no config maze before you see anything useful.

A single-page dashboard. Visitors, page views, bounce rate, top pages, referrers, countries, devices and browsers all sit on one screen. Compared to Google Analytics 4, where reports are nested under exploration builders and custom dimensions, you can answer "what happened this week?" in seconds.

Privacy by design, which removes work. Umami doesn't use cookies and doesn't collect personal data, so for most setups you can skip the cookie consent banner and the GDPR headaches that come with it. That's a big simplification, especially for a site run from Germany or anywhere else in the EU. (Whether you can drop the banner always depends on your own legal situation, so check that if it matters.)

Flexible hosting. You can use Umami Cloud and let them run it, or self-host it with Docker plus a Postgres database. Self-hosting is free and gives you full ownership of your data, though it does mean maintaining a server. UmamiEngine helps reduce this friction by handling hosting, backups, maintenance, and more while you focus on building your product.

Open source and uncluttered. It's MIT-licensed, has a clean API, and does a deliberately limited set of things: pageviews, custom events, simple funnels and so on. Less feature surface means less to learn.

So the short version: Umami is the best fit if you want a lightweight, privacy-friendly dashboard you can set up in minutes and understand at a glance. It's also there for you if you need more advanced features like session replays, custom events, or heatmaps. Umami is the simple analytics solution that grows with you.


r/umamiengine • • Oct 03 '26

Got a couple of hours this weekend? Here's how to improve your web analytics

Thumbnail
umamiengine.com
1 Upvotes

A lot of websites have analytics installed, but very few actually have their tracking set up in a way that answers useful questions.

Here are a few things worth doing this weekend:

1. Audit your existing tracking

Check what you're actually tracking. Are pageviews enough, or do you also need clicks, signups, downloads, purchases, or other important actions?

Remove events that you don't use. More data isn't necessarily better data.

2. Set up meaningful goals

Pick 2–3 actions that actually matter to your website.

For example:

  • Newsletter signup
  • Contact form submission
  • Account registration
  • Checkout completion
  • Documentation download

Then make sure you can measure the journey leading to those actions.

3. Check your traffic sources

Look beyond "Google sent me X visitors."

Find out which channels are bringing visitors who actually engage with your site or convert.

A source sending 100 visitors who do nothing may be less useful than one sending 10 visitors who become customers.

If you're looking for a new home for your web analytics, consider umamiengine.com for privacy-first, open source analytics that give you full ownership of your data. Get 14 days of free trial without adding your credit card and 50% the first month when using the code FIRST100 at checkout.

4. Analyze your landing pages

Look at your top entry pages and ask:

  • Why are people landing here?
  • What do they do next?
  • Where do they leave?
  • Is there a clear next action?

Your most visited page isn't necessarily your most valuable page.

5. Look at your mobile traffic

If you haven't checked recently, compare mobile and desktop behavior.

Differences in engagement or conversion can reveal UX problems that aren't obvious when you're testing on your own computer.

6. Clean up your analytics

This is boring but important.

Check for:

  • Internal traffic
  • Test events
  • Duplicate tracking
  • Spam/referral traffic
  • Missing UTM parameters
  • Broken tracking after recent site changes

Bad data leads to bad decisions.

7. Create a simple weekly dashboard

Don't create 50 charts.

I'd start with:

Visitors → Traffic sources → Top landing pages → Key actions → Conversions

If you can understand how your website performed in 2 minutes, you've probably built a useful dashboard.

8. Finally, ask one question

Instead of looking at analytics and asking "What happened?", ask:

"What should I change because of what happened?"

That's where analytics becomes useful.

What is the one analytics task you've been putting off? Maybe this weekend is the time to finally fix it.


r/umamiengine • • Sep 24 '26

Umami Analytics MCP Setup Guide

Thumbnail
youtube.com
1 Upvotes

r/umamiengine • • Sep 22 '26

New Pricing Model for UmamiEngine!

Thumbnail
umamiengine.com
1 Upvotes

As of now, UmamiEngine offers a 14 day trial to test out all the incredible features of Umami like Dashboards, Session Replays, Heatmaps, and MCP server.

Sign up now and use the code FIRST100 at checkout to get 50% off the subscription of the first month, only for the first 100 customers.

Sign up now and get ownership of your analytics data.


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.


r/umamiengine • • Sep 14 '26

How to Set Up Two-Factor Authentication in Umami Analytics

Thumbnail
umamiengine.com
1 Upvotes

If you're running Umami Analytics for your websites, securing the analytics dashboard is just as important as securing the applications you build. Your Umami instance can contain website traffic data, user accounts, team access, and administrative controls, so a compromised password can give an attacker more access than you might expect.

Umami supports two-factor authentication (2FA) using time-based one-time passwords (TOTP). Once enabled, users need both their password and a temporary six-digit code from an authenticator app when signing in.

For developers and teams running self-hosted Umami, 2FA provides an important additional layer of protection against stolen, reused, or leaked passwords.

This guide explains how 2FA works in Umami, how to configure the encryption key required by the server, how individual users can enroll, and how administrators can enforce 2FA across an installation.

Why Enable Two-Factor Authentication in Umami?

A password is only one authentication factor. If an attacker obtains it through phishing, credential stuffing, a password leak, or malware, they may be able to access your Umami account.

With 2FA enabled, logging in requires:

  1. Your Umami password.
  2. A temporary verification code generated by an authenticator app.

The second factor makes a stolen password significantly less useful on its own.

This is particularly valuable for self-hosted Umami installations, where administrators are responsible for configuring and protecting the application and its environment.

Umami uses TOTP, an established standard supported by popular authenticator applications including:

  • Google Authenticator
  • Authy
  • 1Password
  • Other compatible TOTP authenticator apps

The codes are generated locally by the authenticator app and periodically change, so there is no need to receive an SMS message every time you log in.

Umami 2FA Requirements

Two-factor authentication has been available in Umami since version 3.3.0.

Before users can enable 2FA, the Umami server needs a TWO_FACTOR_ENCRYPTION_KEY environment variable.

Umami encrypts stored 2FA secrets at rest using AES-256-GCM. The encryption key must therefore be configured for your installation before 2FA can be enabled.

Generate the encryption key

You can generate a suitable 256-bit key with OpenSSL:

openssl rand -hex 32

This produces a 64-character hexadecimal string.

Add the generated value to your Umami environment configuration:

TWO_FACTOR_ENCRYPTION_KEY="your generated key"

Replace your generated key with the value generated by OpenSSL.

For example:

TWO_FACTOR_ENCRYPTION_KEY="a64-character-hexadecimal-key-generated-by-openssl"

Keep the key secure

The encryption key is security-sensitive configuration data. Treat it like other secrets used by your Umami installation.

The key should be:

  • Unique to your Umami installation.
  • Kept secret.
  • Stored securely alongside your other application secrets.
  • Included in your backup and disaster-recovery strategy.

One important detail is that changing or losing this key can make previously stored 2FA secrets unreadable. Users affected by this will need to enroll in 2FA again.

If you're deploying Umami with Docker, Kubernetes, a managed hosting platform, or another deployment system, configure the variable through the appropriate secret or environment-variable mechanism rather than committing it to your source-control repository.

How to Enable 2FA for Your Umami Account

Once TWO_FACTOR_ENCRYPTION_KEY is configured, individual users can enable two-factor authentication from their account settings.

1. Open your profile settings

Log in to your Umami dashboard.

Click the profile button in the side navigation and select Settings.

Then open the Security section.

2. Enable two-factor authentication

In Security settings, find:

Enable two-factor authentication

Turn the option on.

Umami will display a QR code that contains the information your authenticator app needs to configure the account.

3. Add Umami to your authenticator app

Open your preferred authenticator application.

Scan the QR code displayed by Umami.

For example, you can use Google Authenticator, Authy, or 1Password.

Umami also provides a manual entry key. This is useful if scanning the QR code isn't possible or if you prefer to enter the TOTP secret manually.

4. Verify the setup

After adding the account to your authenticator app, the app will generate a six-digit verification code.

Enter the current six-digit code into Umami to confirm that the authenticator has been configured correctly.

Once the code is accepted, 2FA is enabled for your account.

Save Your Umami Backup Codes

After successfully enabling 2FA, Umami generates 10 single-use backup codes.

This is an important step that shouldn't be skipped.

Backup codes provide an alternative way to authenticate if you lose access to your authenticator app. For example, you might need one if you lose your phone, replace your device, or accidentally remove the Umami entry from your authenticator.

Store the codes securely

Umami displays the backup codes only once, so save them somewhere secure before leaving the setup screen.

A password manager is generally a good place to store recovery information.

Remember that each backup code can only be used once. Once a code has been consumed, it cannot be used for another login.

If you lose both your authenticator access and your backup codes, an administrator may need to reset your 2FA configuration.

What Happens When You Log In With 2FA?

After 2FA has been enabled, the normal Umami login process gains an additional step.

First, enter your Umami username or email and password as usual.

After your password is accepted, Umami asks for a six-digit authentication code.

Open your authenticator app and enter the current TOTP code.

If you don't have access to your authenticator app, select:

Use a backup code

You can then enter one of your unused backup codes.

Failed login attempts

Umami limits repeated failed 2FA attempts.

After five failed attempts, additional attempts are locked for 15 minutes.

This helps reduce the risk of someone repeatedly guessing authentication codes.

How to Disable 2FA

If 2FA is no longer required for your account, you can disable it from:

Settings → Security

Turn off the two-factor authentication option.

For security, Umami requires you to confirm the change by entering:

  • Your Umami password.
  • A valid code from your authenticator app.

If an administrator has required 2FA for your account, you won't be able to disable it yourself. An administrator must first remove the applicable requirement.

How Administrators Can Require 2FA

Allowing users to enable 2FA voluntarily is useful, but organizations may want to make it mandatory.

Umami administrators can require two-factor authentication at three different levels:

LevelLocationEffect
GlobalAdmin → SecurityRequires 2FA for every user on the Umami instance
Per userAdmin → Users → UserRequires 2FA for a specific user
Per teamAdmin → Teams → Team → SettingsRequires 2FA for every member of a team

This gives administrators flexibility depending on how their Umami installation is organized.

Require 2FA globally

If every account on your Umami instance should use 2FA, go to:

Admin → Security

Enable the global 2FA requirement.

This is a good option for installations where all users should meet the same security standard.

Require 2FA for a specific user

To enforce 2FA for an individual account, go to:

Admin → Users → select the user

From the user's settings, enable the requirement for 2FA.

This can be useful when only certain accounts — such as administrators or users with sensitive access — need mandatory two-factor authentication.

Require 2FA for a team

If your Umami installation uses teams, you can enforce 2FA for everyone belonging to a particular team.

Go to:

Admin → Teams → select the team → Settings

Enable the team's 2FA requirement.

Every member of that team will then be required to enroll in 2FA.

What Happens When 2FA Becomes Required?

An administrator doesn't necessarily need to manually configure the authenticator for every user.

If 2FA is required for a user who hasn't enrolled yet, Umami prompts that user to configure 2FA the next time they log in.

The user must complete the setup before they can continue using the application.

This means administrators can enforce a security policy without having to collect or manage users' authenticator secrets themselves.

If a user's account is affected by a 2FA requirement, the option to disable 2FA is locked until an administrator removes the requirement.

How to Recover a Locked-Out User

What happens if a user loses their phone and their backup codes?

An administrator can reset the user's 2FA configuration.

Navigate to:

Admin → Users → select the user

From there, the administrator can reset the user's 2FA.

The reset clears the existing:

  • 2FA secret
  • Backup codes

The user can then enroll in 2FA again from scratch.

When should an admin reset 2FA?

A reset may be necessary when a user:

  • Loses their authenticator device.
  • Replaces a phone without transferring their authenticator accounts.
  • Loses all backup codes.
  • Can no longer generate valid TOTP codes.

After resetting the account, the user should immediately configure a new authenticator and securely save the newly generated backup codes.

Deployment Considerations for Developers

If you're responsible for deploying Umami, there are a few things worth considering before enabling 2FA for your users.

Configure the encryption key before enforcing 2FA

Make sure TWO_FACTOR_ENCRYPTION_KEY is configured and available to the Umami application before requiring 2FA.

For a self-hosted installation, verify that the environment variable is present in the actual runtime environment, not just in a local development configuration.

Don't commit the key to Git

The encryption key should be treated as a secret.

Avoid putting it directly into:

  • Git repositories
  • Public Dockerfiles
  • Public configuration files
  • Client-side JavaScript
  • Documentation intended for public distribution

Use your deployment platform's secret-management or environment-variable functionality where appropriate.

Back up the key

Your database and application configuration aren't the only things that matter for disaster recovery.

Because the 2FA secrets stored by Umami depend on TWO_FACTOR_ENCRYPTION_KEY, losing the key can prevent previously stored 2FA secrets from being decrypted.

Keep the key securely backed up and make sure authorized administrators can recover it during a restoration or migration.

Don't casually rotate the key

Changing TWO_FACTOR_ENCRYPTION_KEY isn't equivalent to changing an ordinary application setting.

Previously stored 2FA secrets encrypted with the old key can become unreadable. Affected users will need to re-enroll in 2FA.

For that reason, treat the key as a persistent installation-specific secret rather than something to rotate casually.

A Practical 2FA Rollout Strategy

If you're introducing 2FA to an existing Umami installation with multiple users, it's worth planning the rollout.

A sensible approach is:

1. Configure the encryption key

Generate the key:

openssl rand -hex 32

Add it to your Umami environment:

TWO_FACTOR_ENCRYPTION_KEY="your generated key"

Restart or redeploy Umami as required by your deployment setup.

2. Test enrollment

Before enforcing 2FA for everyone, have an administrator or test account enroll and verify that:

  • The QR code works.
  • The authenticator generates valid codes.
  • Login requires the TOTP code.
  • Backup-code login works.

3. Make sure recovery is understood

Administrators should know where to reset a user's 2FA:

Admin → Users → User

Users should also understand that their backup codes are displayed only once and should be stored securely.

4. Enforce 2FA

Once you're confident the configuration works, choose the appropriate enforcement level:

  • Global for every user.
  • Per user for selected accounts.
  • Per team for selected groups.

This avoids discovering a configuration problem only after locking a large group of users into a mandatory authentication flow.

Common Questions About Umami 2FA

Does Umami use SMS for two-factor authentication?

No. Umami's 2FA implementation uses TOTP, with codes generated by a compatible authenticator application.

Which authenticator apps work with Umami?

Umami uses TOTP, so you can use compatible authenticator apps such as Google Authenticator, Authy, and 1Password.

How many backup codes does Umami provide?

Umami generates 10 single-use backup codes when you complete 2FA enrollment.

Can users disable mandatory 2FA?

No. If an administrator requires 2FA for an account through a global, user-level, or team-level requirement, the user cannot disable it themselves.

An administrator must remove the requirement.

What happens if I lose my authenticator?

Use one of your unused backup codes to log in.

If you also lost your backup codes, an administrator can reset your 2FA configuration so you can enroll again.

What if the TWO_FACTOR_ENCRYPTION_KEY is lost?

Previously stored 2FA secrets may become unreadable. Affected users will need to re-enroll in 2FA.

This is why the encryption key should be securely backed up as part of your Umami deployment's disaster-recovery strategy.

Final Thoughts

Two-factor authentication is one of the simplest security improvements you can make to an Umami Analytics installation.

For individual users, enabling 2FA protects the account even if its password is compromised. For administrators, Umami provides flexible enforcement at the global, user, and team levels.

If you're self-hosting Umami, the most important deployment step is configuring and protecting the TWO_FACTOR_ENCRYPTION_KEY before enabling or enforcing 2FA. Once that's done, users can enroll through Settings → Security, connect an authenticator app, verify a six-digit TOTP code, and securely store their 10 backup codes.

For teams running analytics in production, making 2FA part of your normal access-control policy is a small change that can substantially strengthen the security of your Umami dashboard.


r/umamiengine • • Sep 11 '26

Umami Goals: How to Track Website Conversions and Measure What Matters

Thumbnail
umamiengine.com
1 Upvotes

Website analytics can tell you what visitors do on your website. But one of the most important questions is: Are visitors actually doing what you want them to do?

That is where Goals in Umami Analytics come in.

Umami Goals help you measure whether your website is achieving specific objectives by tracking the percentage of users who complete a defined action. Instead of simply looking at page views or traffic numbers, you can use Goals to understand which visitors are converting and how effectively your website turns visits into meaningful actions.

Goals are available in Umami v2.12.0 and later.

What are Goals in Umami?

An Umami Goal measures the conversion rate of users who complete a specific action on your website.

You define an action that represents a successful outcome, and Umami calculates how many users completed that action compared with the total number of users during the selected date range.

For example, imagine you have a SaaS website and want to know how many visitors reach your pricing page.

You could create a Goal for:

  • Action type: Viewed page
  • Condition: /pricing

Umami will then show the conversion rate for users who viewed that page.

You can also track an event instead of a page view. For example, if you want to measure how many visitors click a live demo button, you could create a Goal for the event:

live-demo-button

This makes Goals useful for measuring both page-based conversions and event-based conversions.

Why should you use Goals?

Raw traffic numbers don't necessarily tell you whether a website is performing well.

Getting 10,000 visitors might sound impressive, but if only a small percentage of those visitors take an important action, there may be an opportunity to improve the website.

Goals provide a more meaningful metric: conversion rate.

Depending on your website, useful Goals could include actions such as:

  • Visiting a pricing page
  • Reaching a signup page
  • Clicking a specific button
  • Triggering a custom event
  • Completing another important user action that you already track

The goal is to connect visitor behavior with an outcome that matters to you.

Traffic tells you what happened. Goals help tell you what worked.

This distinction is important when analyzing your website.

For example, you might discover that one page receives significantly more traffic than another. That doesn't automatically mean it is more valuable. A page with fewer visitors could potentially generate a much higher percentage of users who take an important action.

By tracking Goals, you can start asking better questions:

  • How many users are completing an important action?
  • What percentage of users convert?
  • Is the conversion rate changing over time?
  • Did a website redesign improve the conversion rate?
  • Are visitors reaching important pages?
  • Are users interacting with important elements of the website?

These insights can help turn analytics data into actionable decisions.

How Umami Goals work

An Umami Goal requires you to select an Action.

The action is what a user must do for Umami to count that user as a conversion.

There are two supported action types:

Action typeWhat it tracksExample
Viewed pageA user visits a specific URL/pricing
Triggered eventA user generates a specific eventlive-demo-button

The selected action is then used to calculate the conversion rate for the selected date range.

Viewed page Goals

A Viewed page Goal is useful when reaching a particular URL represents an important step in your visitor journey.

For example:

/pricing

If viewing your pricing page is an important milestone, you can create a Goal that tracks users who visit that URL.

Other examples might include:

  • /signup
  • /contact
  • /demo

The exact URL depends on your website and what you consider a meaningful action.

Triggered event Goals

A Triggered event Goal is useful when the action you care about is an interaction rather than simply visiting a page.

For example, you might already have an event called:

live-demo-button

You can create a Goal using that event and measure how many users trigger it.

This is particularly useful for interactions such as buttons, links, or other actions that you've configured your website to track as events.

How to create a Goal in Umami

Creating a Goal is straightforward.

Step 1: Add a Goal

Open the Goals insight in Umami and click the Add Goal button.

This starts the Goal creation process.

Step 2: Choose the action

Fill out the Goal form and select the action that should count as a conversion.

You can choose between:

Viewed page

Choose this option when the conversion should happen when a user visits a specific URL.

For example:

/pricing

Triggered event

Choose this option when the conversion should happen when a user triggers a specific event.

For example:

live-demo-button

Enter the URL or event condition that corresponds to the action you want to measure.

Once you've filled out the details, click Save.

Step 3: Run the insight

After saving the Goal, run the insight to view its results.

Umami will calculate the conversion rate based on users who completed the selected action during the chosen date range.

This gives you a straightforward way to monitor how effectively your website is achieving the objective represented by the Goal.

Choosing the right Goals

The most useful Goals aren't necessarily the ones that are easiest to track. They should represent actions that are genuinely meaningful for your website.

A good starting point is to think about what you want visitors to accomplish.

For example, a website might have several possible objectives:

SaaS website

A signup or demo interaction might be more meaningful than a simple page view.

Business website

A contact-related page or tracked interaction could represent an important step toward generating a lead.

Product website

Visiting a pricing page could be an important indicator of purchase intent.

The right Goal depends entirely on what success means for your website.

Don't track everything as a Goal

It's tempting to create Goals for every interesting interaction, but this can make your analytics harder to interpret.

A Goal should represent a meaningful outcome or milestone.

If an action doesn't tell you anything useful about whether your website is achieving its objectives, it probably doesn't need to be a Goal.

Keep your Goals focused on the actions you actually want to improve.

Goals vs. events in Umami

Goals and events serve different purposes.

An event records an interaction or action that occurs on your website.

A Goal uses a page view or an existing event as the action that represents a conversion, allowing you to measure the conversion rate associated with that action.

For example, suppose your website tracks a button click using the event:

live-demo-button

The event tells you that users are triggering that interaction.

You can then use that event as the action for a Goal to measure its conversion rate.

In other words, events help capture behavior, while Goals help you evaluate behavior in terms of conversion.

How to use Goal data

Creating a Goal is only the first step. The real value comes from using the resulting data to make better decisions.

Suppose you track a pricing-page Goal and notice that the conversion rate is lower than expected.

That could prompt you to investigate the user experience around the pricing page.

You might consider questions such as:

  • Is the page easy to understand?
  • Is the next step obvious?
  • Are important calls to action easy to find?
  • Is the page consistent with the expectations created by other pages?
  • Did the conversion rate change after a recent design or content change?

Similarly, if you track a button event as a Goal, changes in its conversion rate can help you evaluate whether the surrounding page experience is encouraging users to take action.

Goals don't automatically explain why users behave differently, but they give you a useful measurement for identifying changes and opportunities.

A simple Goal strategy

If you're new to Goals, start small.

Choose a few actions that are closely connected to the primary purpose of your website.

For example:

  1. Identify the most important action you want visitors to take.
  2. Check whether that action is already represented by a page view or tracked event.
  3. Create a Goal using that action.
  4. Monitor its conversion rate over time.
  5. Make changes to your website and compare the results.

This creates a simple feedback loop:

Measure → Improve → Measure again

Over time, your analytics become much more useful because you're not just watching traffic — you're measuring progress toward specific objectives.

Managing Goals

Once you've created a Goal, you can manage it from the Goals insight.

To modify or remove a Goal, click the ellipsis (...) menu for the relevant Goal.

From there, you can choose the appropriate action for that Goal.

Frequently asked questions

What version of Umami supports Goals?

Umami Goals are available starting with v2.12.0.

What can I use as a Goal action?

You can use either a Viewed page action or a Triggered event action.

Can I track a specific URL?

Yes. A Viewed page Goal can be configured for a specific URL, such as /pricing.

Can I track a button click?

Yes, provided the button interaction is being tracked as an event. You can then use that event as the action for a Triggered event Goal.

What does the Goal conversion rate represent?

The conversion rate represents the percentage of users who completed the selected Goal action out of the total number of users within the selected date range.

Start measuring what matters

Analytics becomes much more useful when you connect visitor behavior to meaningful outcomes.

Umami Goals give you a simple way to do exactly that. Whether you're interested in visitors reaching a particular page or triggering an important event, Goals let you turn those actions into measurable conversion rates.

Start with the actions that matter most to your website, keep your Goals focused, and use the results to identify opportunities for improvement.

Don't just measure how many people visit your website. Measure what they actually do.


r/umamiengine • • Sep 08 '26

How to Track Revenue in Umami Analytics

Thumbnail
umamiengine.com
1 Upvotes

Tracking website traffic tells you how many people visit your site. Tracking revenue tells you what those visits are actually worth.

Umami Analytics includes built-in revenue tracking that lets you connect financial performance with website activity. With Revenue insights, you can measure the income generated by tracked events, understand which parts of your site contribute to revenue, evaluate ROI, and make better decisions about your marketing and conversion strategy.

Revenue tracking has been available in Umami since v2.14.0.

This guide explains how Umami revenue tracking works, how to configure it, and how to create a Revenue insight.

What Is Revenue Tracking in Umami?

Umami Revenue allows you to send financial information alongside an event that occurs on your website.

For example, when a customer completes a purchase, you can track an event such as:

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

Umami can then aggregate the revenue and currency data over a selected time period and display it through a Revenue insight.

This gives you a way to connect what users do with how much money those actions generate.

Instead of looking only at pageviews, visitors, or conversions, you can investigate questions such as:

  • How much revenue was generated during a particular period?
  • Which tracked events generate the most revenue?
  • Which pages or products are associated with revenue-generating behavior?
  • How does revenue change over time?
  • Which traffic and user behavior patterns are associated with higher revenue?
  • Are changes to your website or marketing campaigns producing better financial results?

By combining revenue data with your existing analytics, you get a more complete picture of website performance.

How Umami Revenue Tracking Works

The Revenue insight works by aggregating two pieces of dynamic event data:

  • Revenue — the financial value associated with the event.
  • Currency — the currency in which that revenue is recorded.

Both values are passed when you track an event.

For example:

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

In this example, the checkout-cart event records revenue of 19.99 in US dollars.

Umami uses the currency information when aggregating revenue data. If the supplied currency code is not recognized as a valid ISO 4217 currency code, the insight defaults to USD.

Before You Start

To collect revenue data, you need to track an event containing the revenue and currency properties.

There are two supported approaches:

  1. Tracker functions
  2. HTML data attributes

Choose the approach that best fits how your website is built.

For JavaScript-based applications, tracker functions are generally the most flexible option. For straightforward HTML elements, data attributes can be convenient because they allow you to add tracking directly to an element.

Option 1: Track Revenue With a Tracker Function

The tracker function approach allows you to send an event and its revenue information directly through Umami's JavaScript tracker.

Step 1: Choose the event you want to associate with revenue

First, determine which user action represents the revenue-generating event.

For example, you might want to track a completed checkout:

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

Here:

  • checkout-cart is the event name.
  • 19.99 is the revenue amount.
  • USD identifies the currency.

The event name should represent the action you are tracking in your application.

Step 2: Add the revenue value

Pass the financial amount using the revenue property:

{
  revenue: 19.99
}

With tracker functions, the revenue value is supplied as a number.

For example:

umami.track('checkout-cart', {
  revenue: 49.95,
  currency: 'USD',
});

This records a revenue value of 49.95.

Step 3: Add the currency

Every revenue event should include the currency property:

currency: 'USD'

The currency should use an ISO 4217 currency code.

For example:

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

The currency is required because Umami needs to know which currency the revenue value represents when aggregating the data.

Step 4: Track the event

Once the event includes both properties, send it using umami.track():

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

Umami will receive the event together with the revenue and currency information.

How the tracker payload works

When you track an event, Umami includes its default properties in the payload.

The previous example is equivalent to:

umami.track(props => ({
  ...props,
  name: 'checkout-cart',
  data: {
    revenue: 19.99,
    currency: 'USD',
  },
}));

This form can be useful when you need more control over the event payload.

Option 2: Track Revenue With Data Attributes

If you're working with standard HTML elements, you can also configure revenue tracking using Umami data attributes.

This can be useful when you want to attach tracking directly to an element without writing a separate JavaScript tracking function.

Step 1: Add the Umami event attribute

Start with the element you want to track and add:

data-umami-event="checkout-cart"

For example:

<button
  id="checkout-button"
  data-umami-event="checkout-cart"
>
  Checkout
</button>

The value identifies the event that Umami should track.

Step 2: Add the revenue attribute

Add the revenue using:

data-umami-event-revenue="19.99"

The complete element becomes:

<button
  id="checkout-button"
  data-umami-event="checkout-cart"
  data-umami-event-revenue="19.99"
>
  Checkout
</button>

Important: When using data attributes, revenue must be passed as a string.

Step 3: Add the currency attribute

Finally, specify the currency:

data-umami-event-currency="USD"

The complete example is:

<button
  id="checkout-button"
  data-umami-event="checkout-cart"
  data-umami-event-revenue="19.99"
  data-umami-event-currency="USD"
>
  Checkout
</button>

When the element is used, Umami can track the event along with its revenue and currency data.

Revenue Parameters

Revenue tracking relies on the following currency parameter:

ParameterDescription
CurrencyRequired. The currency of the data being aggregated.

The revenue value itself is supplied as dynamic event data, while the currency identifies the monetary unit associated with that data.

Using a recognized ISO 4217 currency code is important. If Umami does not recognize the supplied currency code, the Revenue insight defaults to USD.

Creating a Revenue Insight in Umami

Once your website is sending revenue events, you can create a Revenue insight to analyze the collected data.

The insight aggregates revenue and currency data across the time period you specify.

Step 1: Choose a currency

Start by creating or configuring a Revenue insight in your Umami dashboard.

The first step is to choose the currency you want the insight to use.

This determines the monetary unit in which the aggregated revenue data is presented.

If your tracked events contain multiple currencies, pay particular attention to the currency you select when analyzing the data. The currency associated with your revenue data is an important part of interpreting the resulting totals correctly.

Step 2: Run the insight

After selecting the currency, run the insight.

Umami will aggregate the available revenue data for the selected time period and present the resulting revenue information.

The exact result depends on the events your website has recorded, the revenue values attached to those events, the currencies used, and the time period being analyzed.

Example: Tracking a Purchase

Imagine that a customer completes a purchase worth $19.99.

Your application can send:

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

Another customer completes a $49.99 purchase:

umami.track('checkout-cart', {
  revenue: 49.99,
  currency: 'USD',
});

A third customer makes a $29.99 purchase:

umami.track('checkout-cart', {
  revenue: 29.99,
  currency: 'USD',
});

These events provide Umami with the revenue and currency information it needs to aggregate the financial data.

The resulting Revenue insight can then be used to analyze the revenue generated during the selected period.

The important principle is that revenue is attached to an event. Umami isn't simply counting visitors and guessing what they're worth; your application explicitly sends the financial value associated with the tracked action.

Why Track Revenue in Umami?

Traditional web analytics can tell you whether your website is receiving traffic. Revenue tracking adds another layer: it helps you understand the financial outcome of that traffic.

Measure financial performance

Revenue data provides a direct way to evaluate financial performance over time.

You can compare different periods and determine whether revenue is increasing, decreasing, or remaining relatively stable.

Measure ROI

Revenue tracking can help connect website activity with business results.

When combined with traffic and behavioral data, revenue can provide useful context for evaluating whether campaigns, landing pages, or other website changes are contributing to financial outcomes.

Identify revenue-generating behavior

Not every visitor interaction has the same financial impact.

By attaching revenue to relevant events, you can investigate which actions are associated with income and use that information to prioritize improvements.

Understand customer behavior

Revenue data becomes more useful when considered alongside user behavior.

For example, traffic and engagement metrics can tell you how visitors interact with your website, while revenue data helps show the financial significance of those interactions.

Improve conversion rates

Revenue information can help identify opportunities to improve the customer journey.

Rather than optimizing solely for more traffic or more clicks, you can focus attention on actions and experiences that contribute to revenue.

Plan for future growth

Historical revenue data can help you understand performance trends and make more informed decisions about future growth.

Best Practices for Revenue Tracking

Track the meaningful revenue event

Choose an event that accurately represents the action you want to associate with revenue.

For an ecommerce workflow, this might be a completed checkout or another appropriate purchase-related event.

The goal is to make sure the event represents the financial outcome you're trying to measure.

Use accurate revenue values

The value passed to revenue should represent the amount you intend to analyze.

Incorrect values will naturally produce misleading revenue insights, so make sure your application passes the appropriate amount at the point where the event occurs.

Always provide the currency

Currency is a required part of revenue tracking.

For example:

{
  revenue: 19.99,
  currency: 'USD'
}

Using an appropriate ISO 4217 currency code helps ensure that Umami can interpret the currency correctly.

Be consistent

Use a consistent event structure throughout your website or application.

For example, if a particular purchase action is represented by checkout-cart, consistently use that event for the same type of revenue-generating action.

Consistency makes your analytics easier to understand and maintain.

Test your implementation

Before relying on Revenue insights for business decisions, verify that your events are being sent correctly.

Check that:

  • The expected event is being tracked.
  • The revenue value is correct.
  • The currency is included.
  • The currency code is recognized.
  • The event appears in your analytics data.
  • The Revenue insight produces the expected results.

A small tracking error can become a surprisingly large analytics headache later. Testing early is considerably cheaper than debugging a year's worth of questionable revenue data.

Troubleshooting Revenue Tracking

If your Revenue insight isn't showing the results you expect, review the event implementation first.

Check the event data

For tracker functions, verify that your event contains both:

revenue: 19.99,
currency: 'USD'

For data attributes, verify that the relevant attributes are present:

data-umami-event-revenue="19.99"
data-umami-event-currency="USD"

Remember that revenue must be passed as a string when using data attributes.

Check the currency code

Make sure the currency uses a recognized ISO 4217 code.

If Umami does not recognize the supplied currency code, the insight defaults to USD.

Check the selected time period

Revenue is aggregated over the specified time period. If you're looking at a period in which no matching revenue events occurred, the insight will not contain the revenue you expect.

Check that revenue is attached to the correct event

Make sure the event containing the revenue data is actually being triggered when the intended action occurs.

For example, if revenue is supposed to represent a completed purchase, verify that the tracking call happens when the purchase is successfully completed rather than at an earlier stage of the checkout process.

Frequently Asked Questions

What version of Umami supports Revenue?

Revenue tracking is available starting with Umami v2.14.0.

What data does the Revenue insight aggregate?

The Revenue insight aggregates Revenue and Currency data over a specified time period.

Is currency required?

Yes. Currency is required for the revenue data to be aggregated correctly.

Which currency format should I use?

Use an ISO 4217 currency code, such as USD.

If a currency code isn't recognized, Umami defaults the insight to USD.

Can I use data attributes to track revenue?

Yes. Umami supports revenue tracking through data attributes.

For example:

<button
  data-umami-event="checkout-cart"
  data-umami-event-revenue="19.99"
  data-umami-event-currency="USD"
>
  Checkout
</button>

When using this method, the revenue value must be provided as a string.

Can I use JavaScript instead?

Yes. Tracker functions provide a flexible way to send revenue data:

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

With this approach, revenue is passed as a number.

Summary

Umami Revenue provides a way to connect website analytics with financial performance.

The basic workflow is:

  1. Choose the revenue-generating event you want to track.
  2. Send the revenue value with that event.
  3. Include the currency using a recognized ISO 4217 code.
  4. Verify that the event is being collected correctly.
  5. Create a Revenue insight.
  6. Choose the currency for the insight.
  7. Run the insight over the desired time period.
  8. Use the resulting data alongside traffic and behavioral metrics to understand performance and identify opportunities for improvement.

For JavaScript applications, you can use:

umami.track('checkout-cart', {
  revenue: 19.99,
  currency: 'USD',
});

For HTML elements, you can use:

<button
  data-umami-event="checkout-cart"
  data-umami-event-revenue="19.99"
  data-umami-event-currency="USD"
>
  Checkout
</button>

Once revenue tracking is configured, Umami can turn otherwise abstract analytics numbers into a much more useful business metric: how website activity relates to income.


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 • • Sep 07 '26

UmamiEngine is now on TinyLaunch

Thumbnail
tinylaunch.com
1 Upvotes

To spread the love of open source privacy first web analytics everywhere, I launched UmamiEngine on Tiny Launch today!

Check it out and don't forget you get a 50% discount on the first month subscription with the code FIRST100 at checkout. It's only limited to the first 100 users, so hurry up!

UmamiEngine makes it easier than ever to deploy privacy first web analytics with Umami Analytics in minutes. No self hosting, no server maintenance, no worrying about backups. Just pure product focus.


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 • • Aug 31 '26

Umami Session Replays: See How Visitors Actually Use Your Website

Thumbnail
umamiengine.com
1 Upvotes

Traditional analytics tell you what happened on your website: how many people visited, which pages they viewed, and which events they triggered.

Session Replays add another layer of insight. They let you watch recordings of real visitor sessions and see how people actually interact with your website—including clicks, scrolling, navigation, and form interactions.

For developers, replays can help diagnose confusing UX and reproduce bugs. For small business owners, bloggers, and Shopify store owners, they provide behavioral evidence that can help explain why visitors aren't doing what you expect.

This guide explains what Umami Replays are, how to enable them, how the recording settings work, and how to get useful insights from your sessions.

What are Session Replays?

Umami Replays let you watch a recreation of a visitor's session on your website.

The replay player can show:

  • Mouse movement and clicks
  • Scrolling behavior
  • Page navigation
  • Form interactions
  • Inputs, with form fields masked by default

Rather than simply looking at a list of pageviews, you can see how visitors move through your pages and interact with the interface.

That can make it much easier to investigate questions such as:

  • Why aren't visitors clicking this button?
  • Where are people getting stuck?
  • Are visitors finding the information they're looking for?
  • Is a particular form confusing?
  • What happens immediately before visitors leave?
  • Can we reproduce a UX problem reported by a customer?

Why use Session Replays?

Consider an ecommerce product page that gets plenty of traffic but produces relatively few purchases.

Traditional analytics might show:

Product page → lots of visitors → few purchases

That's useful, but it doesn't necessarily explain what's going wrong.

A replay might reveal visitors repeatedly interacting with an element they expect to be clickable, struggling to find product information, or abandoning the page after encountering a confusing part of the interface.

The replay doesn't automatically tell you why someone behaved that way, but it gives you real behavioral evidence that can help you form and test a hypothesis.

For developers

Replays can be particularly useful when investigating unexpected behavior.

Instead of relying entirely on a bug report such as "the checkout page doesn't work," you can examine real sessions and see what happened before the visitor abandoned the process.

They're also useful for identifying confusing interactions and reproducing UX problems that are difficult to recreate in a development environment.

For small businesses

You don't need a large analytics team to benefit from session recordings.

If your website generates leads, inquiries, bookings, or sales, replays can help you understand whether visitors are finding important information and whether your calls to action are working as intended.

For bloggers

Analytics can tell you which articles attract visitors. Replays can provide additional insight into how those visitors interact with the content.

You can see scrolling behavior, navigation, and interactions with page elements, helping you understand how readers actually use your site.

For Shopify store owners

For an online store, seemingly small usability problems can affect conversions.

Replays can help you investigate the journey through your storefront, including how visitors interact with product pages, navigation, and other parts of the shopping experience.

How Replays work in Umami

There are two important parts to enabling Replays:

  1. Enable Replays for the website in Umami.
  2. Update your tracker script to opt in to replay collection.

Simply enabling the feature in the Umami dashboard isn't enough. Your website also needs the replay recorder script.

Once enabled, only new sessions are recorded. Umami does not backfill existing session history.

Umami stores session replays for 30 days.

How to enable Replays

Enabling Replays takes just a few steps.

Step 1: Open your website settings

Log into Umami and select Websites from the sidebar.

Find the website for which you want to enable Replays and click Edit.

Step 2: Open Replays & Heatmaps

In the website settings, navigate to the Replays & Heatmaps section.

Turn on the Replays toggle.

You'll also find several options that control how recordings are collected.

Step 3: Configure your recording settings

Umami provides four Replay options.

Sample Rate

Sample Rate controls what fraction of sessions will be recorded.

The value ranges from 0 to 1.

For example:

  • 1 = record 100% of sessions
  • 0.5 = record 50% of sessions
  • 0.15 = record 15% of sessions

The default is 0.15, meaning Umami records approximately 15% of sessions.

Sampling can be useful when you don't need to record every session and want a representative selection of visitor behavior.

Mask Level

Mask Level controls how much information is hidden in replays for privacy.

Umami provides two levels:

  • Moderate — masks all input fields.
  • Strict — masks all inputs and all text on the page.

The default is moderate.

This setting is particularly important for websites that collect information through forms. Before enabling Replays, consider what information could appear on your pages and choose an appropriate masking level for your use case.

Max Duration

Max Duration sets the maximum length of a recording in milliseconds.

The default is:

300000

That's 5 minutes.

Once the maximum duration is reached, recording stops automatically.

Block Selector

Block Selector lets you specify a CSS selector for elements that should be completely excluded from recording.

For example:

.sensitive-widget

You can use this when there is a particular component on your website that you don't want included in recordings.

If you have sensitive or private areas on a page, consider whether they should be excluded using an appropriate selector in addition to the masking settings.

Step 4: Update your website's tracker

After enabling Replays in Umami, you also need to update your website to opt in to replay collection.

The replay recorder uses recorder.js.

A basic installation looks like this:

<script
  defer
  src="https://your-umami-domain.example/recorder.js"
  data-website-id="YOUR-WEBSITE-ID"
></script>

Replace the example URL with the URL of your Umami installation and use the website ID for the website you're tracking.

Your existing Umami analytics tracking script and the replay recorder serve different purposes: the recorder script is what opts the website into Replay collection.

If you're using Umami Cloud or a self-hosted installation, use the appropriate script URL for your environment.

Step 5: Test your setup

Once you've enabled Replays and added the recorder script, visit your website in a new session.

Interact with the site as a normal visitor would. Click links, scroll through pages, navigate between pages, and interact with forms.

Then return to Umami and check the Replays screen.

Remember that only sessions that start after Replays have been enabled will be recorded. Existing sessions aren't retroactively converted into replays.

How to access your Replays

There are two ways to access session recordings in Umami.

From the Replays screen

Open the Replays screen to browse available recordings.

You can select a replay and click the play button to open it in the replay player.

From a session profile

You can also access a replay through a visitor session profile.

Open the session and navigate to its Replays tab.

This can be particularly useful when you've already identified an interesting session through your normal analytics and want to see what the visitor actually did.

Using the Replay player

When you open a replay, Umami provides a player that recreates the visitor's session.

You can see things such as:

Mouse movement and clicks

See where visitors move their mouse and what they click.

Scrolling

See how visitors move through the page and which sections they reach.

Navigation

Follow the visitor as they move between pages.

Form interactions

See interactions with forms while inputs remain masked according to the configured privacy settings.

This combination can provide considerably more context than a simple pageview report.

Saving important Replays

You don't have to keep searching for particularly useful recordings.

Umami lets you save individual Replays for quick access later.

When viewing a replay, click Save in the player toolbar and give the replay a name.

Saved replays are flagged and become available in the Saved tab.

This is useful for keeping examples of:

  • Interesting user journeys
  • Reproducible UX problems
  • Important conversion journeys
  • Unusual visitor behavior
  • Sessions that demonstrate a design problem
  • Before-and-after examples when testing a redesign

Think of saved replays as a small library of behavioral evidence you can return to.

What should you look for?

It's tempting to open Session Replays and randomly watch recordings.

That can be interesting—but it isn't necessarily the most effective way to use them.

Start with a question.

Why aren't visitors completing our signup form?

Then look for sessions that can help you investigate that question.

Look for hesitation

Do visitors repeatedly move around the same section without taking an action?

That might suggest the next step isn't obvious or that the content isn't communicating what you intended.

Look for unexpected clicks

Do visitors repeatedly click something that isn't actually interactive?

That could indicate that the design makes an element look clickable when it isn't.

Look for dead ends

A visitor might reach an important page and then leave.

Look at what happened immediately before they left. Was the next step unclear? Did they encounter an unexpected interaction? Was important information difficult to find?

Look for unexpected navigation

Visitors don't always follow the journey you designed.

That's useful information.

Your site's navigation might make perfect sense to you while visitors use it in a completely different way.

A practical workflow for using Replays

You don't need an elaborate analytics process.

A simple five-step workflow works well:

1. Identify a problem

Use your normal Umami analytics to find a page, event, or conversion that isn't performing as expected.

2. Watch relevant sessions

Open Replays associated with that part of the visitor journey.

3. Find a pattern

Don't redesign your website because of one unusual visitor.

Look for behavior that occurs repeatedly across multiple sessions.

4. Make an improvement

Based on what you've observed, change the relevant part of the experience.

That might mean improving copy, changing a call to action, simplifying navigation, or fixing a confusing interaction.

5. Measure the result

Return to your normal Umami analytics and see whether the change affected the metric you're trying to improve.

Then repeat the process.

Analytics → Replay → Hypothesis → Change → Measurement

That's where Session Replays become genuinely useful.

Privacy matters

Session recordings contain behavioral information about real visitors, so privacy should be considered before enabling the feature.

Umami provides masking controls specifically for this purpose.

At the default moderate masking level, input fields are masked. The strict setting goes further by masking all inputs and all text on the page.

You can also use Block Selector to completely exclude particular elements from recording.

Think carefully about pages and components that could contain sensitive information, including:

  • Passwords
  • Payment information
  • Personal information
  • Private messages
  • Other sensitive user-provided data

Your privacy obligations will depend on your website, visitors, and jurisdiction. Make sure your use of behavioral analytics is consistent with the privacy and consent requirements that apply to your site.

Replays aren't a replacement for user research

A replay shows you what someone did. It doesn't necessarily tell you what they were thinking.

For example, if a visitor scrolls up and down several times, you can form a hypothesis about why—but you shouldn't assume you know the answer.

The strongest insights usually come from combining different sources:

Analytics tell you what is happening.

Session Replays show you how it's happening.

User feedback and testing can help explain why.

Together, they give you a much stronger foundation for making website improvements.

A quick checklist

Ready to try Umami Replays?

Use this checklist:

  • Open Websites in Umami.
  • Click Edit for your website.
  • Open Replays & Heatmaps.
  • Enable Replays.
  • Choose an appropriate Sample Rate.
  • Review your Mask Level.
  • Set Max Duration if the default isn't appropriate.
  • Add a Block Selector for any elements that should be completely excluded.
  • Add the recorder.js script to your website.
  • Start a new session and test the site.
  • Open the Replays screen in Umami.
  • Save useful recordings for future reference.

Final thoughts

Traditional analytics answer questions such as how many people visited, which pages they viewed, and which events they triggered.

Session Replays add another important dimension:

What did visitors actually do?

For developers, that can mean a faster way to investigate UX problems. For small business owners, it can reveal friction in the customer journey. For bloggers, it can provide insight into how readers interact with content. And for Shopify store owners, it can help uncover problems in the storefront experience.

The key is to use Replays as an investigation tool rather than simply watching recordings for entertainment.

Start with a question. Find relevant sessions. Look for patterns. Make a change. Then measure the result.

With that approach, Umami Session Replays become more than recordings of website visits—they become a practical source of evidence for building a better website.

Related reading

Session Replays help you see how visitors behave. To visualize where visitors interact on a page, check out our guide to Umami Heatmaps: See How Visitors Really Use Your Website.