feat(pixel): remove identify() from pixel tracker#2846
Merged
Conversation
The pixel is a passive tracking surface — studios needing user-level identification should use @imtbl/audience-sdk instead. This sharpens the boundary between the two surfaces and removes dead code that no realistic integrator would call. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
aa411f3 to
4316bf9
Compare
|
View your CI Pipeline Execution ↗ for commit cfc626c
☁️ Nx Cloud last updated this comment at |
|
View your CI Pipeline Execution ↗ for commit 4316bf9
☁️ Nx Cloud last updated this comment at |
✅ Pixel Bundle Size — @imtbl/pixel
Budget: 10.00 KB gzipped (warn at 8.00 KB) |
nattb8
previously approved these changes
Apr 10, 2026
With identify() gone, nothing ever sets userId — the ternaries were always evaluating to undefined. Replace with explicit undefined to make the intent clear. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nattb8
approved these changes
Apr 10, 2026
bkbooth
added a commit
that referenced
this pull request
Apr 10, 2026
The identify() method is being removed from the pixel (PR #2846). Update the README to remove the Identity section and adjust the full consent description to reflect that identity signals come only from form submission auto-capture. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Closes SDK-101
identify()method from thePixelclass and the'identify'command handler frombootstrap.ts@imtbl/audience-coreor@imtbl/audience-sdk— the SDK retains full identify/alias supportWhy
The pixel is a passive tracking surface — its job is auto-collecting device fingerprints, attribution context, and page views with zero instrumentation from the studio.
identify()conflicts with this design:<script>snippet onto a landing page. The integrator doesn't have access touserIdoridentityType— those come from authenticated sessions, which is Web SDK territory.fullconsent, which is not the pixel's primary use case (anonymousconsent for device fingerprinting/attribution).fullconsent).Bundle impact: −315 bytes raw / −83 bytes gzipped (modest, since TS types are erased at compile time — the real win is architectural clarity).
Test plan
🤖 Generated with Claude Code