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.

GitHub
freshlytics logo

Self-host freshlytics

1.1.0

Privacy-friendly self-hosted web analytics

ReleaseOpen SourceMIT
Updated6 years ago
LanguageTypescript
Setup difficultyModerate
Stars
362
CPU
1 CPU core
RAM
1GB RAM
Port
3001 (HTTP web interface)
Requires
PipelineDB (PostgreSQL 11)
Docker
freshlytics/freshlytics
Install with Docker Compose
Freshlytics dashboard home view

What is freshlytics?

Freshlytics is a self-hosted privacy-friendly web analytics service. It tracks pageviews, referrers, browsers, and browser versions without using cookies or collecting personally identifiable information. It supports multiple projects with different reporting timezones, has an admin/user role system, and provides a dashboard with date range filtering and dimension switching. It runs via Docker Compose with a PipelineDB (PostgreSQL) backend.

Should you self-host freshlytics?

freshlytics scores 45/100 on selfhost.directory (how scoring works) and ranks #18 of 27 in Analytics. It has 362 GitHub stars.

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

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is PostHog (81/100, 40 492 stars). It scores higher overall, so compare the two before you pick. See freshlytics vs PostHog side by side.

Features

  • Dashboard with date range filtering
  • Multi-project support
  • Pageview tracking
  • Privacy-friendly tracking
  • Role-based Access Control

freshlytics README

How to install freshlytics

Install freshlytics with Docker Compose

docker, docker-compose
Environment variables
DATABASE_URL, NODE_ENV
  • Install docker and docker-compose
  • Create the docker-compose.yml as shown below
  • Run the following commands
$ docker-compose -f docker-compose.yml up
$ docker-compose run freshlytics npm run migrate
$ docker-compose run freshlytics npm run seed

Requires PipelineDB (PostgreSQL 11) as a separate service

How to configure freshlytics

  • DATABASE_URLPostgreSQL connection string for PipelineDB

    PostgreSQL connection string for PipelineDB

  • NODE_ENVproductionNode.js environment mode

    Node.js environment mode

    values: production, development

More in Analytics

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…