Files
wiki/Catalogue-Self-Hosted/apps/app-posthog.md
T
2026-06-09 18:40:21 +02:00

117 lines
3.5 KiB
Markdown

---
title: PostHog
created: 2026-06-08
updated: 2026-06-08
type: app
tags: [catalogue, marketing, analytics, product-analytics, app-marathon3-rattrapage-a]
confidence: high
contested: false
sources: [https://selfh.st/apps/?tag=Analytics, https://posthog.com/]
---
# 🦔 PostHog
> **Suite produit tout-en-un** : analytics, session replay, feature flags, A/B tests, heatmaps, surveys et CDP — l'alternative open source à Amplitude/Mixpanel/Hotjar.
## 📋 Informations Générales
| Champ | Valeur |
| :--- | :--- |
| **Site web** | [posthog.com](https://posthog.com) |
| **GitHub** | [PostHog/posthog](https://github.com/PostHog/posthog) |
| **License** | MIT |
| **Langage** | TypeScript + Python |
| **Étoiles GitHub** | 25k ⭐ |
| **Catégorie** | [[cat-marketing|Marketing]] |
## 📝 Description
**PostHog** est né en 2020 à Londres pour remplacer la stack analytics/Amplitude/Hotjar par un outil unique, open source et self-hostable.
Fonctionnalités phares :
-**Product analytics** : événements, funnels, retention, tendances
-**Session replay** : relecture vidéo des sessions utilisateur
-**Feature flags** : rollout progressif et A/B testing
-**Heatmaps** : clics, scrolls, rage clicks
-**Surveys** : questionnaires in-app
-**Experiments** : tests statistiques (bayésiens)
-**CDP** : ingestion multi-sources vers warehouse
-**Self-hostable OU Cloud** managé
**Différence vs Amplitude/Mixpanel** : PostHog combine 6 outils en un et reste gratuit en self-hosted (jusqu'à 1M événements/mois gratuit sur le cloud).
**Pour qui** : équipes produit, growth et dev qui veulent comprendre l'usage sans dépendre de 5 SaaS différents.
## 🚀 Installation
### Docker Compose (recommandé)
```yaml
version: '3.8'
services:
posthog:
image: posthog/posthog:latest
container_name: posthog
restart: unless-stopped
environment:
- DATABASE_URL=postgres://posthog:posthog@db:5432/posthog
- REDIS_URL=redis://redis:6379
- SECRET_KEY=changeme
- SITE_URL=https://posthog.example.com
labels:
- "traefik.enable=true"
- "traefik.http.routers.posthog.rule=Host(`posthog.example.com`)"
- "traefik.http.routers.posthog.tls.certresolver=letsencrypt"
depends_on:
- db
- redis
db:
image: postgres:15-alpine
container_name: posthog-db
restart: unless-stopped
environment:
- POSTGRES_USER=posthog
- POSTGRES_PASSWORD=posthog
- POSTGRES_DB=posthog
volumes:
- posthog_db:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: posthog-redis
restart: unless-stopped
volumes:
posthog_db:
```
## 🔄 Alternatives
### Open Source
- [[app-mautic]] — orienté marketing automation
- [[app-countly]] — analytics mobile/web
- **Matomo** — analytics web centré vie privée
- **Plausible** — analytics web léger
### Propriétaires
- **Amplitude** — référence product analytics
- **Mixpanel** — événements et funnels
- **Hotjar** — heatmaps et session replay
## 🔐 Sécurité
- **SSO/SAML** : disponible en version payante pour l'enterprise
- **2FA** : support TOTP natif
- **Chiffrement au repos** : via PostgreSQL TDE
- **Audit log** : traçabilité des actions admin
## 📚 Ressources
- [Documentation](https://posthog.com/docs)
- [GitHub](https://github.com/PostHog/posthog)
- [HedgeBox — démo PostHog](https://posthog.com/demo)
## Pages Liées
- [[cat-marketing]] — Catégorie Marketing
- [[app-countly]] — Analytics alternatif
- [[recettes-docker-compose]] — Templates Docker