feat(audience): add DNT/GPC detection utility to web SDK#2828
Closed
ImmutableJeffrey wants to merge 5 commits intofeat/audience-4-attribution-cdnfrom
Closed
feat(audience): add DNT/GPC detection utility to web SDK#2828ImmutableJeffrey wants to merge 5 commits intofeat/audience-4-attribution-cdnfrom
ImmutableJeffrey wants to merge 5 commits intofeat/audience-4-attribution-cdnfrom
Conversation
Bug fixes: - Fix generateId fallback to UUID v4 format (backend requires UUID) - Replace sendBeacon with fetch+keepalive (sendBeacon can't set auth header) - Cap batch size at 100 messages per flush (backend maxItems limit) New capabilities: - Export getCookie/setCookie/deleteCookie; add domain param for cross-subdomain - collectContext() now accepts optional library/version params (backward compatible) - Add queue.purge(), transform(), flushUnload(), onFlush, staleFilter - Add storage prefix param for per-surface localStorage isolation - Add transport keepalive option - Add ConsentLevel, ConsentStatus, SESSION_COOKIE shared types - Add validation module (isTimestampValid, isAliasValid, truncate) - Add packages/audience/sdk to pnpm workspace Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…kies Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…n lifecycle Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds detectPrivacySignal() as an exported utility that studios can call before setting consent. Not wired into ConsentManager — studios decide how to handle the signal in their CMP. Deferred from v1. Preserved here for v2. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
View your CI Pipeline Execution ↗ for commit 780a5eb
☁️ Nx Cloud last updated this comment at |
d66a682 to
23ed51b
Compare
Contributor
Author
|
DNT/GPC detection is already in core via detectDoNotTrack() from the pixel-core-consent branch. No additional work needed. |
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
Adds
detectPrivacySignal()as an exported utility that studios can call before setting consent. Not wired into ConsentManager — studios decide how to handle the signal in their CMP.Deferred from v1. Preserved here for v2.
Stacked on: #2827
🤖 Generated with Claude Code