talira

GoatCounter

Easy web analytics. No tracking of personal data.

open sourceGoatCounter License (modified EUPL 1.2)self-hostablefree

GoatCounter is open source, privacy-friendly web analytics, meant as a simpler alternative to Google Analytics and Matomo. It counts pageviews, referrers, campaigns, browsers, screen sizes and locations without cookies or unique identifiers (unique visits come from a non-identifiable hash), so it doesn't need a GDPR consent notice. Data comes in from a ~3.5 KB script, a no-JavaScript tracking pixel, a backend call to its API, or by importing nginx, Apache, Caddy or CloudFront log files. It's one Go binary with SQLite or PostgreSQL and built-in ACME certificates, and goatcounter.com hosts it free for reasonable use, funded by donations. Martin Tournoij (arp242) makes it under a slightly modified EUPL 1.2.

Ways to install

Problems it solves

  • see how many people visit my personal website without Google tracking them
  • website analytics that don't need a cookie consent banner
  • a free, simple Google Analytics alternative for my blog
  • count pageviews on a static site with a tiny script that doesn't slow it down
  • get visitor stats from my nginx or Caddy access logs instead of adding JavaScript
  • track pageviews from my server-side app's middleware through an API
  • count visits from people who block JavaScript with a tracking pixel
  • self-host privacy-friendly analytics as a single binary with SQLite
  • see which sites link to my articles and which campaigns bring visitors
  • show a public visitor counter on my site
  • an analytics dashboard that works well with a screen reader
  • track custom events like downloads or button clicks on my website
  • export all my analytics data so I'm never locked in
  • lightweight Matomo alternative that's easy to run on a small VPS
  • track pageviews in a single-page app without a heavy analytics SDK

View all 16 problems

Features

  • no cookies or unique identifiers; unique visits from a non-identifiable hash
  • fine-grained control over which data is collected
  • ~3.5 KB JavaScript integration with a single script tag
  • no-JavaScript image tracking pixel
  • backend API for server-side counting
  • import from nginx, Apache, Caddy, CloudFront and other HTTP server logs
  • referrers, campaigns, browsers, locations and screen sizes
  • events and single-page app support
  • visitor counter for public pages
  • dashboard designed for accessibility
View 5 more
  • CSV export and import; JSON export of all data
  • SQLite or PostgreSQL
  • built-in TLS with automatic ACME certificates
  • multiple sites and users; status URL for health monitoring
  • Docker image arp242/goatcounter and static binaries

Ways to run it

goatcounter.com

Hosted by the maker

free for reasonable public use; donations accepted45

Only in this edition

  • hosted at <code>.goatcounter.com, with custom domains

Pricing

GoatCounter (self-hosted)

You run it, GoatCounter License (modified EUPL 1.2)

free67

Only in this edition

  • no usage limits

You arrange

  • a server for the binary or Docker container
  • SQLite storage or a PostgreSQL database
  • TLS (built-in ACME) or a reverse proxy
  • running database migrations on upgrade

Self-hosting docs

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what GoatCounter does.

  1. Simple Analytics Privacy-first website analytics, without cookies or personal data
  2. Plausible Analytics Open source, privacy-first web analytics; a lightweight, cookie-free Google Analytics alternative
  3. Fathom Analytics Privacy-first, cookieless website analytics on a single dashboard
  4. Umami Privacy-first web and product analytics; no cookies, self-hosted or in the cloud
  5. Google Analytics Get essential customer insights
  6. Matomo Open-source alternative to Google Analytics with full data ownership

Compare GoatCounter with the top 3