nuxt-posthog icon indicating copy to clipboard operation
nuxt-posthog copied to clipboard

GDPR issue in setting cookies without respecting config

Open flt-james opened this issue 6 months ago • 1 comments

nuxt-posthog module stores the users identity in a cookie

This module doesn't respect posthog settings for recording anonymous data (using posthog without needing GDPR consent).

This line stores identity in a cookie even if persistence: 'memory' is set in the client options.

https://github.com/mitjans/nuxt-posthog/blob/2453f16016eedf2e26c3605b1c80c5a63383cd3b/src/runtime/plugins/posthog.client.ts#L42-L43

I appreciate you're probably not trying to support this use case but it would be good to say so in the docs.

Thanks!

flt-james avatar Jun 13 '25 08:06 flt-james

Yeah was wondering this also, it would be great to be able to pass cookieless_mode to the posthog instance

m1thrandir225 avatar Oct 05 '25 22:10 m1thrandir225