Skip to main content

TraceLog Docs.

Install TraceLog, configure tracking, and start getting automatic insights from your analytics data.

setup.ts
import { tracelog } from '@tracelog/lib';

// Initialize once in your app entry
await tracelog.init({
  integrations: {
    tracelog: { projectId: 'proj_live_xxxxxxxx' }
  }
});

// Track a conversion event
tracelog.event('purchase_completed', {
  total: 149.99,
  currency: 'USD',
});