Skip to content

Commit bac1d47

Browse files
committed
fix: posthog key init
1 parent cbc30ab commit bac1d47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/app/plugins/posthog.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import posthog from 'posthog-js'
22

33
export default defineNuxtPlugin((nuxtApp) => {
44
// 1) Init PostHog in a safe mode first (no cookies until consent)
5-
posthog.init(useRuntimeConfig().public.posthogKey, {
5+
posthog.init(useRuntimeConfig().public.posthogPublicKey, {
66
api_host: useRuntimeConfig().public.posthogHost,
77
// recommended: keep pageview manual so you can gate it
88
capture_pageview: false,

0 commit comments

Comments
 (0)