IAB CCPA US Privacy String

Overview

The California Consumer Privacy Act (CCPA) was enacted to provide California consumers with greater transparency and control over their personal information.

IAB's US Privacy String were initially created to support compliance with CCPA. For more information, consider reviewing the following IAB CCPA's resources:

Implement the US Privacy String

Prerequisites

In order to set up US Privacy String on your app, you will first need to follow the set up guidance for IAB CCPA - US Privacy String in your OneTrust tenant.

How It Works

There is no code needed to initialize or set the IAB US Privacy String. The SDK handles it automatically based on the configuration in the OneTrust tenant.

🚧

The USP string is not written until you call startSDK() at least once.

Access the US Privacy String

The US Privacy String is saved in local storage under the IABUSPrivacy_String key.

const usp = localStorage.getItem("IABUSPrivacy_String");
console.log(usp)