This analytics package has a possible consent-ordering gap: its lifecycle hook tracks by default, and PostHog starts autocapture before the consent provider applies its deferred opt-out. The risk depends on consuming-app wiring, so this warrants a warning rather than a block.
Static reason
No blocking static signals were detected.
Trigger
A consuming app initializes telemetry through the lifecycle hook without passing ConsentProvider.trackingAllowed, while PostHog is configured.
Impact
Some visitor activity or session data may be captured before consent is applied.
Mechanism
The hook defaults trackingAllowed to true. PostHog initializes with autocapture enabled, while consent opt-out is applied only after consent state is ready and is queued until the SDK loads.
Evidence
src/providers/posthog.tssrc/consent/ConsentProvider.tsxsrc/hooks/useAnalyticsLifecycle.tssrc/telemetry.ts