@optic7409/resolvo-analytics
Version:
Simplified analytics client library for Next.js with automatic SSR handling, one-line integration, and comprehensive tracking
21 lines (20 loc) • 1.08 kB
JavaScript
// Core exports
export { AnalyticsClient } from './core/AnalyticsClient';
export { initializeAnalytics } from './utils/initialize';
// React components
export { AnalyticsProvider } from './react/components/AnalyticsProvider';
export { AnalyticsTracker } from './react/components/AnalyticsTracker';
export { PageTracker } from './react/components/PageTracker';
export { TrackingButton } from './react/components/TrackingButton';
// New simplified components
export { ResolvoAnalytics, NextJsPageTracker, PagesPageTracker } from './react/components/ResolvoAnalytics';
// React hooks
export { useAnalytics } from './react/hooks/useAnalytics';
export { usePageTracking } from './react/hooks/usePageTracking';
// Utilities
export { detectEnvironment, shouldEnableAnalytics, getDefaultConfig } from './utils/environment';
// Legacy exports for backward compatibility
export { AnalyticsClient as ResolvoAnalyticsClient } from './core/AnalyticsClient';
// Default export for simple usage
import { ResolvoAnalytics } from './react/components/ResolvoAnalytics';
export default ResolvoAnalytics;