Hanzo
PlatformInsights

Hanzo Insights

Self-hosted behavioral analytics platform with feature flags, session recording, A/B testing, and product analytics.

Hanzo Insights

Hanzo Insights is a self-hosted behavioral analytics platform running at insights.hanzo.ai. Built as a fork of PostHog with full Hanzo branding, it provides product analytics, feature flags, session recording, A/B testing, and cohort analysis — all with complete data ownership.

Dashboard: insights.hanzo.ai Core SDK: @hanzo/insights (browser) Server SDK: @hanzo/insights-node (Node.js) Go SDK: github.com/hanzoai/insights-go

Features

  • Product Analytics — Funnels, retention, trends, paths, and lifecycle analysis
  • Feature Flags — Boolean and multivariate flags with gradual rollouts
  • Session Recording — Full session replay with privacy controls via rrweb
  • A/B Testing — Experiments with Bayesian and frequentist significance testing
  • Autocapture — Automatic click, pageview, and form tracking (zero instrumentation)
  • Group Analytics — Organization and workspace-level metrics
  • Cohort Analysis — Behavioral segmentation and user grouping
  • Data Pipelines — Export to S3, BigQuery, Snowflake, or custom webhooks
  • Self-Hosted — Full data ownership, deploy on your infrastructure

Architecture

┌──────────────────────────────────────────────────────────────────────┐
│                        insights.hanzo.ai                             │
├──────────────────────────────────────────────────────────────────────┤
│                                                                      │
│  ┌──────────────┐  ┌──────────────┐  ┌─────────────┐  ┌──────────┐ │
│  │  Capture API  │  │  Web App     │  │  Plugin     │  │  Worker  │ │
│  │  (ingestion)  │  │  (dashboard) │  │  Server     │  │  (async) │ │
│  └──────┬───────┘  └──────────────┘  └──────┬──────┘  └────┬─────┘ │
│         │                                     │              │       │
│         ▼                                     ▼              ▼       │
│  ┌──────────────────────────────────────────────────────────────┐   │
│  │                    Kafka (via Stream)                         │   │
│  │           insights-kafka:9092 → NATS JetStream               │   │
│  └──────────────────────────────────────────────────────────────┘   │
│         │                                     │              │       │
│         ▼                                     ▼              ▼       │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────────────┐  │
│  │  ClickHouse   │  │  PostgreSQL  │  │  Redis                   │  │
│  │  (events)     │  │  (metadata)  │  │  (cache, sessions)       │  │
│  └──────────────┘  └──────────────┘  └──────────────────────────┘  │
│                                                                      │
└──────────────────────────────────────────────────────────────────────┘
ComponentK8s DeploymentPurpose
Captureinsights-captureHigh-throughput event ingestion API
Webinsights-webDashboard and query interface
Plugin Serverinsights-pluginEvent processing pipelines and exports
Workerinsights-workerAsync jobs (cohort calculation, exports)
Kafka Adapterinsights-kafkaKafka wire protocol → NATS JetStream via Hanzo Stream

Insights vs Analytics

Hanzo runs two analytics systems for different purposes:

InsightsAnalytics
PurposeBehavioral product analyticsPrivacy-first page view analytics
Based onPostHogUmami
TrackingFull event stream, autocapture, session recordingPage views, referrers, UTM params
Feature flagsYesNo
Session replayYesNo
A/B testingYesNo
PrivacyConfigurable (can mask PII)Privacy-first by default (no cookies)
Dashboardinsights.hanzo.aianalytics.hanzo.ai
Use caseProduct teams, growth, experimentationMarketing, compliance, lightweight stats

Package Ecosystem

13 packages in the @hanzo/insights-* namespace:

PackagePlatform
@hanzo/insightsBrowser
@hanzo/insights-nodeNode.js
@hanzo/insights-reactReact hooks and providers
@hanzo/insights-react-nativeReact Native
@hanzo/insights-nextNext.js (App + Pages Router)
@hanzo/insights-webLightweight web-only
@hanzo/insights-js-liteMinimal/bandwidth-constrained
@hanzo/insights-androidAndroid
@hanzo/insights-iosiOS
@hanzo/insights-flutterFlutter
@hanzo/insights-pythonPython
@hanzo/insights-rubyRuby
github.com/hanzoai/insights-goGo

Install the SDK and send your first event in 2 minutes

Boolean and multivariate flags with gradual rollouts

Full session replay with privacy controls

A/B testing with statistical significance

Complete reference for standard and custom events

Privacy-first page view analytics (distinct from Insights)

How is this guide?

Last updated on

On this page