Skip to main content

Interface: AnalyticsProviderProps

Defined in: react/index.ts:45 Props for AnalyticsProvider.

Properties

children?

optional children?: ReactNode
Defined in: react/index.ts:60 Wrapped tree.

config

config: AnalyticsConfig
Defined in: react/index.ts:52 Provider configuration — PostHog/GA4 credentials, cross-subdomain cookie domain, debug flag, etc. Read once on mount; later prop changes do not re-initialise the singleton (use reset + a remount if you need that).

deferUntilIdle?

optional deferUntilIdle?: boolean
Defined in: react/index.ts:58 Wait for requestIdleCallback before booting analytics so it never sits on the LCP critical path. Defaults to true. Set to false only when you need first-paint events captured.