Guide · Tools & workflows
Rybbit: Self-Hosted Google Analytics Alternative, Tested
We self-hosted Rybbit with its official setup and sent the same 200 visits to Rybbit, Umami and Plausible. Pageviews matched; visitor counts and bot filtering did not. Step-by-step setup, the two defaults to change, and how it compares with GA4.
Owen Prestwick · Dec 5, 2026 · 8 min read
On this page

Rybbit is an open-source, cookieless analytics tool that you can run on your own server with one setup script. We ran its official self-hosting path end to end, next to Umami and Plausible Community Edition, and sent the same 200 test visits to all three. The install works as documented, but two of its defaults need changing before real visitors arrive.
This guide covers what Rybbit gives you compared with Google Analytics 4 (GA4) and the other self-hosted tools, the exact setup steps we tested, and the settings to change. Live GitHub details (stars, licence, latest release, last commit) are on our Rybbit profile, which updates automatically; this article does not repeat numbers that go out of date.
What Rybbit is, and what it replaces
Rybbit tracks the usual web metrics (users, sessions, pageviews, bounce rate, session duration, referrers, UTM campaigns, pages, countries) and adds product-analytics views that the lighter self-hosted tools leave out: per-session timelines, user journeys, funnels, goals, retention, custom events with JSON properties, error tracking and session replay. Its script sets no cookies. The code is on GitHub under the AGPL-3.0 licence, and the same company sells a hosted version.

The self-hosted edition is not the whole cloud product. Rybbit’s own self-hosted vs cloud page lists what self-hosted installs do not get: Web Vitals, email reports, the Google Search Console integration, the bots page, custom SQL dashboards, Google and GitHub sign-in, and all email, including invitations and password resets. Session replay, funnels, journeys, retention, error tracking and organizations are included.
Rybbit vs GA4 vs Umami vs Plausible
Scroll the table horizontally on smaller screens.
| Detail | Rybbit | Umami | Plausible CE | Google Analytics 4 |
|---|---|---|---|---|
| Licence | AGPL-3.0 | MIT | AGPL-3.0 | Proprietary |
| Self-host | Yes (Docker Compose) | Yes (Docker or Node.js) | Yes (Docker Compose) | No, hosted by Google |
| Cookies | None | None | None | Sets _ga and _ga_<container-id>, 2-year expiry by default |
| Containers in our test | 6 | 2 | 3 | — |
| Idle RAM in our test | About 1.3 GB | About 0.24 GB | About 0.75 GB | — |
| Disk for images | About 4.5 GB | About 1.8 GB | About 1.4 GB | — |
| Session-level detail and replay | Yes | Replays and journeys listed in its menu | No | No replay |
| Import history from | Umami, Plausible, Simple Analytics | Not checked | Not checked | — |
Two rows deserve a note. Rybbit is the heaviest of the three by a wide margin, so it is not the pick for a 1 GB server. And the “import history” row matters if you are leaving GA4: Rybbit cannot import Google Analytics data, so your GA4 history stays in GA4.
Same 200 visits in three dashboards
To compare like with like, we built a five-page demo shop, loaded the Rybbit, Umami and Plausible scripts on every page, and drove 200 scripted browser visits through it with different devices, languages, referrers, campaign tags and a “Start trial” button that fired the same custom event in each tool.

- Pageviews matched: 271 in Rybbit and Plausible, 273 in Umami.
- Custom events matched: 67 “Start trial” clicks in both Rybbit and Plausible.
- Bot filtering differed: our first two visits came from an unmodified automated browser. Rybbit stored them as bot traffic and Plausible ignored them; Umami counted them as visits. That is where Umami’s extra two pageviews came from.
- Visitor counts differed a lot: 5 in Rybbit against 58 in Plausible and Umami, explained below.


Why the visitor counts differ
All 200 test visits came from one IP address. Cookieless tools identify a visitor from a hash of the IP address and the browser’s user-agent string, so the user agent was the only thing telling our visitors apart. Plausible and Umami hash the full string, so browsers that differed only in their build number counted as different people. Rybbit’s source code strips version numbers from the user agent and groups IP addresses by /24 range before hashing, so that a browser update does not turn one person into two. On our single-IP test that collapsed 200 visits into 5 visitors, one per browser family.
On a public site, visitors arrive from thousands of IP addresses and the gap shrinks. It does not disappear: people behind one office network, university or mobile carrier gateway with the same browser will count as fewer visitors in Rybbit than in Plausible or Umami. Pageviews and events are not affected. If you switch tools, compare pageviews, not unique visitors, across the cut-over.

