Edgemetry icon

Edgemetry

Edgemetry is a self-hosted Cloudflare web analytics tool for privacy-first traffic tracking, with lightweight deployment, no cookies, and dashboard reporting.

Edgemetry

Overview

Edgemetry is a privacy-first web analytics tool you run yourself on Cloudflare’s edge. It uses one Worker and one D1 database, and the README says it avoids cookies, consent banners, and personal data stored at rest.

It is aimed at people who want simple self-hosted analytics without running Docker or paying for a separate hosted analytics service. The project provides a demo dashboard, a deployment flow that creates the database automatically, and a tracking snippet for adding sites after the instance is claimed.

Features

Core traffic metrics

Shows visitors, pageviews, views per visit, bounce rate, and average time, with sparklines and previous-period comparisons for each metric.

Stackable filters

Lets you click any row to narrow every panel at once, so you can filter by combinations such as page, referrer, country, device, or campaign tags.

Detailed traffic breakdowns

Breaks traffic down by page, entry page, exit page, referrer, country, browser, operating system, device, screen size, and UTM tags.

Realtime monitoring

Includes realtime views: a live counter, the last 30 minutes minute by minute, and a feed of pages being read right now.

Events and fast search

Supports custom events with a one-line edgemetry('signup') call, plus a command palette that searches every dimension and returns filters.

Multi-site team access

Supports multiple sites and multiple users on one deployment, with owner and viewer roles and per-site access control enforced server-side.

Use cases

  • Track a personal site on Cloudflare

    A solo site owner can deploy Edgemetry on Cloudflare, claim the instance, add a custom domain, and copy the snippet into the site head to start collecting traffic without a hosted analytics subscription.

  • Separate access by site and role

    A small team can share one deployment across several sites, then give different users viewer access to only the properties they need to see.

  • Monitor current traffic in realtime

    A publisher or creator can watch live pageviews, recent minutes, and current readers to see whether a post is getting traffic right now.

  • Analyze campaign segments

    A marketer can break traffic down by country, device, browser, and UTM tags to inspect campaign and audience segments from one dashboard.

  • Inspect product events and filters

    A developer can use custom events and the command palette to find and filter specific actions or dimensions without leaving the dashboard.

Pros and Cons

Pros

  • Runs on Cloudflare’s edge with one Worker and one D1 database.
  • No cookies, no fingerprinting, and no third-party browser requests in the dashboard or on tracked sites.
  • Supports multiple sites and multiple users with per-site permissions.
  • Provides realtime views, breakdowns, custom events, and team-oriented role management.
  • Designed for Cloudflare’s free tier, with site count not counted against free-tier traffic limits.

Cons

  • The README warns that a deployment is not fully safe until you claim the instance, move it to a hostname you control, and place a rate limit in front of /login.
  • The project has no password reset flow, so losing the only owner password is a documented recovery issue.

FAQ

How do you set up Edgemetry?

Edgemetry is deployed as a Cloudflare Worker with a D1 database. The README says Cloudflare creates the database automatically during deploy, and the dashboard provides a tracking snippet after you claim the instance.

Can one Edgemetry deployment support more than one site or user?

The README says you can run multiple sites and multiple users on one deployment, with per-site access controls. Owners can manage sites and users, while viewers get read-only access only to the sites they are granted.

What does Edgemetry show in the dashboard?

The dashboard reports five core metrics: visitors, pageviews, views per visit, bounce rate, and average time. It also includes breakdowns, realtime views, custom events, and a command palette for filtering.

How does Edgemetry handle privacy?

The project is built to avoid cookies, fingerprinting, personal data at rest, and third-party browser requests. The README also says the tracking script is about 2.1 KB and is served from your own domain.

Is Edgemetry free to use?

The README says the project is designed around Cloudflare's free tier and D1 limits. It also notes that only total traffic counts against the free tier, while site count itself does not.

Quick Facts

Category
Web analytics
Platform
Cloudflare Worker + D1
Primary users
Self-hosters, site owners, and small teams
Deployment model
Self-hosted on your own domain
Source domain
github.com