Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Aug 24, 2023
1 parent d4ec7e5 commit 35f95a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/consent/consent-wrapper-onetrust/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
This package is for the OneTrust integration for analytics consent
# @segment/analytics-consent-wrapper-onetrust

Try our Playground!
See: [Next.js CodeSandbox using npm initialization](https://codesandbox.io/p/sandbox/focused-bhaskara-jysqr5)
### Try our Playground! [Next.js CodeSandbox](https://codesandbox.io/p/sandbox/focused-bhaskara-jysqr5) 🚀

<img src="img/onetrust-popup.jpg" width="500" />

# Quick Start

Expand All @@ -24,7 +25,7 @@ See: [Next.js CodeSandbox using npm initialization](https://codesandbox.io/p/san
### Ensure that consent is enabled and that you have created your Integration -> Consent Category Mappings

- Ensure that your integrations in the Segment UI have consent enabled, and that they map to your Consent Category IDs (also called Cookie Group IDs or Cookie Consent IDs).
The IDs look like "CAT0001", "CAT0002"and are configurable in OneTrust
The IDs look like "C0001", "C0002"and are configurable in OneTrust
![onetrust category ids](img/onetrust-cat-id.jpg)

- Debugging: this library expects the [OneTrust Banner SDK](https://community.cookiepro.com/s/article/UUID-d8291f61-aa31-813a-ef16-3f6dec73d643?language=en_US) to be available in order interact with OneTrust. This library derives the group IDs that are active for the current user from the `window.OneTrustActiveGroups` object provided by the OneTrust SDK. [Read this for more information [community.cookiepro.com]](https://community.cookiepro.com/s/article/UUID-66bcaaf1-c7ca-5f32-6760-c75a1337c226?language=en_US).
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35f95a7

Please sign in to comment.