Add simple, privacy-safe analytics to your website without a cookie consent popup or GDPR headache.
Self-host your own analytics server so visitor data never leaves your infrastructure.
Track page views on a site built without JavaScript by using the image-based tracking option.
Replace Google Analytics on a small business or personal site and export your data anytime you want.
Hosted version needs just one line of JS. Self-hosted requires downloading a binary and running one command, SQLite works out of the box with no database setup.
GoatCounter is a web analytics tool that tracks visits to your website without collecting personal data about your visitors. It is positioned as a privacy-respecting alternative to Google Analytics: you get page view counts, browser types, geographic locations, screen sizes, and referral sources, but no individual user profiles and no need for cookie consent banners. You can use it in one of two ways. The hosted version at goatcounter.com lets you sign up and add a single line of code to your website to start collecting statistics immediately. The self-hosted version lets you run the whole system on your own server, which means your data never leaves your infrastructure. The source code is fully open and free to use. For self-hosters, the setup is intentionally simple. You download a precompiled binary (no complex dependencies required), run one command to start the server, and use a web wizard or a command-line tool to create your first site. Storage uses either SQLite for smaller sites or PostgreSQL for larger ones. Docker is also supported for those who prefer container-based deployments. Automatic HTTPS certificate generation is built in. To get data into GoatCounter, there are three methods: add a small JavaScript snippet to your pages (about 3.5 kilobytes), call its API from your own server backend, or point it at your existing web server log files from nginx, Apache, or similar tools. A no-JavaScript image-based tracking option also exists for sites that avoid JavaScript. The project emphasizes accessibility in its own interface, with screen reader support noted as a priority. You can export all your data at any time and stop using the service whenever you want.
← arp242 on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.