feat: enrich event stream with Kit userAttributes#79
Merged
alexs-mparticle merged 6 commits intodevelopmentfrom Mar 25, 2026
Merged
feat: enrich event stream with Kit userAttributes#79alexs-mparticle merged 6 commits intodevelopmentfrom
alexs-mparticle merged 6 commits intodevelopmentfrom
Conversation
Events sent to Rokt's __event_stream__ now include the Kit's current userAttributes as the UserAttributes property. This ensures user attributes are always fresh (sourced from the Kit's own state rather than potentially stale per-event data) and present even for queued events that were created before user identification. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merge origin/development into almondine-snowplow, combining: - PR: enrich event stream with Kit userAttributes - development: defensive queue for event stream, session ID passing, setIntegrationAttribute, and logSelectPlacementsEvent fix The enrichment now applies to both live and queued events via a shared _enrichEvent helper that merges userAttributes into a copy of each event.
Dist files are generated by CI, not committed manually.
jaissica12
approved these changes
Mar 25, 2026
github-actions bot
pushed a commit
that referenced
this pull request
Mar 25, 2026
# [1.19.0](v1.18.1...v1.19.0) (2026-03-25) ### Bug Fixes * Update adblock measurement target origin ([#68](#68)) ([8a524c2](8a524c2)) ### Features * add /verify skill and AGENTS.md for agent guidance ([#69](#69)) ([21134b0](21134b0)), closes [hi#level](https://github.com/hi/issues/level) * add defensive queue to _sendEventStream to prevent event loss ([#78](#78)) ([82b8dfc](82b8dfc)) * enrich event stream with Kit userAttributes ([#79](#79)) ([7c27cd3](7c27cd3))
Collaborator
|
🎉 This PR is included in version 1.19.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
__event_stream__now include the Kit's currentuserAttributesas theUserAttributesproperty on each eventmergeObjectsto create a shallow copy, so the original event is never mutatedself.userAttributesis used as the authoritative source (always fresh, covers queued events before user identification)Test plan
UserAttributesproperty🤖 Generated with Claude Code