Free tool

Free CCPA Opt-out

TermsFeed Free CCPA Opt-out adds a "Do Not Sell" opt-out banner to your website for the California Consumer Privacy Act (CCPA) and stops tagged ad scripts for visitors who opt out.

  • CCPA
  • Personalized Ads

Build your CCPA Opt-out.

Customize your CCPA Opt-out tool in 3 easy steps.

We recommend not changing the title as CCPA may require this specific text, ie. Do Not Sell My Personal Information.

Choose No to show the banner only when the user clicks the Change My Preferences button, not at every page load.

Copy your CCPA Opt-out code below, then tag your JavaScript scripts as the next steps show.

Place the code right after <body>.

Live preview

How to implement CCPA Opt-out.

  1. Customize the CCPA Opt-out script.

  2. Place the code right after <body>.

  3. For any <script> element you want to toggle through the CCPA Opt-out tool, change the type="text/javascript" parameter to type="text/plain".

CCPA Opt-out levels and categories.

The current version of CCPA Opt-out has these levels.

Personalized Ads

Third-party JavaScript scripts that serve personalized ads to website visitors.

<script type="text/plain" ccpa-opt-out="personalized-ads"></script>

How to tag your JavaScript scripts.

Adjust your JavaScript scripts

The CCPA treats serving personalized ads as a possible "sale" of personal information. CCPA Opt-out by TermsFeed lets your website visitors opt out of the personalized ads you serve through third-party JavaScript scripts, such as Google Ads.

It's still up to you to respect the choices users make, and to give them an opt-out, as the CCPA defines it, for anything that counts as a "sale" of personal information.

Example

Take the Google Analytics code as an example. CCPA Opt-out by TermsFeed loads the Google Analytics tracking code for a user who has not opted out, and skips it for a user who has opted out.

To do that, follow these steps.

  1. Organize your different JavaScript scripts into separate <script> elements.

  2. For any <script> element you want to toggle through the CCPA Opt-out tool, change the type="text/javascript" parameter to type="text/plain".

  3. Then, add a ccpa-opt-out="personalized-ads" attribute to each script.

<!-- Google Tracking Code -->
<script type="text/plain" ccpa-opt-out="personalized-ads">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', /* Google Property ID */, 'auto');
ga('send', 'pageview');
</script>