> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Compliance & privacy

> Implement GDPR, CCPA, and privacy compliance in your Rocket.new site with consent banners and policies.

export const LlmsDirective = () => <blockquote className="llms-directive">
    For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
    For a lightweight markdown version of this page, append .md to the URL.
  </blockquote>;

<LlmsDirective />

<Frame caption="Video walkthrough of privacy compliance features in Rocket">
  <iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/EUBTdbIDhsQ" title="Compliance & privacy" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</Frame>

Privacy regulations carry real financial risk. GDPR fines can reach 20 million euros or 4% of annual global turnover, whichever is higher ([GDPR Article 83](https://gdpr-info.eu/art-83-gdpr/)). Rocket does not add compliance features automatically, so you need to ask it to implement cookie consent banners, policy pages, and geo-based consent flows before you launch.

## What you can ask Rocket to implement

Tell Rocket in chat what to add. Below are the most common requests.

### Cookie consent banners

A consent banner lets visitors choose which cookies your site can set. Ask Rocket to add one that matches your site's design.

```plaintext wrap theme={null}
Add a cookie consent banner to my site. It should match the design and let visitors choose which cookies to accept.
```

### GDPR compliance

<Tooltip headline="GDPR" tip="General Data Protection Regulation: an EU law that requires websites to get explicit, granular consent before collecting personal data from EU visitors.">GDPR</Tooltip> requires granular consent categories so EU visitors control what data you collect:

* **Necessary**: always active (site functionality)
* **Analytics**: traffic tracking and [performance measurement](/build/measure/performance)
* **Marketing**: advertising and retargeting
* **Preferences**: language, theme, and personalization

```plaintext wrap theme={null}
Implement GDPR-compliant cookie consent with granular categories. Visitors should be able to choose exactly what they consent to.
```

### CCPA compliance

<Tooltip headline="CCPA" tip="California Consumer Privacy Act: requires businesses to provide California residents with a visible opt-out link for the sale of their personal information.">CCPA</Tooltip> requires a visible opt-out for California visitors. CCPA penalties reach up to \$7,988 per intentional violation as of 2025 ([California Privacy Protection Agency](https://cppa.ca.gov/regulations/cpi_adjustment.html)).

```plaintext wrap theme={null}
Add CCPA compliance with a "Do Not Sell My Personal Information" link in the footer.
```

### Privacy and cookie policy pages

Policy pages explain what data you collect and how you use it. Ask Rocket to generate them based on your site's actual data practices.

```plaintext wrap theme={null}
Generate a privacy policy page and a cookie policy page for my site. Tailor them to the services and data I collect.
```

### Geo-based consent

Different regions have different rules. Ask Rocket to show the right consent flow based on where the visitor is located.

```plaintext wrap theme={null}
Show the full GDPR consent banner to EU visitors, CCPA options to California visitors, and a simplified notice for everyone else.
```

<Tip>
  Once your consent settings are in place, they affect what your [analytics](/build/measure/analytics) can track. Set up consent first, then configure analytics.
</Tip>

## Commands

Use these slash commands from chat to implement and audit privacy compliance. You can find the full list of available commands in the [commands reference](/build/editor/commands).

<Tabs>
  <Tab title="Implement">
    ### /Implement Privacy Compliance

    Add consent banners, cookie categorization, and policy pages to your codebase.

    **Examples:**

    * `/Implement Privacy Compliance`
    * `/Implement Privacy Compliance for user data and cookies`
  </Tab>

  <Tab title="Audit">
    ### /Generate Privacy Report

    Analyze your codebase and generate a privacy compliance report covering cookie usage, consent flows, and data handling practices.

    **Examples:**

    * `/Generate Privacy Report`
    * `/Generate Privacy Report for data handling`
  </Tab>
</Tabs>

<Divider />

## What's next?

<CardGroup cols={2}>
  <Card title="Accessibility" icon="universal-access" href="/build/polish/accessibility">
    Pair compliance with accessibility for complete legal and usability coverage.
  </Card>

  <Card title="Custom code" icon="file-code" href="/build/editor/custom-code">
    Add third-party scripts that respect your consent settings.
  </Card>

  <Card title="Launch your app" icon="desktop" href="/build/launch-web/launch-your-site">
    Publish your site once compliance is in place.
  </Card>
</CardGroup>
