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 -d

Open 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.