Uh oh!
There was an error while loading. Please reload this page.
fix: revert traits behavior - #588
Conversation
- Reverted the traits behavior to not persist after an `identify` event - Added example plugin `InjectTraits` and documentation for how to preserve this behavior - Added migration guide for Plugins from V1 to V2
| ### Context Traits | ||
| Previous versions of this library used to persist `traits` accross events after an `identify` was sent inside `context.traits` we're not supporting this out of the box in V2 and the rest of our mobile libraries due concerns of data privacy for some device destinations. Some device mode destinations might not accept events if they contain identifiable data. |
There was a problem hiding this comment.
Previous versions of this library used to persist traits in context.traits across all event types after an identify event was sent. We no longer not support this out of the box in V2 as well as the rest of our mobile libraries due to concerns of data privacy for some device mode destinations. Some device mode destinations might not accept events if they contain identifiable data as it is against their Terms of Service.
| segmentClient.add({ plugin: new InjectTraits() }); | ||
| ``` | ||
| Please note that as this is an example we don't offer full support for it nor release it as an npm package. No newline at end of file |
There was a problem hiding this comment.
Please note that as this is an example we don't offer full support for it and will not release it as an NPM package.
## [@segment/analytics-react-native-v2.3.2](https://github.com/segmentio/analytics-react-native/compare/@segment/analytics-react-native-v2.3.1...@segment/analytics-react-native-v2.3.2) (2022-06-30) ### Features * Add AdvertisingId Plugin ([#574](#574)) ([9f47e67](9f47e67)) ### Bug Fixes * revert traits behavior ([#588](#588)) ([516aacd](516aacd))
oscb
commented
Jun 30, 2022
🎉 This PR is included in version @segment/analytics-react-native-v2.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
identifyeventInjectTraitsand documentation for how to preserve this behavior