All files / src/lib/analytics index.ts

0% Statements 0/37
100% Branches 0/0
0% Functions 0/1
0% Lines 0/37

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                                                                           
/**
 * Analytics Module
 *
 * This module exports analytics utilities for both server and client contexts.
 *
 * Server-side utilities (uses crypto, Node.js APIs):
 * - `hashIP`, `parseUserAgent` from './utils'
 *
 * Client-side utilities (browser-safe):
 * - `generateVisitorId`, `generateSessionId`, `extractUTMParams` from './client-utils'
 *
 * Feature modules:
 * - `./ecommerce` - E-commerce event tracking
 * - `./interactions` - User interaction tracking
 * - `./funnels` - Funnel analysis
 * - `./aggregation` - Data aggregation utilities
 * - `./services` - Analytics services (cohort, revenue, reports)
 */

// Server-side utilities
export { hashIP, parseUserAgent } from './utils';
export { generateVisitorId as generateServerVisitorId } from './utils';

// Client-side utilities
export {
  generateVisitorId,
  generateSessionId,
  extractUTMParams } from './client-utils';

// Feature modules
export * from './ecommerce';
export * from './interactions';
export * from './funnels';
export * from './aggregation';

// Analytics services
export * from './services';