Pug

•
122
•

Track product and web analytics with self-hosted event ingestion, funnels, retention insights, and built-in Model Context Protocol support for AI querying.

Pug is an open-source, privacy-first product and web analytics platform designed for self-hosting. Built in Go on top of ClickHouse, PostgreSQL, and NATS, it delivers high-performance event ingestion alongside comprehensive behavioral insights such as conversion funnels, retention cohorts, and user flows. Pug features cookieless tracking by default with GDPR/DPDP data-subject erasure compliance, wide-ranging SDKs across web and mobile platforms, and a native Model Context Protocol (MCP) server that empowers AI assistants like Claude to directly query metrics and compose dashboards.

主要功能

01119 GitHub stars
02High-throughput event ingestion pipeline powered by NATS with automatic geolocation, user-agent parsing, and bot enrichment.
03Comprehensive product analytics tools including conversion funnels, retention tracking, Sankey user flows, and trends.
04Built-in Model Context Protocol (MCP) server enabling AI clients to explore insights, inspect events, and build dashboards.
05Privacy-focused architecture supporting cookieless tracking until visitor consent and full GDPR/DPDP data erasure.
06Cross-platform SDK ecosystem covering Web, iOS, Android, Flutter, Node.js, Go, Ruby, and AI crawler monitoring.

使用案例

01Self-hosting privacy-compliant web and mobile analytics to ensure complete data sovereignty and bypass third-party trackers.
02Enabling AI assistants to analyze user behavior, answer ad-hoc metric queries, and construct dashboards via natural language.
03Tracking conversion funnels and user retention across full-stack applications with sub-second ClickHouse queries.