evOo-local/apps/www/src/analytics.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

13 lines
395 B
TypeScript

const posthogKey = import.meta.env.PUBLIC_POSTHOG_KEY?.trim();
if (posthogKey) {
void import("posthog-js").then(({ default: posthog }) => {
posthog.init(posthogKey, {
api_host: import.meta.env.PUBLIC_POSTHOG_HOST?.trim() || "https://us.i.posthog.com",
capture_pageview: "history_change",
defaults: "2026-06-25",
person_profiles: "identified_only",
});
});
}