openflarestack Star this repo
  1. Catalog
  2. Analytics
  3. Counterscale
Ranked 16 of 234

Counterscale

benvinegar/counterscale

Track website visits and see them on a simple dashboard for almost no cost.

A self-hosted alternative to Google Analytics.

What it sets up in your account

  • R2
    R2 bucket
    Storage for files and uploads.
  • Cr
    Cron trigger
    Runs scheduled tasks.
  • AE
    Analytics Engine
    Stores high-volume event data cheaply.
Category
Analytics
Licence
MIT
Stars
2,157
Last commit
9 days ago
Latest release
v3.4.1

Use it with AI or code

  • Markdown for AIPaste into ChatGPT, Claude or any LLM./apps/counterscale.md
    Open
  • JSON APIFree, no key, CORS open./api/v1/apps/counterscale.json
    Open

More in the API docs and llms.txt.

Keeping it up to date

Run this in your copy whenever a new version comes out.

terminal
git remote add upstream https://github.com/benvinegar/counterscale.git
git pull upstream main
npx wrangler deploy

Counterscale questions

What is Counterscale?

Track website visits and see them on a simple dashboard for almost no cost. It’s an open-source, self-hosted alternative to Google Analytics. It runs on Cloudflare Workers in your own account.

What does Counterscale set up in my Cloudflare account?

R2 bucket, Cron trigger and Analytics Engine. They are created in your account, so the data stays yours.

How do I deploy Counterscale?

It installs from the command line. Follow the steps in the benvinegar/counterscale README.

Is Counterscale free and open source?

Yes. It’s published under the MIT licence. Running it uses your own Cloudflare account, and small setups usually fit in the free plan.

How do I update Counterscale?

Pull from the original repository and redeploy: add https://github.com/benvinegar/counterscale.git as an upstream remote, run git pull upstream main, then npx wrangler deploy.