110 lines
3.2 KiB
Markdown
110 lines
3.2 KiB
Markdown
---
|
|
title: PoeticMetric
|
|
created: 2026-06-07
|
|
updated: 2026-06-07
|
|
type: app
|
|
tags: [catalogue, web-analytics, python, privacy]
|
|
confidence: medium
|
|
contested: false
|
|
sources: [https://selfh.st/apps/?tag=web-analytics]
|
|
---
|
|
|
|
# PoeticMetric 📜
|
|
> Analytics web privacy-first en Python (Django) avec un mode SaaS officiel ET une version self-hostable, pour mesurer l'audience de sites sans cookies.
|
|
|
|
| Métadonnée | Valeur |
|
|
| :--- | :--- |
|
|
| **Site web** | https://poeticmetric.com |
|
|
| **GitHub** | https://github.com/thomaspoisson/poeticmetric |
|
|
| **License** | AGPL-3.0 |
|
|
| **Langage** | Python (Django) |
|
|
| **Étoiles** | 16 |
|
|
| **Dernière MAJ** | 2024 |
|
|
| **Catégorie** | [[cat-web-analytics]] |
|
|
|
|
## Description
|
|
|
|
PoeticMetric est né d'un service SaaS (poeticmetric.com) et propose depuis quelques années une version open source self-hostable sous AGPL. L'application suit l'approche habituelle des analytics éthiques : pas de cookie, pas de tracking inter-site, IP anonymisée, conformité RGPD native.
|
|
|
|
Le back-end Django expose un dashboard complet avec sessions uniques, pages vues, sources, technologies (navigateurs, OS), géolocalisation par pays, et même des événements custom. Le front-end client est un script JS léger similaire à Plausible.
|
|
|
|
Le déploiement self-hosted demande un stack Django classique (Gunicorn + Postgres + Nginx), ce qui peut être un peu plus lourd que Plausible ou Umami, mais l'app est solide et bien maintenue.
|
|
|
|
## Installation
|
|
|
|
### Option 1 : Docker Compose (recommandé)
|
|
|
|
```yaml
|
|
version: '3.8'
|
|
services:
|
|
poeticmetric:
|
|
image: ghcr.io/thomaspoisson/poeticmetric:latest
|
|
container_name: poeticmetric
|
|
ports:
|
|
- "8090:8000"
|
|
environment:
|
|
- DJANGO_SECRET_KEY=*** - DJANGO_ALLOWED_HOSTS=analytics.example.com
|
|
- DATABASE_URL=postgres://pm:***@db:5432/poeticmetric
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: poeticmetric-db
|
|
environment:
|
|
- POSTGRES_DB=poeticmetric
|
|
- POSTGRES_USER=pm
|
|
- POSTGRES_PASSWORD=*** volumes:
|
|
- ./dbdata:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
```
|
|
|
|
### Option 2 : Installation manuelle
|
|
|
|
```bash
|
|
git clone https://github.com/thomaspoisson/poeticmetric.git
|
|
cd poeticmetric
|
|
pip install -r requirements.txt
|
|
python manage.py migrate
|
|
gunicorn poeticmetric.wsgi -b 0.0.0.0:8000
|
|
```
|
|
|
|
## Configuration
|
|
|
|
- Configurer les sites à tracker depuis l'UI admin Django.
|
|
- Ajouter le script JS sur chaque site.
|
|
- Activer les événements custom via `data-attributes` HTML.
|
|
|
|
## Alternatives
|
|
|
|
### Open Source
|
|
- [[app-plausible]] — référence
|
|
- [[app-umami]] — équivalent Node
|
|
- [[app-matomo]] — PHP complet
|
|
- [[app-medama]] — Go minimaliste
|
|
- [[app-ackee]] — Node minimal
|
|
|
|
### Propriétaires
|
|
- Google Analytics
|
|
- Fathom Analytics
|
|
- Simple Analytics
|
|
|
|
## Sécurité
|
|
|
|
- HTTPS obligatoire.
|
|
- `DJANGO_SECRET_KEY` long et aléatoire.
|
|
- Sauvegardes Postgres automatisées.
|
|
- Garder Django à jour (releases de sécurité fréquentes).
|
|
|
|
## Ressources
|
|
- [Dépôt GitHub](https://github.com/thomaspoisson/poeticmetric)
|
|
- [Site officiel](https://poeticmetric.com)
|
|
|
|
## Pages Liées
|
|
- [[cat-web-analytics]]
|
|
- [[recettes-docker-compose]]
|
|
- [[securisation-home-lab]]
|