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.

fathom logo

Self-host fathom

v1.3.1

Open-source website analytics you run on your own server

ReleaseOpen SourceMIT
docker run -d -p 8080:8080 usefathom/fathom:latest
Updated3 years ago
LanguageGo
Setup difficultyEasy
Stars
8 035
Port
8080 (HTTP address the Fathom web server and dashboard listen on (FATHOM_SERVER_ADDR default `:8080`))
Docker
usefathom/fathom
Fathom Lite dashboard showing a tracked site's analytics

What is fathom?

Fathom Lite is the original open-source edition of the Fathom analytics product: a web-analytics server written in Go with a Preact front end, for site owners who want to count visits on their own hardware. You add a site in the dashboard, paste the tracking snippet it shows into the pages you want measured, and then open the dashboard on whatever address the server binds to (port 8080 by default). Records go into a SQLite file sitting in the working directory unless you point Fathom at MySQL or PostgreSQL with the FATHOM_DATABASE_* settings, and the first admin login is created from the command line with fathom user add rather than a signup form. The official install guide walks through the release tarball, the published Docker image, an NGINX proxy block, a systemd unit for boot, and a Let's Encrypt certificate via Certbot. The project is in maintenance mode: the team adds no new features, so Lite keeps its older interface and cookie-based tracking, and it has none of the API access, custom events, ecommerce data, email reports or CSV export that the paid hosted service offers.

fathom alternatives

All self-hosted alternatives to Google Analytics →

Should you self-host fathom?

fathom scores 62/100 on selfhost.directory (how scoring works) and ranks #9 of 22 in Web analytics. It has 8 035 GitHub stars, +14 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

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

Its closest alternative on selfhost.directory is Plausible Analytics (79/100, 29 844 stars). It scores higher overall, so compare the two before you pick. See fathom vs Plausible Analytics side by side.

Features

  • Command-line setup and user management
  • Cookie-based visitor trackingREADME lists "Cookie-free (no analytics banner)" as unavailable in Lite.
  • Gzip HTTP compression
  • Health check endpoint
  • Maintenance-only status
  • Privacy-focused pageview tracking
  • Tracking snippet per site
  • Website analytics dashboard

fathom README

Fathom Lite - simple website analytics

Go Report Card MIT licensed

Fathom Lite is a previous and open-source version of Fathom Analytics (a paid, hosted Google Analytics alternative). It was the very first version of our software, and has been downloaded millions of times!

How to install fathom

Install fathom with Docker

Environment variables
FATHOM_SERVER_ADDR, FATHOM_GZIP, FATHOM_DEBUG, FATHOM_DATABASE_DRIVER, FATHOM_DATABASE_NAME, FATHOM_DATABASE_USER, FATHOM_DATABASE_PASSWORD, FATHOM_DATABASE_HOST, FATHOM_SECRET

To run our pre-built Docker image, run docker run -d -p 8080:8080 usefathom/fathom:latest

The image exposes 8080; a repo Dockerfile lets you build the image locally with `docker build -t fathom .`.

How to configure fathom

  • FATHOM_SERVER_ADDR:8080The server address to listen on
  • FATHOM_GZIPfalseif `true` will HTTP content gzipped
  • FATHOM_DEBUGfalseIf `true` will write more log messages.
  • FATHOM_DATABASE_DRIVERsqlite3The database driver to use: `mysql`, `postgres` or `sqlite3`
  • FATHOM_DATABASE_NAMEThe name of the database to connect to (or path to database file if using sqlite3)

fathom releases & version history

@ Every self-hosted release, weekly

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

More in Web analytics

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…