Getting Started
Get up and running with Kitbase in minutes.
Installation
bash
pnpm add @kitbase/analyticsbash
npm install @kitbase/analyticsbash
yarn add @kitbase/analyticsAnalytics & Events
Track pageviews, sessions, and custom events.
typescript
import { init } from '@kitbase/analytics';
const kitbase = init({
sdkKey: '<YOUR_API_KEY>',
});
// Track custom events
await kitbase.track({
channel: 'payments',
event: 'New Subscription',
user_id: 'user-123',
icon: '💰',
notify: true,
tags: {
plan: 'premium',
amount: 9.99,
},
});Next steps
- Web Analytics overview — how capture, filtering, and enrichment fit together.
- Track Events — channels, tags, notifications, and revenue tracking.
- SDKs & Tools — React, Angular, the CLI, and the MCP server.
- Dashboard guide — analytics, events, sessions, and users views.