Expand description
ยงPostHog Plugin Module
Debug-only PostHog analytics integration for Mountain. Captures lifecycle events, IPC commands, errors, and performance metrics. Disabled in release builds (compile-time gated).
Constantsยง
- POSTHOG_
API_ ๐KEY - PostHog EU Cloud project token (debug builds only).
- POSTHOG_
HOST ๐ - PostHog EU Cloud host.
Staticsยง
- CLIENT ๐
- Global PostHog client instance.
Functionsยง
- Capture
Error - Capture an error event.
- Capture
Event - Capture a named event with optional properties.
- CaptureIPC
- Capture an IPC command invocation.
- Distinct
Id ๐ - Machine-stable distinct ID for the dev session.
- Initialize
- Initialize the PostHog client. Call once during app setup. No-op in release builds.