Repository navigation
Releases: Rynvo/payload-posthog
Releases · Rynvo/payload-posthog
Release list
payload-posthog@0.2.0
Minor Changes
-
6ea197d: Add a public-site (non-admin) PostHog provider under a new
payload-posthog/reactentry.The existing
payload-posthog/clientprovider is admin-scoped (it reads@payloadcms/uiconfig and identifies the logged-in admin), so it can't be reused on a public marketing/frontend site. The newPostHogProviderfrompayload-posthog/react:- has no
@payloadcms/uidependency and never calls the admin-authenticated config endpoint; - takes a public key/host from props or
NEXT_PUBLIC_POSTHOG_KEY/NEXT_PUBLIC_POSTHOG_HOST; - captures
$pageviewon the initial load and on App Router client-side navigations (capture_pageview: 'history_change'); - supports consent gating for a CMP via
optOutCapturingByDefault+ a reactiveconsentprop, plususePostHogandusePostHogConsenthooks for imperative opt-in/opt-out.
- has no