Every product I ship — from Call It Done to this portfolio — needed honest funnel, retention, and billing attribution analytics without handing user behavior to third-party ad networks or paying SaaS event taxes. OmniTracking is a multi-tenant, self-hosted analytics engine built in Rust so the platform adapts to every project without schema migrations or per-vendor glue code.
Architecture built for trust and accuracy#
Every core decision in OmniTracking favors correctness, isolation, and zero bloat:
- Strict read/write process isolation:
omnitracking-ingestholds database credentials that can onlyINSERT;omnitracking-queryruns as a separate process withreadonly = 1ClickHouse credentials that can onlySELECT. Neither service can perform the other’s job even in the presence of a bug. - Exact deduplication under retries: Events land in a ClickHouse
ReplacingMergeTree, and every query deduplicates withuniqExact(event_id)so retried mobile batches never inflate or drift metrics over time. - Schema-free traffic discovery: Ingest automatically records event names and top-level property keys so
/v1/schemashows what each project is actually sending with zero upfront migration boilerplate. - Configuration-driven webhooks & pull connectors: Providers like Stripe, PayPal, or custom billing hooks are declarative
webhook_endpointsrows verified across five standard HMAC/signature encodings — no hardcoded vendor modules. Third-party polled daily counts (YouTube, TikTok, Instagram, GA4) live cleanly inmetrics_dailyrather than polluting raw events. - Query-time identity resolution:
POST /v1/identifylinks anonymous visitors to signed-in accounts at query time without mutating immutable event history.
Native SDKs & zero-WASM dashboard#
- Server-rendered Leptos dashboard & Tauri 2 apps: The web dashboard renders HTML on the server with zero WASM hydration bundle, paired with Apache ECharts (
charming) visualizations and wrapped in Tauri 2 for iOS, Android, and desktop. - First-party SDKs: Lightweight web snippet (
omnitracking.js) with optional behavior vitals, surveys, and feature flags (/v1/flags), plus native Swift (iOS) and Kotlin (Android) SDKs with offline queuing and PostHog/Segment wire-format adapters. - Clean deployment: Runs self-hosted behind Caddy with automatic TLS, Postgres for tenant metadata/configs, and ClickHouse for high-throughput analytical queries.