Analytics

Built-in analytics and insights for your application

Understand how users interact with your application with built-in analytics.

Dashboard Overview

Track key metrics directly in your dashboard:

  • Active Users - Daily, weekly, and monthly active users
  • Page Views - Most visited pages and user flows
  • Events - Custom event tracking and funnels
  • Performance - Load times and error rates

Track Custom Events

import { analytics } from '@demo/analytics';

// Track a custom event
analytics.track('button_clicked', {
  buttonId: 'signup',
  page: '/home'
});

// Track page views (automatic by default)
analytics.page('/dashboard');

User Properties

Associate data with users for segmentation:

analytics.identify(userId, {
  plan: 'pro',
  company: 'Acme Inc',
  signupDate: '2024-01-15'
});

Analytics data is retained for 12 months on the free plan and unlimited on paid plans.