Commit 5644b56
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
- src/platform
- remoteConfig
- telemetry
- providers/cloud
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
0 commit comments