# \[Umami\] Website analytics

**URL:** https://forum.yunohost.org/t/umami-website-analytics/20133
**Category:** Apps
**Tags:** umami, french
**Created:** [June 17, 2022, 5:03pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133 "2022-06-17T17:03:27Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![ericg](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ericg/32/1543_2.png) [@ericg](https://forum.yunohost.org/u/ericg)
#### Post date: [June 17, 2022, 5:03pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/1 "2022-06-17T17:03:27Z")

</div>

# Umami for YunoHost

[![Integration level](https://dash.yunohost.org/integration/umami.svg)](https://dash.yunohost.org/appci/app/umami) ![Working status](https://ci-apps.yunohost.org/ci/badges/umami.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/umami.maintain.svg)  
[![Install Umami with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=umami)

## Overview

Umami is a simple, easy to use, self-hosted web analytics solution. The goal is to provide you with a friendlier, privacy-focused alternative to Google Analytics and a free, open-sourced alternative to paid solutions. Umami collects only the metrics you care about and everything fits on a single page.

**Shipped version:** 1.32.1~ynh1

**Demo:** [https://app.umami.is/share/8rmHaheU/umami.is](https://app.umami.is/share/8rmHaheU/umami.is)

## Screenshots

![Screenshot of Umami](https://raw.githubusercontent.com/YunoHost-Apps/umami_ynh/master/doc/screenshots/dark.gif)

## Documentation and resources

- Upstream app code repository: [https://github.com/YunoHost-Apps/umami\_ynh](https://github.com/YunoHost-Apps/umami_ynh)
- Official app website: [https://umami.is/](https://umami.is/)
- Official admin documentation: [https://umami.is/docs/about](https://umami.is/docs/about)
- Upstream app code repository: [https://github.com/mikecao/umami](https://github.com/mikecao/umami)

---

<div class="post-metadata">

### Author: ![Kit](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kit/32/1208_2.png) [@Kit](https://forum.yunohost.org/u/Kit)
#### Post date: [June 18, 2022, 10:21am UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/2 "2022-06-18T10:21:50Z")

</div>

Drapal, ça semble interessant.

---

<div class="post-metadata">

### Author: ![arnauld](https://forum.yunohost.org/user_avatar/forum.yunohost.org/arnauld/32/12085_2.png) [@arnauld](https://forum.yunohost.org/u/arnauld)
#### Post date: [August 19, 2022, 11:02pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/5 "2022-08-19T23:02:21Z")

</div>

Hi,

What does “should this installation be exposed to anonymous visitors” mean for the installation of Umami?

Thank you.

---

<div class="post-metadata">

### Author: ![mib](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mib/32/1384_2.png) [@mib](https://forum.yunohost.org/u/mib)
#### Post date: [August 20, 2022, 9:16am UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/6 "2022-08-20T09:16:37Z")

</div>

Bonjour @tous,

Je n’ai vraiment pu tester l’application car l’installation se déroule bien sans aucune erreur.

Mais une fois logué impossible de changer le mot passe de l’admin.  
Je me fais insulter avec un **401 Unauthorized** de plus seul l’onglet Profile est paramétrable les deux sont vides.

---

<div class="post-metadata">

### Author: ![YoMo](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yomo/32/3161_2.png) [@YoMo](https://forum.yunohost.org/u/YoMo)
#### Post date: [February 7, 2023, 4:12am UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/7 "2023-02-07T04:12:14Z")

</div>

Getting a `401 Unauthorized` when trying to change the default password.

Also doesn’t seem like I’m even able to add a new website or do anything after installation.

---

<div class="post-metadata">

### Author: ![ericg](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ericg/32/1543_2.png) [@ericg](https://forum.yunohost.org/u/ericg)
#### Post date: [April 26, 2023, 1:45pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/8 "2023-04-26T13:45:15Z")

</div>

New release 🎉

- [26 April 2023 - #4](https://github.com/YunoHost-Apps/umami_ynh/pull/4)
  - Upgrade to Umami [v2.2.0](https://github.com/umami-software/umami/releases/tag/v2.2.0)
  - Fix access to `/api` path (leading to `401 Unauthorized`)

PS. Umami had a number of breaking changes from v1 to v2, it is advised to do a clean install.

---

<div class="post-metadata">

### Author: ![mib](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mib/32/1384_2.png) [@mib](https://forum.yunohost.org/u/mib)
#### Post date: [April 27, 2023, 10:44am UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/9 "2023-04-27T10:44:13Z")

</div>

Bonjour la communauté,

Je teste en ce moment umami.  
Pour l’installation et le paramétrage aucun soucis avec cette version 2.2.0~ynh1,  
mais j’ai une question.

Par contre, où placer le code de suivi du site à surveiller ?  
S’il est placé dans la config nginx, le système nous insultera avec un :  
Le fichier de configuration nginx semble avoir été modifié manuellement.

Je pense qu’il faut créer un fichier hooks dans /etc/yunohost/hooks.d/conf\_regen.

Si vous avez une solution sur comment mettre ça en place, je suis preneur.

Merci à vous.

---

<div class="post-metadata">

### Author: ![mib](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mib/32/1384_2.png) [@mib](https://forum.yunohost.org/u/mib)
#### Post date: [April 27, 2023, 2:36pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/10 "2023-04-27T14:36:18Z")

</div>

Après quelques essais, je suis arrivé à ce résultat :

```auto
nano /etc/yunohost/hooks.d/conf_regen/20-nginx_yunohost

```

Avec comme contenu :

```auto
#!/bin/bash
action=$1
pending_dir=$4
nginx_dir=$pending_dir/../nginx/etc/nginx
nginx_yunohost_conf=$nginx_dir/conf.d/domain.conf
[[$action == "pre"]] || exit 0
[[-d $nginx_dir]] || exit 0
[[-e $nginx_yunohost_conf]] || exit 0
echo "
sub_filter '</body>' '<script async src="https://umami.domain.tld/script.js" data-website-id="aaaaa-bbbbb-ccccc-ddddd-eeeee"></script>';" >> $nginx_yunohost_conf

```

---

<div class="post-metadata">

### Author: ![carrabelloy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/carrabelloy/32/3409_2.png) [@carrabelloy](https://forum.yunohost.org/u/carrabelloy)
#### Post date: [April 29, 2023, 1:00pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/11 "2023-04-29T13:00:43Z")

</div>

Thanks for the tip. Maybe now I still get the rest of DNS neatly and my email inboxes

Danke für den Tipp. Vielleicht bekomme ich jetzt noch den Rest an DNS ordentlich hin und meine E-Mail-Postfächer

---

<div class="post-metadata">

### Author: ![maruey](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@maruey](https://forum.yunohost.org/u/maruey)
#### Post date: [September 1, 2024, 6:04pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/12 "2024-09-01T18:04:00Z")

</div>

Hello !

Est-ce que quelqu’un a réussi à installer le code de suivi via un hook, récemment? J’ai tenté d’utiliser le script de @mib, sans succès. J’en ai profité pour apprendre plein de trucs sur les hooks (notamment grâce à [ce thread de metyun](https://forum.yunohost.org/t/share-your-hooks-to-apply-custom-configurations-partagez-vos-hooks-pour-appliquer-des-configurations-personnelles/17235)) mais je n’ai pas réussi par ce biais-là.

Finalement, pour info j’ai bêtement côté le code de suivi dans le head de `/usr/share/ssowat/portal/header.ms`.

---

<div class="post-metadata">

### Author: ![Obelix](https://forum.yunohost.org/user_avatar/forum.yunohost.org/obelix/32/2754_2.png) [@Obelix](https://forum.yunohost.org/u/Obelix)
#### Post date: [January 29, 2025, 6:44am UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/14 "2025-01-29T06:44:26Z")

</div>

La solution des Hooks me paraissait tout à fait élégante, toucher le header.ms doit obliger à le modifier suite à chaque mise à jour ?

En fait les hooks fonctionnent toujours, il faut ajouter dans le répertoire /etc/yunohost/hooks.d/ le répertoire conf\_regen et intégrer ce que propose mib.

---

<div class="post-metadata">

### Author: ![orhtej2](https://forum.yunohost.org/user_avatar/forum.yunohost.org/orhtej2/32/8943_2.png) [@orhtej2](https://forum.yunohost.org/u/orhtej2)
#### Post date: [December 10, 2025, 10:32am UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/15 "2025-12-10T10:32:23Z")

</div>

Given recent NextJS CVE Umami released security releases.

For these willing to give 3.x a shot - upgrade the normal way (via web admin or with `yunohost app upgrade umami`)

For these having issues or willing to forgo the latest and greatest in website analytics - I’ve prepared a release available via cli with `yunohost app upgrade umami -u https://github.com/YunoHost-Apps/umami_ynh/tree/2.x` (Umami 2.20.1 with the vulnerability patched out)

---

<div class="post-metadata">

### Author: ![dosch](https://forum.yunohost.org/user_avatar/forum.yunohost.org/dosch/32/368_2.png) [@dosch](https://forum.yunohost.org/u/dosch)
#### Post date: [January 13, 2026, 3:44pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/16 "2026-01-13T15:44:18Z")

</div>

does umami require a unique subdomain? Or can it be installed in a directory on the main domain?

I don’t see the option to select a subdirectory on the installation page

---

<div class="post-metadata">

### Author: ![orhtej2](https://forum.yunohost.org/user_avatar/forum.yunohost.org/orhtej2/32/8943_2.png) [@orhtej2](https://forum.yunohost.org/u/orhtej2)
#### Post date: [January 13, 2026, 6:06pm UTC](https://forum.yunohost.org/t/umami-website-analytics/20133/17 "2026-01-13T18:06:27Z")

</div>

It requires a full domain.
