Privacy compliance

Last updated:

|Edit this page|

Posthog gives you privacy controls at different levels to protect user privacy and comply with regulations. This guide covers the different privacy controls we provide and guidance on how to use them.

  • What you're responsible for: It's your responsibility to decide what data you collect, if it complies with regulations, and communicate with your users.
  • What PostHog does for you: We provide tools and features to help you manage what's collected and store the collected data securely.

Privacy control features

You can control data collection, ingestion, and storage at different levels. Explore the guides below to learn more about the different privacy control features:

Guidance on navigating regulations

In these guides, we offer advice for using PostHog in a compliant manner under the following legal frameworks:

These are not legal advice

It is up to you to ensure you're compliant with regulations. We strongly recommend reading the relevant regulations in full and seeking independent legal advice regarding your obligations.

Frequently asked questions

This overview covers some frequently asked questions about PostHog and privacy. Have a question not covered here? Use the 'Ask a question' box at the bottom of the page.

Is it ok for my API key to be exposed and public?

It is ok for your project API key (starts with phc_) to be public. It is used to initialize PostHog, capture events, evaluate feature flags, and more, but doesn't have access to your private data.

It is not recommended for your personal API key (starts with phx_) to be public as it enables reading and writing potentially private data.

What is and isn't considered personal data?

It's hard to have a single legal definition of personal data because every legal privacy framework has different ideas, and even names, for it. The GDPR calls it 'personal data' but the US uses the term 'personally identifiable information' (PII) and others refer to it as 'personal information'.

According to the GDPR, personal data is any information which:

  1. Identifies a 'data subject' directly
  2. Can be used to identify a 'data subject' when combined with other information

Read our simple guide to personal data and PII for more specific examples to help you identify what personal data you are collecting.

How does the GDPR impact analytics?

There are three key GDPR principles that impact your use PostHog and analytics in general:

  1. You need to have a good reason to collect personal data
  2. You need to acquire unambiguous consent
  3. Data must be handled securely

Our guide to personal data provides an overview of what's considered personal data under the GDPR, but suffice it to say that its definition is broad.

Is PostHog GDPR compliant?

We have in-depth GDPR guidance documentation for advice on deploying PostHog in a GDPR-compliant way, including how to configure GDPR consent in PostHog and complying with 'right to be forgotten' requests.

We also offer PostHog Cloud EU – a managed version of PostHog with servers hosted in Frankfurt, ensuring user data never leaves EU jurisdiction.

Can I use PostHog Cloud under HIPAA?

Yes, we can provide a Business Associate Agreement (BAA) to enable HIPAA-compliant usage of PostHog Cloud. Please contact us to arrange a BAA and discuss your requirements.

Is Google Analytics HIPAA compliant?

No, Google Analytics isn't HIPAA compliant, so it can't be used in any context where you're collecting or processing personal health information. PostHog can be used to collect user data under HIPAA. Read our HIPAA guidance for more information.

Questions? Ask Max AI.

It's easier than reading through 659 pages of documentation

Community questions

Was this page useful?

Next article

Controlling data collection

PostHog offers a range of controls to help you manage data collection. This guide covers data collection controls available to you before data reaches PostHog servers. You should consider the following tools to help you manage data collection: Feature Description Asking for opt out A top-level opt out of all data collection Autocapture behavior Configure what elements and interactions are automatically captured Masking sensitive information Prevent specific sensitive data from being collected…

Read next article