# GoatCounter

> Easy web analytics. No tracking of personal data.

Source: https://talira.ai/catalog/goatcounter-pgemqhhf
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Web app, API, Command-line tool
- Categories: [analytics / web analytics](https://talira.ai/categories/analytics/web-analytics), [languages / go](https://talira.ai/categories/languages/go)
- Platforms: linux, macos, windows, docker, web[^6]
- Licence: GoatCounter License (modified EUPL 1.2)[^7]
- Pricing: Free[^4][^5]
- Pricing notes: goatcounter.com is free for reasonable public use (a personal website or a small-to-medium business is fine; millions of pageviews a day isn't), funded by donations through GitHub Sponsors. Self-hosting is free without restrictions.
- Free tier: yes[^4][^5]
- Self-hostable: yes[^6]
- Cloud hosted: yes[^4][^6]
- API: yes[^6][^8]
- Creator: Martin Tournoij (arp242)

GoatCounter is open source, privacy-friendly web analytics, meant as a simpler alternative to [Google Analytics](https://talira.ai/catalog/google-analytics-412s31nc.md) and [Matomo](https://talira.ai/catalog/matomo-6q6hqmsj.md). 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](https://talira.ai/catalog/nginx-nfjkekkp.md), Apache, [Caddy](https://talira.ai/catalog/caddy-vc8j4642.md) or CloudFront log files. It's one Go binary with [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md) or [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) 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.

## Links

- Website: https://www.goatcounter.com/
- GitHub: https://github.com/arp242/goatcounter
- Docs: https://www.goatcounter.com/help

## Ways to install

### On your own server

- [Unraid Community Applications](https://talira.ai/catalog/unraid-community-applications-9jw5an1a.md): <https://ca.unraid.net/apps/goatcounter-14dv2p215f6twq>[^1]
- [Coolify](https://talira.ai/catalog/coolify-0mx3mr9d.md): <https://coolify.io/docs/services/goatcounter>[^2]
- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/goatcounter>[^3]

## 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
- analytics for a small business site that's free and needs no setup beyond one script tag

## 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
- 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. Price: free for reasonable public use; donations accepted.[^4][^5]

Only in this edition:

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

Pricing: https://github.com/arp242/goatcounter/blob/main/tpl/home.gohtml

### GoatCounter (self-hosted)

You run it, GoatCounter License (modified EUPL 1.2). Price: free.[^6][^7]

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: https://github.com/arp242/goatcounter/blob/main/README.md

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.34 out of 1.
Signals: backing 0.20, extensibility 0.40.

- created by Martin Tournoij (arp242)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Simple Analytics](https://talira.ai/catalog/simple-analytics-pah15gtk.md): Privacy-first website analytics, without cookies or personal data
- [Plausible Analytics](https://talira.ai/catalog/plausible-analytics-e3xkz4e7.md): Open source, privacy-first web analytics; a lightweight, cookie-free Google Analytics alternative
- [Fathom Analytics](https://talira.ai/catalog/fathom-analytics-k591samp.md): Privacy-first, cookieless website analytics on a single dashboard
- [Umami](https://talira.ai/catalog/umami-nh4mzxtn.md): Privacy-first web and product analytics; no cookies, self-hosted or in the cloud
- [Google Analytics](https://talira.ai/catalog/google-analytics-412s31nc.md): Get essential customer insights
- [Matomo](https://talira.ai/catalog/matomo-6q6hqmsj.md): Open-source alternative to Google Analytics with full data ownership

## Sources

[^1]: https://ca.unraid.net/api/apps/goatcounter-14dv2p215f6twq (checked 20 Nov 2026)
[^2]: https://coolify.io/docs/services/goatcounter (checked 20 Nov 2026)
[^3]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/goatcounter.sh (checked 21 Nov 2026)
[^4]: https://github.com/arp242/goatcounter/blob/main/tpl/home.gohtml (checked 20 Nov 2026)
[^5]: https://github.com/arp242/goatcounter/blob/main/tpl/help/terms.md (checked 20 Nov 2026)
[^6]: https://github.com/arp242/goatcounter/blob/main/README.md (checked 20 Nov 2026)
[^7]: https://github.com/arp242/goatcounter/blob/main/LICENSE (checked 20 Nov 2026)
[^8]: https://github.com/arp242/goatcounter/blob/main/tpl/help/api.md (checked 20 Nov 2026)
