Files
Georg Traar 39b270bbbc feat(ui): make PostHog tracking reliable and non-blocking (#14288)
Why:
- Early UI events were dropped before configs/PostHog were ready
- PostHog init could block critical flows and pageviews were inconsistent
- Backend analytics payloads should remain unchanged

What:
- Buffer API events until configs load and drain safely
- Queue PostHog captures until posthog-js initializes; drop stale items
- Improve pageview fields for PostHog only and avoid editor tab pageview pollution
- Reset/opt-out PostHog when analytics are disabled
- Add unit tests for buffering, PostHog queueing, and API flush
2026-01-27 09:23:16 +01:00
..