Before you start
- A Linux server with Docker. Rybbit’s docs ask for at least 2 GB of RAM and were tested on Ubuntu 24.04 (x86_64). On ARM, the CPU must be at least ARMv8.2-A for ClickHouse.
- A domain or subdomain such as analytics.example.com, with an A record pointing at the server. Browsers block tracking scripts served over plain HTTP, so HTTPS is required; the bundled Caddy server gets the certificate for you.
- Free ports. The stack binds 80 and 443 for Caddy and, on localhost, 5432 (Postgres), 8123 (ClickHouse), 6379 (Redis), 3001 and 3002. Our first start failed because the test machine already ran Postgres on 5432; stop or move any existing service first.
- About 5 GB of free disk for the images, plus room for your event data.
Set up Rybbit, step by step
These are the steps from Rybbit’s quick start and manual Docker Compose guide, in the order we ran them, with one change: we create the .env file ourselves so the database passwords are set before the first start.
Step 1: Point your domain at the server. Add an A record for your subdomain with the server’s IPv4 address. On Cloudflare, use DNS only, or keep the proxy and set SSL/TLS to Full or Full (strict).
Step 2: Install Docker Engine from Docker’s official instructions for your distribution, then clone the repository:
git clone https://github.com/rybbit-io/rybbit.git
cd rybbitStep 3: Create the .env file with real passwords. The setup script only writes the domain and an auth secret, so the databases start with the passwords published in docker-compose.yml. Generate your own before the first start:
cat > .env <<EOF
DOMAIN_NAME=analytics.example.com
BASE_URL=https://analytics.example.com
BETTER_AUTH_SECRET=$(openssl rand -hex 32)
DISABLE_SIGNUP=false
POSTGRES_PASSWORD=$(openssl rand -hex 24)
CLICKHOUSE_PASSWORD=$(openssl rand -hex 24)
REDIS_PASSWORD=$(openssl rand -hex 24)
CLUSTER_WORKERS=1
EOF
chmod 600 .envSet the passwords now, not later. Postgres only reads its password when its data volume is first created; when we changed POSTGRES_PASSWORD on an existing install, the backend failed with “password authentication failed for user frog” and kept restarting. With the passwords set before the first start, the published default was rejected and the generated one worked.
Step 4: Start the stack with the bundled Caddy web server:
docker compose --profile with-webserver up -d
docker compose psThe first start downloads the images; after that, all six containers were healthy within about half a minute on our machine. If you would rather use the script, ./setup.sh analytics.example.com does the same with default passwords, and ./setup.sh analytics.example.com --no-webserver skips Caddy when you already run Nginx, Traefik or Coolify.
Step 5: Create the admin account at https://analytics.example.com/signup, then add your site. Rybbit shows a one-line script to paste into the head of every page:
<script src="https://analytics.example.com/api/script.js?siteId=YOUR_SITE_ID" defer></script>
Step 6: Close public signup. Once your account exists, set DISABLE_SIGNUP=true in .env and restart. After this, the sign-up API on our install answered “Email and password sign up is not enabled”.
sed -i 's/^DISABLE_SIGNUP=false/DISABLE_SIGNUP=true/' .env
./restart.shSettings to review before real visitors arrive
- Database passwords. Covered above. Change them before the first start or plan a fresh install.
- Backend workers. docker-compose.yml starts the backend with four worker processes. On our test machine that used about 1.5 GB right after start and about 780 MB at idle; CLUSTER_WORKERS=1 brought idle use to about 560 MB. Rybbit’s source code treats 0 as single-process mode. On a 2 GB server, start with 1.
- User ID salting. By default Rybbit’s visitor ID is a stable hash of the IP and browser that lasts across days, which powers the retention report. Rybbit’s documentation says this may be considered personal data under GDPR. If that matters for your site, turn on User ID Salting in the site settings: the hash then rotates daily, and retention and multi-day unique counts stop being meaningful.
- Admin password. Self-hosted Rybbit sends no email, so there is no password-reset link. Store the admin password in a password manager, and create other users from the organization settings.
- Bot traffic. Detected bots are stored separately from your analytics. The site settings include a Block Bot Traffic option if you prefer not to record them at all.
Updating, pinning and backing up
Rybbit ships ./update.sh, which runs git stash and git pull, pulls the newest images and recreates the containers. Its docs warn that the stash is not restored, so any edit you made to Caddyfile or docker-compose.yml disappears on update; keep custom settings in .env, which the script does not touch. To control when upgrades happen, pin a release in .env and update deliberately:
# .env
IMAGE_TAG=v2.10.0 # the version we tested; check the releases page for newer tags
./update.shYour data lives in three Docker volumes: clickhouse-data (events), postgres-data (accounts and settings) and redis-data (live session state). Back up at least the first two, and test a restore once; docker compose down keeps them, while docker compose down -v deletes them.
Who should self-host Rybbit
- Pick Rybbit if you want GA4-style product analytics (journeys, funnels, retention, replays, error tracking) on your own server and can give it 2 GB of RAM or more.
- Pick Umami if you want the lightest install and a simple traffic dashboard; it ran in a quarter of a gigabyte in our test. Metarix itself uses Umami.
- Pick Plausible CE for a minimal, polished traffic view with a moderate footprint.
- Stay on GA4 if you rely on Google Ads integration or need your historical GA data in the same tool, since Rybbit cannot import GA4 history.
Self-hosting moves work to you: updates, backups and disk monitoring. Rybbit’s own comparison estimates 30 to 120 minutes for a self-hosted setup against minutes for its cloud service. Our run matched the low end once the server, DNS and Docker were ready. For more self-hostable projects, browse the self-hosting topic in our Open Source hub.
What we ran
On Dec 5, 2026 Metarix ran Rybbit v2.10.0 (repository commit 333fd11, latest images), Umami 3.5.1 and Plausible Community Edition v3.2.0 with Docker on one 4-core, 16 GB Linux test machine. A local demo site loaded all three tracking scripts, and a Playwright script drove 200 browser visits (Chromium, with varied user agents, viewports, locales, referrers and UTM tags) from a single IP address; for all but the first two visits we turned off Chromium’s automation flag so the tools would not discard the test traffic as bots. Memory was read with docker stats at idle after the traffic. No public domain, real visitors or paid services were involved, and Caddy used a local certificate.
Sources
- Rybbit, GitHub repository, README, docker-compose.yml, setup.sh, update.sh and server source (visitor ID and cluster settings), commit 333fd11, read Dec 5, 2026.
- Rybbit docs: Self-hosting quick start, Manual Docker Compose setup, Self-hosted vs Cloud, Managing your installation, Site settings (User ID Salting) and Data Import, read Dec 5, 2026.
- Google, GA4 cookie usage on websites, read Dec 5, 2026.
- Umami and Plausible: licence files in umami-software/umami and plausible/analytics; the Plausible Community Edition compose setup, read Dec 5, 2026.
- Metarix test run, Dec 5, 2026, as described above.
Frequently asked questions
- Is Rybbit free to self-host?
- Yes. The code is open source under the AGPL-3.0 licence and the self-hosted edition has no usage limits; you pay only for your server. Some features, such as Web Vitals, email reports and the Google Search Console integration, are only in Rybbit’s paid cloud service.
- How much RAM does self-hosted Rybbit need?
- Rybbit’s docs recommend at least 2 GB. In our test its six containers used about 1.3 GB at idle with default settings; setting CLUSTER_WORKERS=1 reduced the backend’s share by about 220 MB.
- Can Rybbit import Google Analytics data?
- No. According to its documentation, Rybbit imports history from Umami, Plausible and Simple Analytics exports. GA4 history stays in Google Analytics.
- Is Rybbit GDPR-friendly?
- It sets no cookies, but by default it keeps a stable hashed visitor ID based on IP and browser, which Rybbit’s own documentation says may be considered personal data under GDPR. Enabling User ID Salting rotates that hash daily. Check your own legal requirements.
- Why does Rybbit show fewer visitors than Plausible or Umami?
- Rybbit ignores browser version numbers and groups IP addresses by /24 range when it builds a visitor ID, so people on the same network and browser can count as one visitor. Pageviews and events are counted the same way as in other tools.
More in Tools & workflows
Follow Metarix
Digital media intelligence hub
AI SaaS · developer workflows · architecture