Home > Docs > GDPR Cookie Consent > Add “Do not sell” Banner for US State Laws (CCPA)

Add “Do not sell” Banner for US State Laws (CCPA)

Last updated on March 14, 2025

Suppose you want to add a “Do Not Sell My Personal Information” banner to your website. In that case, you may aim to comply with privacy regulations, such as the California Consumer Privacy Act (CCPA) in the United States. This banner allows users to opt out of selling their personal information. This article explains how to add this consent banner to your site using the GDPR Cookie Consent plugin.

Step 1. From the dashboard, navigate to Cookie Consent. This displays the content of the Cookie Banner tab.

Step 2. Now, select the Consent Law as a US State Law and set the Customize option to US State Laws.

Step 3. In the Cookie Banner tab, move to the General section.

Step 4. Set the Geo-target Banner option.

Step 5. Click on the Show advanced settings section. Now, enable Respect Do Not Track & Global Privacy Control and click Update Settings.

Set law as US State Laws and enable Global Privacy - US State Laws (CCPA)
Set law as US State Laws and enable Global Privacy – US State Laws (CCPA)

Step 6. To block the website visitor when opting out of the sale of personal data, navigate to Manage cookies > Cookie List > Edit Category and enable the option “Sell or Share personal data” for the particular cookie category and click “Save Changes” to apply the changes.

Do not sell or share personal data - US State Laws (CCPA)
Do not sell or share personal data – US State Laws (CCPA)

Step 7. The “Do not sell link” can be added to the footer of your webpage by just copy-pasting the HTML link provided in the option Do not sell link. This step is optional.

Do not sell link - US State Laws (CCPA)
Do not sell link – US State Laws (CCPA)

Step 8. You can further customize the US State Laws banner as per your liking. After you have done the required customizations, click on Update Settings. The image below shows the opt-out preference banner on the front end.

Opt-out preferences - US State Laws (CCPA)
Opt-out preferences – US State Laws