10 lines
298 B
TypeScript
10 lines
298 B
TypeScript
// PostHog analytics integration
|
|
import posthog from 'posthog-js';
|
|
|
|
export function initPostHog() {
|
|
posthog.init('ph_project_key', { api_host: 'https://app.posthog.com' });
|
|
}
|
|
|
|
export function captureEvent(event: string, properties?: Record<string, any>) {
|
|
posthog.capture(event, properties);
|
|
}
|