Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Self-host GoatCounter
updated Sep 2026prices checked · Jul 2026
We earn commissions when you shop through the links below. Full disclosure →
The smallest serious web analytics server: a single statically compiled Go binary (or the project's own Docker image) writing to a SQLite file, with PostgreSQL optional for big sites. It counts unique visits without cookies or identifiers, tracks referrers, campaigns, browsers, locations and screen sizes, and offers a JavaScript-free tracking pixel, a backend API, and log-file import. Its own README says it doesn't need a GDPR notice. Licensed EUPL-1.2; the same author runs a free hosted service.
Pick GoatCounter when the whole point is to run as little as possible: one Go binary or one container, a SQLite file, no cookies, no consent banner by its own account, and a JavaScript-free tracking pixel for readers with scripts off. It counts visits, referrers, campaigns, browsers, locations and screen sizes, plus named events — and stops there. Want funnels, retention, event properties or a team dashboard? Umami is the next step up; Rybbit and OpenPanel are two more.
What you need
Any VPS with at least 256 MB of RAM
A domain you control — most self-hosted setups need HTTPS in front of them
Paid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# GoatCounter — the project's Docker Hub image; one container, SQLite in a named volume, nothing else to rundocker run -d --name goatcounter --restart unless-stopped -p 8080:8080 -v goatcounter-data:/home/goatcounter/goatcounter-data arp242/goatcounter# → http://SERVER_IP:8080 (the first visit runs the site-creation wizard)# or create the first site from the CLI instead (it asks for a password):docker exec -it goatcounter goatcounter db create site -vhost=stats.example.com -user.email=me@example.com
GoatCounter is deliberately small, and that is where its limits come from:
non-negotiableIt does not have the feature ladder the rest of this hub competes on — no funnels, retention, session replay or user journeys, and its events carry a name and a title, not arbitrary properties. Its README positions it for people "confused by the myriad of options" in Google Analytics and Matomo; take that at face value.
non-negotiableThe license is EUPL-1.2 with a modified "Compatible Licenses" appendix (the LICENSE file says it is otherwise identical). It is a free-software license, but a less familiar one than MIT or AGPL, so check it if your organisation vets licenses.
non-negotiableSQLite is the default and, per the README, works well for smaller sites; the bottleneck is how many distinct pages you track, not how many pageviews. Switch to PostgreSQL for large, sprawling sites.
non-negotiableThe project publishes no RAM minimum. The 256 MB on our page is our estimate for a static Go binary plus SQLite, not a documented figure.