feat(audience): remove session_start and session_end events [SDK-689]#2903
Merged
Conversation
Stop emitting client-side session_start/session_end from the pixel and web SDK. Session tracking is unchanged: every message still carries sessionId from the 30-minute rolling session cookie, so boundaries are derived from that rather than dedicated events. Replaces the now-unused getOrCreateSession /SessionResult with getOrCreateSessionId. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
View your CI Pipeline Execution ↗ for commit 2be1191
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
✅ Pixel Bundle Size — @imtbl/pixel
Budget: 10.00 KB gzipped (warn at 8.00 KB) |
|
| Metric | Size | Delta vs main (4bad096) |
|---|---|---|
| Gzipped | 20503 bytes (20.02 KB) | -196 bytes |
| Raw (minified) | 59640 bytes | -860 bytes |
Budget: 24.00 KB gzipped (warn at 20.00 KB)
⚠️ Approaching budget — gzipped size exceeds 20.00 KB warning threshold.
nattb8
marked this pull request as ready for review
July 17, 2026 03:27
shineli1984
approved these changes
Jul 17, 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
Stops the pixel and web SDK from emitting the client-side
session_startandsession_endevents. Session tracking is otherwise unchanged: every message still carries asessionIdfrom the 30-minute rolling session cookie, so session boundaries are derived from that rather than from dedicated events. Internally the now-unusedgetOrCreateSession/SessionResultare replaced bygetOrCreateSessionId.Note for consumers:
session_start/session_endare no longer emitted by either surface, and@imtbl/audience-coreno longer exportsgetOrCreateSession/SessionResult.Ticket: SDK-689
Test plan
pnpm testpasses in core (248), pixel (50), and sdk (89 + 5 CDN-artifact build test)pnpm lintpasses in core, pixel, and sdksession_start/session_endremain in source andsessionIdis still stamped on every message🤖 Generated with Claude Code