WPLP Compliance Platform
  • Legal Pages
    • Privacy Policy
    • Terms and Conditions
    • Return & Refund Policy
    • Cookie Policy
    • More Legal Policies
  • Cookie Consent
    • Google Consent Mode v2
    • Cookie Scanner
    • Cookie Consent Manager
    • Cookie Banner Generator
    • Consent Management Platform
  • Pricing
  • Resources
    • Blog
    • Documentation
    • Support
    • GCM Support
Menu
  • Legal Pages
    • Privacy Policy
    • Terms and Conditions
    • Return & Refund Policy
    • Cookie Policy
    • More Legal Policies
  • Cookie Consent
    • Google Consent Mode v2
    • Cookie Scanner
    • Cookie Consent Manager
    • Cookie Banner Generator
    • Consent Management Platform
  • Pricing
  • Resources
    • Blog
    • Documentation
    • Support
    • GCM Support
Login
Get Started

Documentation

Find step-by-step guides, tutorials, and FAQs for all our latest plugins.

Getting Started

  • Upgrading To Pro Version of WP Cookie Consent Plugin
  • Installing and Creating Free Account With WP Cookie Consent
  • Dashboard
  • Setup Wizard
  • Usage of Cookie Consent Plugin
  • Overview of the Plugin

How-To Guides

  • How to Verify if Google Consent Mode is Properly Implemented
  • Google Consent Mode Troubleshooting with WPLP Compliance Platform
  • Implementing Google Consent V2 Mode using WPLP Compliance Platform
  • A/B Testing Feature
  • What is the Right to be Forgotten
  • What is the Right to Access?
  • Right to Data Portability Explained – What It Means & How to Comply
  • How to Add Custom CSS to WP Cookie Consent Banner
  • How To Schedule Automatic Cookie Scan
  • Setup Cookie Banner Language

Video Guides

  • Video Resources

FAQs

  • WP Cookie Consent – FAQ

Settings

  • Renew User Consent
  • ePrivacy Settings
  • ePrivacy Overview
  • Integrating Your Actions with CCPA
  • CCPA Settings
  • CCPA Settings -Overview
  • Consent Logging
  • Policy Data
  • Integrating Your Actions
  • GDPR Settings -Script Blocker
  • GDPR Settings
View Categories
  • Home
  • Docs
  • WP Cookie Consent
  • Settings
  • Integrating Your Actions with CCPA

Integrating Your Actions with CCPA

This page shows how you can integrate your actions based upon visitor’s response to CCPA Notice.

Here are the examples showing how you can integrate your actions based upon visitor’s response to CCPA Notice.

1) When CCPA doesn’t apply to a business

// check for user's optout
window.__uspapi("getUSPData", 1, function(consent, success) {
	if (success && consent.uspString === '1---') {
		// ccpa doesn’t apply
	} else {
		// error retrieving the uspString.
	}
});

2) When a user has opted out of selling the personal information

// check for user's optout
window.__uspapi("getUSPData", 1, function(consent, success) {
	if (success && consent.uspString === "1YYY") {
		// user has opted out
	} else {
		// error retrieving the uspString.
	}
});

3) User didn’t opt-out, business as usual

// check for user's optout
window.__uspapi("getUSPData", 1, function(consent, success) {
	if (success && consent.uspString === "1YNY") {
		// user has not opted out.
	} else {
		// error retrieving the uspString.
	}
});
What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on December 22, 2024
ePrivacy OverviewCCPA Settings

Our Products

  • Free WP Legal Pages
  • Free WP Cookie Consent
  • Comparison
  • Responsive Theme
  • Responsive Blocks
  • Responsive Addons For Elementor

Company

  • Blog
  • Affiliate Program
  • Refund Policy
  • Privacy Policy
  • GDPR Privacy Policy
  • GDPR Cookie Policy
  • Terms of Use

Support

  • Documentation
  • Bug Bounty Program
  • Changelog
  • Contact Us
Google Certified CMP Badge
WP Cookie Consent - IAB Approved CMP
X-twitter Youtube
Copyright © 2010-2025 WPLegalPages Inc