Privacy Sandbox
The plugin allows for adding Privacy Sandbox related data to your Snowplow tracking. To learn more about the Privacy Sandbox you can visit the official website. As more and more APIs become available or further refined, we will be upgrading the plugin with more capabilities and options as more APIs are added to the Privacy Sandbox.
Currently supported APIs:
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.
The plugin is available since version 3.14 of the tracker.
Installationโ
npm install @snowplow/browser-plugin-privacy-sandbox
yarn add @snowplow/browser-plugin-privacy-sandbox
pnpm add @snowplow/browser-plugin-privacy-sandbox
Initializationโ
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โ
Adding this plugin will automatically capture the following context:
Context |
---|
iglu:com.google.privacysandbox/topics/jsonschema/1-0-0 |