> ## Documentation Index
> Fetch the complete documentation index at: https://developer.onetrust.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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:

* [About the IAB CCPA](https://www.iab.com/our-story/)
* [IAB CCPA US Privacy String (Github)](https://github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/US%20Privacy%20String.md)
* [IAB CCPA US Privacy API (Github)](https://github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/USP%20API.md)

## 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](https://developer.onetrust.com/onetrust/docs/templates) 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.

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

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