# Hanzo Insights — Hanzo AI

> Understand user behavior with event analytics, session recording, funnels, and A/B testing. Roll out features safely with feature flags.

`new-dashboard`

roll out to

# HanzoInsights

Product analytics and feature flags

[Open Insights](https://insights.hanzo.ai/)

## Ship it, then find out

- **Events**Auto-capture
- **Flags**A/B
- **OSS**Self-hosted

insights.hanzo.ai

### Events, and SQL when you need it

**Autocapture gets you data before you have instrumented anything,** and named events get you data you can trust. When a chart cannot express the question, write the query instead — it is the same table underneath.

## The flag and the event, in one provider

app.tsx

```
import { InsightsProvider, useFeatureFlag } from "@hanzo/insights-react"
 
function App() {
  return (
    <InsightsProvider
      apiKey="ins_proj_xxx"
      host="https://insights.hanzo.ai"
    >
      <MyApp />
    </InsightsProvider>
  )
}
 
function MyApp() {
  // Feature flags
  const showNewUI = useFeatureFlag("new-dashboard")
 
  // Track events
  insights.capture("button_clicked", { variant: "primary" })
 
  return showNewUI ? <NewDashboard /> : <OldDashboard />
}
```

## Start with autocapture

Drop the provider in and you have data by this afternoon. Name the events that matter once you know which ones those are. There is a free tier, and the whole thing is open source if you would rather run it yourself.

[Try Hanzo](https://hanzo.ai/login)[View on GitHub](https://github.com/hanzoai/insights)

## Paste and ship

Paste this into any agent. It reads the skill manifest and calls Insights from there.

Agent prompt

```
Read https://hanzo.ai/skill.md and use Hanzo Insights in my project.
```

## Get Insights

Product insights + experiments

License: MIT[hanzoai/insights_4 stars_](https://github.com/hanzoai/insights)

There is a free tier, and the whole thing is open source if you would rather run it yourself.

[Open Insights](https://insights.hanzo.ai/)

[Deploy to Cloud](https://platform.hanzo.ai/deploy)
