Plausible Analytics is a production-grade, privacy-first web analytics platform implemented as a full-stack SaaS application. The backend is built with Elixir/Phoenix (LiveView, Ecto, Oban) and uses ClickHouse as the primary analytics data store alongside PostgreSQL for transactional metadata. The frontend is a React/TypeScript single-page application with Tailwind CSS, and a separate JavaScript tracker script is distributed via npm and self-hosted CDN. The system handles event ingestion, session management, real-time dashboards, goal/funnel tracking, billing/subscriptions via Paddle, team collaboration, SSO/SAML authentication, data imports from Google Analytics, and a public Plugins API. The codebase is dual-licensed (Community Edition and Enterprise Edition) with conditional compilation for EE features like consolidated views, customer support tools, and audit logging. The architecture is modular with clear contexts (stats, ingestion, billing, teams, auth, shields) and extensive use of Oban workers for background jobs, ConCache for distributed caching, and OpenTelemetry for observability. The repository demonstrates high engineering craftsmanship with comprehensive test coverage (ExUnit, Playwright, k6 load tests), well-structured abstractions (cache behaviour, rate limiter, write buffers, session balancer), and a clear separation of concerns between the Phoenix web layer, LiveView components, and the React dashboard.
PostHog is a comprehensive product analytics and customer data platform (CDP) built as a polyglot monorepo. It combines Python/Django for core application logic and API, Rust for high-performance event ingestion and symbolication, and Node.js for ingestion pipelines and CDP services. The frontend is a React/TypeScript application using Kea for state management. It supports self-hosting and cloud deployment, with data stored in PostgreSQL, ClickHouse, and Redis. Key features include event tracking, session replay, feature flags, experiments, error tracking, and AI observability. The architecture emphasizes high-throughput event processing via Kafka and Temporal workflows for async tasks.
Umami is a self-hosted, open-source web analytics platform that serves as a privacy-focused alternative to Google Analytics. The system tracks pageviews, sessions, events, funnels, journeys, retention, attribution, revenue, and performance metrics (Core Web Vitals) through a dual-database architecture using PostgreSQL (via Prisma ORM) and ClickHouse for analytics queries. It provides real-time dashboards, session replay, heatmaps, and a customizable board/dashboard system with shareable views. The application is built with Next.js (App Router) and React, using TypeScript throughout. It features a comprehensive REST API with auto-generated OpenAPI contracts, a generated TypeScript API client package, and an MCP (Model Context Protocol) server for AI/LLM integration. Authentication supports API keys, JWT, two-factor authentication (TOTP with backup codes), and team-based multi-tenancy with role-based permissions. Key architectural patterns include a dual-database query dispatcher (`runQuery`) that selects between Prisma and ClickHouse implementations for every analytics query, a centralized request parsing and validation layer using Zod schemas, and a hook-based React data layer with TanStack Query for caching and invalidation. The codebase also includes comprehensive test coverage with Vitest unit tests, Playwright API tests, and E2E tests, plus a coverage oracle that enforces every API endpoint is documented in the OpenAPI spec.
Offen Fair Web Analytics is a privacy-focused, self-hosted web analytics platform that emphasizes user consent and data ownership. The system employs a multi-service architecture consisting of a Go-based backend server for API and data persistence, a Node.js vault service for client-side encryption and key management, a Node.js tracking script for event collection, and a Node.js auditorium interface for users to view their analytics data. All services are orchestrated via Docker Compose, with Nginx acting as a reverse proxy. The platform ensures privacy through end-to-end encryption of analytics data in the browser before transmission to the server, preventing even the server operator from accessing raw data without the user's key. It implements granular consent management, data retention policies (default 6 months), and allows users to review, export, or delete their data via the auditorium. The system supports multiple databases (SQLite, MySQL, PostgreSQL) and provides internationalization for over six languages.
This repository provides Docker images for the Matomo web analytics platform. It builds images for three variants (Apache, PHP-FPM Debian, and PHP-FPM Alpine) that include Matomo source code, PHP extensions, and configuration. The images are designed to run with a persistent volume for Matomo data and connect to an external database. The entrypoint script handles initial setup by extracting Matomo to the volume if needed and managing file permissions. The repository uses templating to maintain variant-specific Dockerfiles and includes scripts for automated version updates and library generation.