Self-hosted · Single Binary · Your Server

Self-hosted web analytics that respects your visitors.

Track user behavior without cookies, no GDPR banner, data stays on your server. Headcount is a single Go binary with SQLite.

Install Headcount Browse all 150 tools
What it is

Headcount

Headcount tracks page views, custom events, funnels, and retention. It runs as a single Go binary with embedded SQLite. Install it with one command, point your site at it, and you have private analytics running in under a minute.

curl -fsSL https://stockyard.dev/headcount/install.sh | sh

Web analytics data is a map of how your users think. Every page view, click path, and referrer tells you what people want and where they get stuck. When that data lives in Google Analytics or Mixpanel, it also trains their ad targeting models, gets sampled at high volumes, and disappears behind consent banners that half your visitors reject. Self-hosted analytics avoids all three problems. You see 100% of your traffic because there are no third-party scripts for ad blockers to strip out. You keep raw data indefinitely because nobody is charging you per event. And you skip the GDPR consent banner entirely because the data never leaves your infrastructure.

A self-hosted analytics tool should be lightweight enough to run alongside your application server without competing for resources. It should accept events over a simple HTTP API so you can instrument backends, not just browsers. It should store data locally with no external database requirement. And it should give you the three numbers that actually matter: unique visitors, top pages, and referral sources. Anything beyond that is a bonus.

Headcount tracks page views, sessions, unique visitors, top referrers, and custom events through a single JavaScript snippet or server-side API. Events land in an embedded SQLite database — no Clickhouse cluster, no Postgres, no Redis. The dashboard shows real-time traffic with daily, weekly, and monthly rollups. You can filter by path, referrer, or custom properties. The stats endpoint returns JSON, so building a custom dashboard or piping data into a reporting tool is a single API call.

Your data. Your server. Your rules.

Your analytics data is some of the most sensitive information about your users. Every page view, click, and session recorded by a third-party service is data you no longer control. Self-hosted analytics means your visitor data never leaves your server. No cookies, no consent banners, no third-party scripts loading on your pages.

Replaces: Mixpanel, Plausible, Google Analytics

Pricing

Free to start. Pro when you need more.

Free
$0
forever, self-hosted

10,000 events/mo

Pro
$1.99/mo
per month

Unlimited usage, full features

Also from Stockyard
Get started

Self-hosted user analytics.

Single binary. Free to start. $1.99/mo for Pro.

Install Headcount All 150 tools for $29/mo →
Compare: Headcount overview · Headcount vs Plausible · Headcount vs Google Analytics · Headcount vs Fathom · Headcount vs Umami · Headcount vs Matomo · Best self-hosted tools · All 150 tools