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 in 3 steps.

We recommend the title "Do Not Sell My Personal Information", since the CCPA names specific text for the opt-out link.

Choose No to show the banner only when the visitor 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. Tag each JavaScript script you want CCPA Opt-out to control.

CCPA Opt-out levels and categories.

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 for CCPA Opt-out.

Adjust your JavaScript scripts

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

You stay responsible for respecting the choices visitors make, and for an opt-out for anything the CCPA counts as a "sale" of personal information.

Example

CCPA Opt-out loads the Google Analytics tracking code for a visitor who has not opted out, and skips it for a visitor who has opted out.

  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. 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>