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.

Initially prompted by regulation in the California Consumer Privacy Act (CCPA), the IAB's US Privacy String were created to support compliance with the CCPA. For more information, consider reviewing the following IAB CCPA's resources:

Implement the US Privacy String

Prerequisites

In order to setup 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

With this latest implementation, there is no SDK code for the app to call to initialize or set the IAB US Privacy String. The SDK handles it automatically based on the configuration in the OneTrust tenant.

❗️

Note

The USP string is not written until you call setupUI() at least once. oneTrustTV.Settings() is only setting the values needed for initialization but does not download any data. Data will only start downloading once setupUI() is called.

Access the US Privacy String

Per IAB Standards, the US Privacy String is saved to UserDefaults under the IABUSPrivacy_String key.

const ccpaString = localStorage.getItem('IABUSPrivacy_String');