fix(bridge): attribute analytics events to native SDK identity [NT-3855] - #408
Merged
Felipe Mamud (fmamud) merged 1 commit intoAug 4, 2026
Merged
Conversation
Bridge UMD bundles now stamp `library.name` as `@contentful/optimization-ios` and `@contentful/optimization-android` instead of the internal `-bridge` package identifier, so events surface as the customer-facing native SDKs. React Native suffixes `library.name` with `Platform.OS`, making RN-on-iOS and RN-on-Android distinguishable downstream. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Charles Hudson (phobetron)
approved these changes
Aug 4, 2026
Felipe Mamud (fmamud)
deleted the
fix/nt-3855-mobile-sdk-library-attribution
branch
August 4, 2026 11:04
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
library.nameas@contentful/optimization-ios/@contentful/optimization-androidinstead of the internal-bridgepackage identifier, so events surface as the customer-facing native SDKs in analytics.library.namewithPlatform.OS(e.g.@contentful/optimization-react-native-ios,-android), making RN-on-iOS and RN-on-Android distinguishable downstream.@contentful/optimization-js-bridgepackage identity all keep-bridgesince they are internal-only maintainer surfaces.Ticket: https://contentful.atlassian.net/browse/NT-3855
Test plan
pnpm --filter @contentful/optimization-js-bridge typecheckpnpm --filter @contentful/optimization-js-bridge test:unit(10/10)pnpm --filter @contentful/optimization-react-native typecheckpnpm --filter @contentful/optimization-react-native test:unit(99/99)pnpm lintpnpm format:checkCoordination note
Downstream analytics consumers keyed on the exact strings
@contentful/optimization-ios-bridge,@contentful/optimization-android-bridge, or@contentful/optimization-react-nativewill need mapping updates. This is the intended outcome of the ticket, but it needs alignment with dashboard/event-mapping owners before release.🤖 Generated with Claude Code