Indexed by TopGit from live GitHub metadata: arp242/goatcounter has 6.2k stars, written primarily in Go. Easy web analytics. No tracking of personal data.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
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.
There are two ways to run this: as hosted service on goatcounter.com, or
run it on your own server. The source code is completely Open Source/Free
Software, and it can be self-hosted without restrictions.
There's a live demo at https://stats.arp242.net.
Please consider contributing financially.
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.
Also see the privacy policy and GDPR consent notices.
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
(technical details).
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:
The JavaScript integration is a good option for most, but you can also use a
no-JavaScript image-based tracker, integrate it in your backend
middleware, or parse log files.
Getting data in to GoatCounter
There are three ways:
Add the JavaScript code on your site; this is the easiest and most common
method. Detailed documentation for this is available at
https://www.goatcounter.com/code
Use the HTTP/REST API, for example from your backend server middleware.
Detailed documentation for this is available at
https://www.goatcounter.com/api#backend-integration
Parse logfiles of nginx, Apache, Caddy, CloudFront, or any other HTTP server
or proxy. See goatcounter help import for detailed documentation on this
(this works both for the self-hosted version and goatcounter.com).
Self-hosting GoatCounter
The release page has binaries for several platforms. These are
statically compiled and contain everything you need. These should work in pretty
much any environment. The only dependency is somewhere to store a SQLite
database file or a PostgreSQL connection. Alternatively you can use Docker, as
documented in the section below.
Running
You can start a server with:
% 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.
Both SQLite and PostgreSQL are supported. SQLite should work well for most
smaller sites, but PostgreSQL gives better performance especially for larger
sites. The main bottleneck is not so much the number of pageviews, but how
spread out they are over different pages (10 million pageviews spread out over 5
pages is quite fast even on SQLite, but spread out over 1 million different
pages is much slower).
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]
This will ask for a password; you can also add a password on the commandline
with -password. You must also pass the -db flag here if you use something
other than the default.
GoatCounter includes TLS and automatic ACME certificate generation; to run in
production you probably want something like:
This uses a named volume, which is recommended as this stores the SQLite
database and ACME certificates (when using ACME) and anonymous volumes can be
easy to accidentally delete.
To create the first site, use the wizard on http://localhost:8080 or the CLI
with:
% docker exec -it [..] goatcounter db create site -vhost=stats.example.com [email protected]
To set options you can use GOATCOUNTER_.. environment variables. For example
to enable TLS and automatic certificate generation:
It's recommended to use the latest release as in the above command. The main
branch should be reasonably stable but no guarantees, and sometimes I don't
write detailed release/upgrade notes until the actual release so you may run in
to surprises.
You can compile goatcounter without cgo if you're planning to use PostgreSQL and
don't use SQLite:
% CGO_ENABLED=0 go build ./cmd/goatcounter
This will create a statically linked binary by default; no extra flags needed.
Functionally it doesn't matter too much, but builds will be a bit easier and
faster as you won't need a C compiler.
Development/testing
You can start a test/development server with:
% goatcounter serve -dev
The -dev flag makes some small things a bit more convenient for development:
the application will automatically restart on recompiles, templates and static
files will be read directly from the filesystem, and a few other minor changes.
See .github/CONTRIBUTING.md for more details on how
to run a development server, write patches, etc.
The most recent commit recorded on arp242/goatcounter was 1 month ago, based on the GitHub push timestamp. The repository has 288 forks — one of the better signals of community interest.
How many stars does arp242/goatcounter have?
arp242/goatcounter has 6.2k GitHub stars — refresh the page for the live number, or check github.com/arp242/goatcounter. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is arp242/goatcounter open source?
TopGit's metadata for arp242/goatcounter does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What else is in the Backend space?
arp242/goatcounter is tracked by TopGit under the Backend category, alongside 3 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is arp242/goatcounter?
arp242/goatcounter (arp242/goatcounter) is a Go project on GitHub. From the project's own README: Easy web analytics. No tracking of personal data.
What language is arp242/goatcounter written in?
arp242/goatcounter is written primarily in Go. GitHub's language field is based on the largest share of bytes in the default branch.
Where do I read more about arp242/goatcounter?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/arp242/goatcounter is the definitive source.
Read full README in the tab above.
Still deciding about goatcounter?
One click hands the question to an AI along with this page — see what it says about goatcounter.