al3xg0r
al3xg0rDeveloper | Open Source Enthusiast

Supported Projects

AG Analytics

Lightweight, privacy-first, serverless multi-site web analytics built entirely on Cloudflare.

v1.0.1
AG Analytics

Is a self-hosted alternative to traditional web analytics platforms. It provides the essential traffic insights for multiple websites without cookies, fingerprinting, Docker, VPS infrastructure, or third-party analytics services.

AG Analytics

The entire platform runs on Cloudflare Workers with D1 as the database and cache. A lightweight widget.js script is added to each website, while a single dashboard provides analytics and site management.

Features

  • Multi-site analytics from one dashboard
  • Page views, unique visitors and real-time visitors
  • Traffic sources, referrers and search engines
  • Search queries and UTM campaign tracking
  • Countries, browsers, operating systems and devices
  • Custom events and conversion tracking
  • Bot and crawler filtering
  • Previous-period comparisons and interactive charts
  • Customizable dashboard panels
  • Light and dark themes
  • Automatic data retention and weekly cleanup
  • Tracking designed to reduce common ad-blocker interference

Privacy

AG Analytics is designed around minimal data collection.

It does not use cookies or browser fingerprinting and does not collect form contents, passwords, email addresses or precise GPS location. Visitor IP addresses are used only momentarily to generate an anonymous, daily-rotating identifier and are never stored.

Architecture

Website
   │
   │ widget.js
   ▼
Cloudflare Worker
   │
   ├── Tracking API
   ├── Dashboard
   └── Admin API
          │
          ▼
     Cloudflare D1
     ├── Analytics data
     └── Dashboard cache

The project intentionally keeps the infrastructure small: one Worker, one D1 database and one lightweight tracking script. No VPS, Docker, PHP or MySQL are required.

Technical Stack

Cloudflare Workers · D1 · JavaScript · HTML · CSS

The project is open source and released under the MIT License.