Skip to content

GoatCounter

Privacy-friendly web analytics, hosted or self-hosted, for site owners who want simple

Copyleft (OSI) · EUPL-1.2
  • Self-hosted

Listed by , founder & editor

54

Health

Slowing

Overview

Stars

6,188

Last commit

2 months ago

Sep 2026

Repository age

7 years

since May 2019

Latest version

v2.7.0

Dec 2025

Contributors

–

2 active in 90 days

Releases

1

last 12 months

Docker pulls

92k

arp242/goatcounter

Language

Go

GoatCounter is a web analytics platform that avoids unique identifiers and cookies. It identifies unique visits with a non-identifiable hash. It shows browser, location, screen size, referring sites and campaigns. The project says it does not need a GDPR notice.

You can add a single script tag to your site. Alternatives are a JavaScript-free tracking pixel, an HTTP API for backend middleware, or importing logfiles from nginx, Apache, Caddy, CloudFront and other servers. The tracking script adds about 3.5K to a page.

You can use the hosted service at goatcounter.com or run it yourself. Releases include statically compiled binaries, and a Docker image is available. Start it with goatcounter serve. It uses a SQLite file by default, or PostgreSQL for larger sites. The interface is designed to work with screen readers. It is licensed under EUPL-1.2 and positions itself as a simpler alternative to Google Analytics and Matomo.

Who it's for

Bloggers and small site owners

A single script tag gives you basic traffic stats without cookies.

Skip if: You need funnels, heatmaps or per-user tracking.

Privacy-minded teams avoiding cookie notices

It does not track users with unique identifiers.

Skip if: Your legal team requires a specific compliance setup you must verify yourself.

Admins who prefer log-based analytics

It can import logfiles from common web servers, so no script is needed.

Skip if: You want real-time event tracking inside a web app.

The problem it solves

Google Analytics and Matomo offer many options that most small sites never use, and they track visitors in ways that raise privacy questions. GoatCounter gives you basic, readable traffic stats with less data collected.

Strengths

  • No cookies or unique identifiers; visits counted with a hash
  • Tracking script adds about 3.5K to your pages
  • Imports logs from nginx, Apache, Caddy and CloudFront
  • Single static binary, SQLite by default, PostgreSQL optional
  • Hosted option plus unrestricted self-hosting

Trade-offs

  • Intentionally limited compared with Google Analytics or Matomo
  • EUPL-1.2 is a copyleft license with obligations if you modify and distribute
  • Development pace has slowed, with few recent contributors
  • SQLite is fine for smaller sites; larger ones should use PostgreSQL

GoatCounter replaces

Self-host GoatCounter

Self-hostable
Yes
Docker image
arp242/goatcounter
Docker Compose
The repository ships a Compose file

In the community

Frequently asked questions

Is GoatCounter free?

The code is open source and can be self-hosted without restrictions. A free hosted service is also offered at goatcounter.com.

Can I self-host it?

Yes. Download a static binary or use Docker, then run goatcounter serve. It listens on port 8080.

What database does it use?

SQLite by default, or PostgreSQL for larger sites.

How is it licensed?

It uses the EUPL-1.2 license.

Can I use it without JavaScript?

Yes. You can use a tracking pixel, the HTTP API, or log file import.

Other Google Analytics alternatives

Compare all 12 Google Analytics alternatives →

Similar tools in Analytics platforms

fathom

Analytics platforms

Self-hosted, single-binary website analytics for small sites, in maintenance mode

8k 388 8 months ago Dormant MIT

Umami

Analytics platforms

Cookie-free web and product analytics you can self-host, for teams leaving Google

40k 8.6k today Thriving MIT

Replaces Google Analytics

Countly Community Edition

Analytics platforms

Self-hosted product analytics with push notifications and crash reporting for app teams

5.9k 984 3 days ago Active AGPL-3.0

Ackee

Analytics platforms

Self-hosted, cookie-free website analytics for privacy-minded site owners

4.7k 385 31 days ago Slowing MIT

Matomo

Analytics platforms

Self-hosted PHP and MySQL web analytics for sites that need data ownership

22k 2.9k today Thriving GPL-3.0

Replaces Google Analytics

Shynet

Analytics platforms

Self-hosted, cookie-free web analytics for site owners who want to keep visitor data

3.2k 211 8 months ago Dormant Apache-2.0