Attach identityType to Track() events, matching userId's existing persistence - #826
Merged
Conversation
nattb8
force-pushed
the
feat/audience-persist-identity
branch
from
August 3, 2026 22:53
0eb33bd to
ac64960
Compare
nattb8
marked this pull request as ready for review
August 3, 2026 23:04
userId already carries forward from the last Identify() call onto subsequent Track() events; identityType did not. Mirrors Segment/PostHog, which persist the last identify()'d identity and reattach it to later events until the next identify() or a reset/consent downgrade.
nattb8
force-pushed
the
feat/audience-persist-identity
branch
from
August 3, 2026 23:08
ac64960 to
a768bbf
Compare
Audience SDK — Build Size
SDK Size = build minus empty app. Change = vs baseline. Fails if any platform exceeds its absolute size limit. |
JCSanPedro
approved these changes
Aug 4, 2026
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
userId already carries forward from the last Identify() call onto every subsequent Track() event; identityType did not. This persists identityType alongside userId in the SDK's internal consent state and attaches it to Track() the same way, clearing both on Reset/Shutdown/consent downgrade.
Test plan
dotnet test src/Audience.Build/Audience.Tests/Audience.Tests.csproj— 393 tests, 0 failed.github/scripts/audience/check-package-meta.sh— package meta-complete