Skip to content

Commit 5644b56

Browse files
committed
feat: add PostHog telemetry provider for cloud builds
- Add posthog-js dependency - Create PostHogTelemetryProvider following MixpanelTelemetryProvider pattern - Register provider in initTelemetry.ts - Read posthog_project_token and posthog_api_host from window.__CONFIG__ (runtime config from /features endpoint) - Tree-shaken away in OSS builds (verified)
1 parent fe8ab1d commit 5644b56

7 files changed

Lines changed: 607 additions & 67 deletions

File tree

global.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ interface Window {
3333
gtm_container_id?: string
3434
ga_measurement_id?: string
3535
mixpanel_token?: string
36+
posthog_project_token?: string
37+
posthog_api_host?: string
3638
require_whitelist?: boolean
3739
subscription_required?: boolean
3840
max_upload_size?: number

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"loglevel": "^1.9.2",
101101
"marked": "^15.0.11",
102102
"pinia": "catalog:",
103+
"posthog-js": "catalog:",
103104
"primeicons": "catalog:",
104105
"primevue": "catalog:",
105106
"reka-ui": "catalog:",

0 commit comments

Comments
 (0)