goatcounter

Easy web analytics. No tracking of personal data.

What is goatcounter?

Easy web analytics. No tracking of personal data.

Overview of goatcounter

What it is

GoatCounter is an open source web analytics platform available as a free hosted service or self-hosted app. It aims to offer easy-to-use and meaningful privacy-friendly web analytics as an alternative to Google Analytics or Matomo. The source code is completely Open Source/Free Software, and it can be self-hosted without restrictions.

Key features

  • Privacy-aware; doesn’t track users with unique identifiers and doesn't need a GDPR notice. Fine-grained control over which data is collected.
  • Lightweight and fast; adds just ~3.5K of extra data to your site. Also has JavaScript-free "tracking pixel" option, or you can use it from your application's middleware or import from logfiles.
  • Identify unique visits without cookies using a non-identifiable hash.
  • Keeps useful statistics such as browser information, location, and screen size. Keep track of referring sites and campaigns.
  • Easy; if you've been confused by the myriad of options and flexibility of Google Analytics and Matomo that you don't need then GoatCounter will be a breath of fresh air.
  • Accessibility is a high-priority feature, and the interface works well with assistive technology such as screen readers.
  • 100% committed to open source; you can see exactly what the code does and make improvements, or self-host it for any purpose.
  • Own your data; you can always export all data and cancel at any time.
  • Integrate on your site with just a single script tag.

Use cases

  • Replacing Google Analytics or Matomo with a privacy-friendly alternative.
  • Self-hosting web analytics for full control over data.
  • Tracking website traffic without cookies or unique user identifiers.
  • Analyzing visitor statistics such as browser, location, screen size, referring sites, and campaigns.
  • Using a lightweight tracking method (JavaScript, image pixel, backend middleware, or logfile import).

Getting started

To start a server with the self-hosted version:

% goatcounter serve

This will start a server on *:8080. The default is to use an SQLite database at ./goatcounter-data/db.sqlite3, which will be created if it doesn't exist yet.

To create the first site, use the wizard on http://localhost:8080 or the CLI with:

% goatcounter db create site -vhost=stats.example.com [email protected]

For production with TLS:

% goatcounter serve -listen=:443 -tls=tls,rdr,acme

See the repository README for detailed instructions on using PostgreSQL, Docker, and building from source.

License and pricing

The license is not stated in the metadata (NOASSERTION). The project is open source and available as a free hosted service or self-hosted app.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/arp242goatcounter.svg)](https://yunodb.com/tools/arp242goatcounter?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/arp242goatcounter?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/arp242goatcounter.svg" alt="Featured on YunoDB" height="20"></a>