Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto

GoatCounter on a VPS

GoatCounter is an open-source analytics tool that counts visits without cookies or personal identifiers. Self-host it as a single Go program backed by SQLite or PostgreSQL.

512 MBMinimum memory
Ubuntu 24.04 LTSBase image
8080/tcp, 443/tcp, 80/tcpPorts
EUPL-1.2License

About GoatCounter

GoatCounter counts pageviews and unique visits without cookies, using a non-identifiable hash instead of tracking IDs. Its dashboard covers pages, referrers, browsers, systems, screen sizes and locations, and data leaves through CSV exports or the API. It is licensed under EUPL-1.2.

Self-hosted, the visit data never leaves your server, which keeps privacy notices short. One Go binary with SQLite fits on the smallest plan, and its README recommends PostgreSQL for larger sites.

After deploy, GoatCounter answers on port 8080, where a setup wizard can create the first site.

What you get with GoatCounter

  • Cookie-free counting with no personal identifiers
  • Pages, referrers, browsers, screen sizes and locations
  • A tracking script of about 3.5 KB
  • CSV export and an API
  • Built-in ACME for automatic TLS

GoatCounter use cases

  • Analytics for sites that want a short privacy notice
  • Personal blogs and project pages
  • Several client sites, each on its own vhost

After you deploy GoatCounter

  1. When the server is Running, open http://<server IP>:8080 for the setup wizard, or create a site over SSH with goatcounter db create site -vhost=stats.example.com -user.email=you@example.com.
  2. Point the vhost's DNS at the server; for TLS without a proxy, serve with -listen=:443 -tls=tls,rdr,acme, which also listens on port 80 to redirect visitors.
  3. Paste the count.js script tag shown in the site settings into your pages.
  4. Move to PostgreSQL with the -db flag before traffic grows large.

GoatCounter ports

Open these in your firewall if you use one: 8080/tcp GoatCounter, 443/tcp HTTPS (built-in ACME), 80/tcp HTTP redirect.

GoatCounter FAQ

Does GoatCounter track individual visitors?

No. It identifies unique visits with a non-identifiable hash and sets no cookies or persistent user IDs, so it does not build profiles of people.

Can one GoatCounter server handle several sites?

Yes. Create one site per vhost with goatcounter db create site, point each domain at the server, and every site gets its own dashboard and tracking code.

Disclaimer. The GoatCounter project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

GoatCounter on your own server.
Ready in under 5 minutes.

Pick a region and a size; the console shows the address as soon as it is up.

Every server delivered in under 5 minutesPay with crypto14-day money-back