About this project

MHAnalytics is a website analytics tool specifically designed for privacy, deployed on Cloudflare Pages Functions and using the D1 database for data storage. It tracks unique visitors without the need for cookies and ensures users cannot be tracked across different days through daily session hashing. Key features include: - Built-in Dashboard: Provides real-time statistics and supports trend analysis for various time ranges (from 24 hours to 1 year), including statistics on sources, browsers, operating systems, and geographic locations. - Zero-Code Configuration: Allows customization of time zones, allowed domains, ignore lists, and site names via Cloudflare environment variables. - Lightweight Integration: Tracking is completed by introducing a simple JS script, and it supports displaying PV/UV counts directly on pages via custom HTML tags. - Anti-Blocking Design: Uses generic interface names to reduce the probability of being blocked by ad-blocking plugins. - High-Performance Architecture: Developed using TypeScript and the Hono framework, leveraging edge computing to reduce latency, with built-in strict CSP and CORS validation to enhance security.