Hanzo Insights
Getting Started

Quickstart

Send your first event in 5 minutes.

Quickstart

1. Install the SDK

# JavaScript
npm install hanzo-insights-js

# Python
pip install hanzo-insights

# Go
go get github.com/hanzoai/insights-go

2. Initialize

import Insights from 'hanzo-insights-js'

Insights.init('YOUR_API_KEY', {
  api_host: 'https://insights.hanzo.ai',
})

3. Capture Events

// Track a pageview
Insights.capture('$pageview')

// Track a custom event
Insights.capture('button_clicked', {
  button_name: 'signup',
  page: '/pricing',
})

4. Identify Users

Insights.identify('user_123', {
  email: 'user@example.com',
  plan: 'pro',
})

On this page