# Track Privacy Sandbox browser data with the web trackers
> Capture Privacy Sandbox data including Topics API information for privacy-preserving interest-based advertising and content personalization.
> Source: https://docs.snowplow.io/docs/sources/web-trackers/tracking-events/privacy-sandbox/
> Documentation index: https://docs.snowplow.io/llms.txt

> **Note:** Privacy Sandbox has been deprecated by Google. This plugin remains available but the underlying browser API may no longer be supported.

The plugin allows for adding Privacy Sandbox [Topics API](https://developer.chrome.com/docs/privacy-sandbox/topics/overview/) data to your Snowplow tracking. To learn more about Privacy Sandbox visit the official [website](https://www.privacysandbox.com/).

> **Note:** Some of the APIs and data will not be available by default in all users. This is commonly due to these APIs being dependent on browser support, user privacy preferences, browser feature-flags or ad-blocking software. The plugin will not modify or request access explicitly to any of these features if not available by default.

> **Note:** The plugin is available since version 3.14 of the tracker.

The Privacy Sandbox entity is **automatically tracked** once configured.

## Install plugin

**JavaScript (tag):**

| Tracker Distribution | Included |
| -------------------- | -------- |
| `sp.js`              | ❌        |
| `sp.lite.js`         | ❌        |

**Download:**

|                                             |                                                                                                                |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| Download from GitHub Releases (Recommended) | [Github Releases (plugins.umd.zip)](https://github.com/snowplow/snowplow-javascript-tracker/releases)          |
| Available on jsDelivr                       | [jsDelivr](https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-privacy-sandbox@4.10.2/dist/index.umd.min.js) |
| Available on unpkg                          | [unpkg](https://unpkg.com/@snowplow/browser-plugin-privacy-sandbox@4.10.2/dist/index.umd.min.js)               |

**Note:** The links to the CDNs above are pinned to a specific version at the time of writing. Check the [plugin's GitHub releases](https://github.com/snowplow/snowplow-javascript-tracker/releases) for newer versions, and update the pinned version when you upgrade.

```javascript
window.snowplow('addPlugin',
  "https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-privacy-sandbox@4.10.2/dist/index.umd.min.js",
  ["snowplowPrivacySandbox", "PrivacySandboxPlugin"]
);
```

**Browser (npm):**

- `npm install @snowplow/browser-plugin-privacy-sandbox`
- `yarn add @snowplow/browser-plugin-privacy-sandbox`
- `pnpm add @snowplow/browser-plugin-privacy-sandbox`

```javascript
import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { PrivacySandboxPlugin } from '@snowplow/browser-plugin-privacy-sandbox';

newTracker('sp1', '{{collector_url}}', {
   appId: 'my-app-id',
   plugins: [ PrivacySandboxPlugin() ],
});
```

***

## Context entity

Adding this plugin will automatically capture [this](https://github.com/snowplow/iglu-central/blob/master/schemas/com.google.privacysandbox/topics/jsonschema/1-0-0) entity.
