497 words, 27 clausesno date on the pageread 25/09/2026source
·Hi!
·I yesterday came across your product and I am already in love with it (as well as the company). Really great job all of you are doing!
·I do have a question (well, actually it is a ton of questions 😂) related to GDPR. I am trying to understand, how I can legally implement Web Analytics (for the website). Product Analytics will follow later on.
·From my readings so far related to GDPR, a user by design must be "opt outed" (if that is the correct term in English). When reading your above suggestions, one solution is to call posthog.opt_out_capturing(). But this would imply, that before calling opt_out_capturing, data capturing is happening. This would not be compliant with GDPR.
·Then my next question is, if a user does not accept consent (and cookies) I would need to switch everything to anonymous and usage of different approach than local storage / cookies (e.g. query params with anonymous session id, or other memory based approach). So at least I could track interactions with the side on an anonymous base (no IP, no browser fingerprint, no location, ...).
·How would I tackle such an approach in a Next.js application? Thanks for your help, Thierry
·Originally posted on posthog.com/docs/privacy/gdpr-compliance
·Well, one should read the whole page 🤦. https://posthog.com/tutorials/react-cookie-banner solves my question. Sorry!
·For GDPR compliance with PostHog, there are several key requirements: Consent Requirements
·Implementation Options PostHog offers two main approaches for GDPR compliance:
·For Initial Setup If you're not using cookies, you should:
·For more detailed implementation guidance, I recommend checking out the tutorial you found on building a React cookie banner and the cookieless tracking documentation.