Events
Privacy-friendly web analytics and custom event tracking.
Web Analytics
Track how users interact with your site — pageviews, sessions, bounce rate, time on page, and more. No cookies required.
typescript
import { Kitbase } from '@kitbase/analytics';
const kitbase = new Kitbase({
token: '<YOUR_API_KEY>',
autoTrackPageViews: true,
});That's it. You'll see in your dashboard:
- Unique visitors and sessions
- Pageviews and pages per session
- Bounce rate and session duration
- Top pages, entry pages, exit pages
- Traffic sources and referrers
- Device, browser, and location breakdowns
Custom Events
Track signups, purchases, errors, or any event that matters to your business.
typescript
await kitbase.track({
channel: 'payments',
event: 'New Subscription',
user_id: 'user-123',
icon: '💰',
notify: true,
tags: {
plan: 'premium',
amount: 9.99,
},
});Learn more about Custom Events →
Documentation
| Section | Description |
|---|---|
| Analytics | Pageviews, sessions, bounce rate, revenue |
| Custom Events | Track events with channels, tags, notifications |
| User Identity | Anonymous tracking and identity resolution |
| Offline Support | Queue events offline and sync when connected |
| Advanced Features | Super properties, timed events, debugging |
| Privacy | GDPR compliance and consent management |