Getting started
Tally has two pieces: a small tracking script on your site, and the Tally server (one program plus Postgres) that collects events and shows the dashboard. Use hosted Tally at tallystats.com, or run the server yourself.
1. Get a Tally server
Hosted: create an account at tallystats.com and add your site. Self-hosted: run the Docker image next to Postgres. This is the whole thing:
curl -O https://raw.githubusercontent.com/waymark-labs/tally/main/docker-compose.yml
TALLY_SECRET=$(openssl rand -hex 32) docker compose up -dOpen http://localhost:8000, create the owner account and your first site. The self-hosting guide covers plain Docker, running without Docker, proxies, and backups. On Railway, follow Deploy on Railway.
2. Add the snippet
Put this in the <head> of every page. Site settings → Tracking shows your exact snippet and confirms when the first event arrives.
<script defer src="https://your-tally.example.com/t.js" data-site="YOUR_SITE_ID"></script>3. Count what matters
Page views are automatic. For anything else, call tally.track('Signup') or add data-tally-event="Signup" to a button. The tracking guide has every option.
- TrackingThe snippet, its attributes, custom events, revenue, identify, and the privacy model.
- REST APIRead your stats, real-time data, and people over a read-only JSON API with bearer keys.
- Switch from visitors.nowSwap one tag and keep your events, identify calls, and visitor cookies.
- Self-hostingRun Tally with Docker Compose, plain Docker, or without Docker. Backups, upgrades, commands.
- Deploy on RailwayRun Tally on Railway with the Docker image and managed Postgres.
- First-party proxyServe the script and events from your own domain with Next.js, Vercel, Netlify, Cloudflare, Nginx, or Caddy.
- EmailsoonSign-in codes, password resets, invites, weekly digests, and spike alerts over Cloudflare Email Service, Resend, or SES.