Skip to content

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

Learn more about Analytics →

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

SectionDescription
AnalyticsPageviews, sessions, bounce rate, revenue
Custom EventsTrack events with channels, tags, notifications
User IdentityAnonymous tracking and identity resolution
Offline SupportQueue events offline and sync when connected
Advanced FeaturesSuper properties, timed events, debugging
PrivacyGDPR compliance and consent management

Released under the MIT License.