mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 06:26:44 -06:00
feat: add PostHog telemetry with type-safe event tracking
Track page views, project interactions, theme changes, external links, PGP actions, and errors. Console logging in dev when PostHog not configured. Requires PUBLIC_POSTHOG_KEY and PUBLIC_POSTHOG_HOST env vars.
This commit is contained in:
@@ -14,6 +14,9 @@ const config = {
|
||||
alias: {
|
||||
$components: "src/lib/components",
|
||||
},
|
||||
paths: {
|
||||
relative: false, // Required for PostHog session replay with SSR
|
||||
},
|
||||
prerender: {
|
||||
handleHttpError: ({ path, referrer, message }) => {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user