PostHog & CCPA compliance

If you have users who are Californian residents, it's important to understand the implications of handling their data privately and securely.

This guide explains what the CCPA is, what data must be protected and what your options are for CCPA-compliant analytics.

This guide is 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.

What is the CCPA?

The California Consumer Privacy Act of 2018 (CCPA) gives consumers control over the personal information that businesses collect about them. The California Privacy Rights Act of 2020 (CPRA) amended the CCPA. Its changes took effect on January 1, 2023, and became enforceable on July 1, 2023. In this guide, "CCPA" means the CCPA as amended by the CPRA.

The CCPA gives consumers these rights, among others:

  • The right to know about the personal information a business collects about them and how it is used and shared.
  • The right to delete personal information collected from them (with some exceptions). Learn about deleting personal information.
  • The right to opt out of the sale or sharing of their personal information.
  • The right to correct inaccurate personal information (added by the CPRA).
  • The right to limit the use and disclosure of sensitive personal information (added by the CPRA).
  • The right to non-discrimination for exercising their CCPA rights.

What data is protected under CCPA?

Only California residents have rights under the CCPA. A California resident is a person who resides in California, even if they are temporarily outside of the state.

The CCPA applies to for-profit businesses that do business in California and meet any (not all) of the following criteria:

  • Had annual gross revenue of more than $25 million in the preceding calendar year, adjusted for inflation. The California Privacy Protection Agency adjusts this figure every two years. From January 1, 2025, it is $26,625,000.
  • Buy, sell, or share the personal information of 100,000 or more California consumers or households each year.
  • Derive 50% or more of their annual revenue from selling or sharing California residents' personal information.

Personal information is protected under CCPA and is considered information that identifies or could be linked with a person.

In short, any information which is tied to a specific individual can be considered Personal Information, from their social security number or license plate number to photos, emails, URLs, IP addresses or even pseudonyms.

What is the impact of CCPA on product analytics?

The CCPA requires businesses to give consumers certain information in a "notice at collection". This means that, when people sign up to use your product, you need to explain how you intend to use their data to improve the product for them.

A notice at collection must list the categories of personal information businesses collect about consumers and the purposes for which they use the categories of information. The notice must also contain a link to the business's privacy policy, where consumers can get more details on your privacy practices. Learn more about controlling what you collect.

The CCPA also sets deadlines for responding to consumer requests. You have 45 days to respond to a request to delete, correct, or know about the personal information stored about a user. You can extend this once by another 45 days if reasonably necessary, as long as you tell the user within the first 45 days. Learn more about deleting personal information.

Is PostHog a service provider under the CCPA?

If you use PostHog Cloud, our Data Processing Agreement (DPA) covers the CCPA as amended by the CPRA. In the DPA, PostHog acknowledges that it is a service provider, and agrees not to sell or share your personal data or to use it for any purpose other than to provide our services to you. Learn how to get a signed DPA.

How to set PostHog up for CCPA compliance

We recommend using PostHog Cloud US for CCPA compliance, but you can self-host your analytics on your own infrastructure and maintain full control of the data – i.e. you decide how and where to host any personal information. It also means you have full control of the underlying database, making it possible for you to easily share any information stored about an individual or delete any personal data.

Step 1: Choose a hosting provider

We recommend using PostHog Cloud US for CCPA compliance. If self-hosting, the steps will depend on where you're hosting your data.

Step 2: Deploy PostHog

If using PostHog Cloud, simply follow the steps in the onboarding process to start sending events. Read our integration documentation for more information on sending events to PostHog.

Deploying PostHog onto your own infrastructure is straightforward but we do not provide support for self-hosted instances. You can follow our standard deployment guides to get started.

Step 3: Security configuration

When setting up a PostHog instance we strongly recommend that you use HTTPS to secure data in transmission, whether or not your instance has access to the wider internet. We also have a guide for securing PostHog which you should follow to further protect your instance.

We also strongly recommend that you limit access to PostHog and the infrastructure it is deployed on only to people who are authorized and need to access the data, including shared dashboard links. Although aggregate data in dashboards should not contain personal data, it may be possible for malicious users to infer personal data unless it is evaluated thoroughly via expert determination.

Finally, we advise caution when installing, building and enabling apps for your PostHog instance. Apps are a great way to share and augment data from your instance with other systems, but it's essential to ensure you have the proper controls in place when sharing personal data outside of your self-hosted PostHog instance.

If a user request the deletion of their information under the CCPA, you can delete their data programmatically or manually. Learn more about deleting personal information.

Still have questions?

Was this page useful?