GoatCounter logo

GoatCounter

Open source web analytics with privacy-friendly tracking and self-hosting

Open Source Alternative to
Repository activity
  • Stars5.8k
  • Forks261
  • Open Issues38
License

Other

Languages
  • Go
  • JavaScript
  • Go Template
GoatCounter screenshot

About GoatCounter

GoatCounter is an open source web analytics platform available as a free hosted service or a self-hosted app. It gives site owners meaningful, privacy-friendly traffic statistics without tracking visitors through unique identifiers, and it is lightweight enough to add only about 3.5K to a page.

Data can be collected through a single script tag, a JavaScript-free image tracker, backend middleware, or logfile imports. It records browser, location, screen size, referring sites, and campaigns, and identifies unique visits without cookies using a non-identifiable hash. The interface works well with assistive technology such as screen readers.

GoatCounter can run on your own server without restrictions, with statically compiled binaries for several platforms and a Docker image. It stores data in SQLite or PostgreSQL and includes TLS with automatic ACME certificate generation. You own your data and can export it and cancel at any time.

Key features

  • Single script tag, image tracker, middleware, or logfile import
  • Unique visits without cookies using a non-identifiable hash
  • Tracks browser, location, screen size, referrers, and campaigns
  • SQLite and PostgreSQL support
  • TLS and automatic ACME certificate generation

Details

First released
2019
Platforms
Web · Docker · CLI
Hosting
Hosted service or self-hosted
Storage
SQLite · PostgreSQL
Privacy
No unique identifiers or cookies
Export
All data can be exported