Skip to content

Attach identityType to Track() events, matching userId's existing persistence - #826

Merged
nattb8 merged 1 commit into
mainfrom
feat/audience-persist-identity
Aug 4, 2026
Merged

Attach identityType to Track() events, matching userId's existing persistence#826
nattb8 merged 1 commit into
mainfrom
feat/audience-persist-identity

Conversation

@nattb8

@nattb8 nattb8 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

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
  • Unity Editor/PlayMode tests (GameCI, requires a licensed CI runner — not run locally)

@nattb8
nattb8 force-pushed the feat/audience-persist-identity branch from 0eb33bd to ac64960 Compare August 3, 2026 22:53
@nattb8
nattb8 marked this pull request as ready for review August 3, 2026 23:04
@nattb8
nattb8 requested review from a team as code owners 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
nattb8 force-pushed the feat/audience-persist-identity branch from ac64960 to a768bbf Compare August 3, 2026 23:08
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Audience SDK — Build Size

Platform SDK Size Change
Android 0.40 / 20.00 MB +0.03 MB
Windows 0.17 / 20.00 MB +0.01 MB
iOS 8.60 / 20.00 MB +0.09 MB
macOS 1.00 / 20.00 MB +0.10 MB

SDK Size = build minus empty app. Change = vs baseline. Fails if any platform exceeds its absolute size limit.

@nattb8
nattb8 merged commit 6d34728 into main Aug 4, 2026
57 of 73 checks passed
@nattb8
nattb8 deleted the feat/audience-persist-identity branch August 4, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants