mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
Posthog-fixes (#5901)
PostHog is now initialized with persistence: 'memory' so no cookies are written on first load. Consent is handled in a PostHogConsentSync component that switches to localStorage+cookie persistence only when the user accepts, using the official @posthog/react package (cherry-picked from 14aaf64) --------- Co-authored-by: James Brunton <[email protected]>
This commit is contained in:
co-authored by
James Brunton
parent
81596f0299
commit
ff31b2f9ca
Vendored
-12
@@ -26,16 +26,4 @@ declare module 'axios' {
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'posthog-js/react' {
|
||||
import { ReactNode } from 'react';
|
||||
import posthogJs, { PostHogConfig } from 'posthog-js';
|
||||
|
||||
export const PostHogProvider: React.FC<{
|
||||
client?: typeof posthogJs;
|
||||
options?: Partial<PostHogConfig>;
|
||||
apiKey?: string;
|
||||
children?: ReactNode;
|
||||
}>;
|
||||
}
|
||||
|
||||
export { };
|
||||
|
||||
Reference in New Issue
Block a user