How to Add a “Do Not Sell” Banner for US State Laws on Your Website

Last updated on October 16, 2025

Welcome to CookieYes! In this guide, we will walk you through everything you need to know about achieving US State Laws cookie compliance and implementing a "Do Not Sell" banner on your website, all while respecting the Global Privacy Control (GPC) signal from your site visitors.

To get started with CookieYes, create your account and try it for free.

After you sign up, you will be directed to a setup screen. You can skip the set-up screens and head to the Dashboard.

How to add "Do Not Sell" banner

Step 1. From your Dashboard's top navigation panel, select Cookie Banner. Then select General from the left panel.

Step 2. Tap on Consent Template. Select US State Laws template for your website.

ccpa.png

Note: You can select the GDPR & US State Laws template if you want to display both the GDPR cookie banner and the US State Laws 'Do not sell' banner to your visitors. (Available on Pro and Ultimate plans).

Step 3. Under Geo-target banner, you can choose United States or Select Countries as per choice to show the banner only to users from that specific location. (Available on Pro and Ultimate plans).

Step 4. To enable Global Privacy Control, tap on the Content tab, select Opt-out Centre and scroll down. Enable Respect “Global Privacy Control” (Available on Pro and Ultimate plans). Then, edit the content for the “Global Privacy Control” notice and click "Publish Changes".

'Do Not Sell' Link in Footer

You can include a "Do Not Sell My Personal Information" link in your website footer, as required by US State Laws. From the General tab, scroll to “Do Not Sell” link, copy the code and add it to your website footer.

Step 5. Block cookies when visitors opt out of the sale or sharing of personal data To ensure that your website blocks cookies for users who opt out of the sale or sharing of personal data:

By default, the Sell or Share personal data option should be enabled. However, if you have disabled it at any point, follow these steps to turn it back on:

  1. Go to Cookie Manager > Cookie List.
  2. Select the relevant cookie category and click Edit Category.
  3. Enable the toggle Sell or Share personal data for that category.
  4. Click Save Draft, and then click Publish Changes to apply your updates.
publish-changes.gif

Step 6. You can further customize the US State Laws banner as per your liking. Below, find the step-by-step instructions on how to customize the layout, content, colour and add custom CSS.

Step 7. After you have done the required customizations, click on Publish Changes. 

Step 8. On the popup notification, click on Install the code now.

Step 9. Click on Copy Code to copy the CookieYes installation code to add it to your website.

Tip: You can share the code with a developer or your team by clicking on Send code to Developer link. Enter the email address and then click on Send Instructions. The recipient will get the code and instructions via email.

Step 10. Paste the CookieYes installation code between the <head> and </head> tags of your website’s source code before any other script

Select the CMS or website builders listed below to get the step-by-step instructions to add the code to your website.

Note: Don’t see your CMS in the list? 

CookieYes can work on all major CMS platforms and custom-coded sites. If you need help installing the code on your website, please get in touch with technical support.

Was this article helpful?

Have more questions?

Reach out to us and we'll answer them.

Contact us