segmentio / analytics-next

Segment Analytics.js 2.0
https://segment.com/docs/connections/sources/catalog/libraries/website/javascript
MIT License
402 stars 136 forks source link

Add consent opt out #1063

Closed silesky closed 5 months ago

silesky commented 6 months ago

Add support for opt-out consent.

OneTrust Consent Model Behavior
Opt-in Opt-in
Opt-out Opt-out
Implicit Consent Opt-in
Default (any other model) Opt-out

Note: to override the default behavior for OneTrust, the following setting(s) have been added:

withOneTrust(analytics, { consentModel: () => 'opt-out' | 'opt-in' })
changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: f294612a13f501793c9ce8246d858b9429bf5db8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------------------------------- | ----- | | @segment/analytics-consent-tools | Major | | @segment/analytics-consent-wrapper-onetrust | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR