selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Medama Analytics logo

Self-host Medama Analytics

v0.6.2

Cookie-free website analytics in a single binary

DiscontinuedOpen SourceApache-2.0 AND MIT
docker run -d -p 8080:8080 -v medama-data:/app/data ghcr.io/medama-io/medama:latest
Updated10 months ago
LanguageGo
Setup difficultyEasy
Stars
644
RAM
512MB of memory recommended for most small websites
Ports
8080 (Default port the analytics server listens on (web dashboard and API).), 443 (Used when automatic SSL provisioning is enabled; HTTP requests are redirected to HTTPS.), 80 (Used when automatic SSL provisioning is enabled; HTTP requests are redirected to HTTPS.)
Docker
ghcr.io/medama-io/medama
Main analytics dashboard showing website traffic statsDashboard selector for choosing which custom properties to displayFiltering events in the dashboard by custom property values

What is Medama Analytics?

Medama Analytics is an open-source web analytics tool intended to be run on your own server, tracking visitors without cookies, IP addresses or other identifiers. Its embedded JavaScript tracker is smaller than 1KB and reports page load and unload events, so dashboards show real-time visitors, page views, referrers, browsers, devices, countries, languages, bounce rate and time on page; custom properties can be attached to page views or click events and then filtered in the dashboard. The server is a single Go binary with no external database — two local database files (me_meta.db and me_analytics.db) are created on first run — and it also ships as a distroless image on GitHub Container Registry, with official guides for Docker, Docker Compose, Fly.io and Railway. Configuration is via CLI flags or environment variables, including automatic SSL provisioning and CORS settings for external dashboards, and an OpenAPI spec served at /openapi.yaml allows API integration. Login uses a built-in admin account with a session cookie. The GitHub repository is archived, and the project remained in 0.x versions with breaking API changes warned about.

Medama Analytics alternatives

Should you self-host Medama Analytics?

Medama Analytics scores 46/100 on selfhost.directory (how scoring works) and ranks #20 of 22 in Web analytics. It has 644 GitHub stars, +1 in the last 30 days.

It shipped 1 stable release in the past year. The latest, v0.6.2, came out on 18 January 2026.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0 AND MIT-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Umami (85/100, 40 159 stars). It scores higher overall, so compare the two before you pick. See Medama Analytics vs Umami side by side.

Features

  • Automatic SSL certificate provisioning
  • Cookie-free tracking (<1KB tracker)
  • Custom properties (page and click events)
  • Demo Mode
  • Hash-router SPA navigation tracking
  • Multi-website management
  • Page view tracking
  • Real-time analytics dashboard
  • REST API with OpenAPI spec
  • Server resource usage display
  • Single-binary, dependency-free deployment
  • Traffic breakdown stats

Medama Analytics README

Medama: Cookie-free privacy-focused website analytics.
Website | Installation | Demo | Discord

Overview

Medama Analytics is an open-source project dedicated to providing self-hostable, cookie-free website analytics. With a lightweight tracker of less than 1KB, it aims to offer useful analytics while prioritising user privacy.

Demo Screenshot

How to install Medama Analytics

Install Medama Analytics with Docker

Environment variables
PORT, APP_DATABASE_HOST, ANALYTICS_DATABASE_HOST, AUTO_SSL, AUTO_SSL_EMAIL, LOGGER, LEVEL, CORS_ALLOWED_ORIGINS
docker volume create medama-data
docker run -d -p 8080:8080 -v medama-data:/app/data ghcr.io/medama-io/medama:latest

Database data is stored in /app/data inside the container; use a volume or bind mount.

How to configure Medama Analytics

  • APP_DATABASE_HOST./me_meta.dbPath to app database.
  • ANALYTICS_DATABASE_HOST./me_analytics.dbPath to analytics database.
  • AUTO_SSLAutomatically provision SSL certificates to the specified domain and redirect HTTP requests to HTTPS. Requires the server to run on ports 80 and 443.
  • AUTO_SSL_EMAILEmail address to optionally send SSL certificate notifications.
  • PORT8080Port to listen on.

Medama Analytics releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Do I need root privileges to bind to ports 80 and 443?

On Linux you may lack permission to bind to ports 80 and 443; you can grant the binary that ability without root using `sudo setcap cap_net_bind_service=+ep /path/to/your/binary`.

More in Web analytics

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…