Skip to content

feat(audience): remove session_start and session_end events [SDK-689]#2903

Merged
nattb8 merged 1 commit into
mainfrom
feat/sdk-689-remove-session-events
Jul 17, 2026
Merged

feat(audience): remove session_start and session_end events [SDK-689]#2903
nattb8 merged 1 commit into
mainfrom
feat/sdk-689-remove-session-events

Conversation

@nattb8

@nattb8 nattb8 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Stops the pixel and web SDK from emitting the client-side session_start and session_end events. Session tracking is otherwise unchanged: every message still carries a sessionId from the 30-minute rolling session cookie, so session boundaries are derived from that rather than from dedicated events. Internally the now-unused getOrCreateSession/SessionResult are replaced by getOrCreateSessionId.

Note for consumers: session_start/session_end are no longer emitted by either surface, and @imtbl/audience-core no longer exports getOrCreateSession/SessionResult.

Ticket: SDK-689

Test plan

  • pnpm test passes in core (248), pixel (50), and sdk (89 + 5 CDN-artifact build test)
  • pnpm lint passes in core, pixel, and sdk
  • Confirmed no session_start/session_end remain in source and sessionId is still stamped on every message
  • Verified in a running integration (not done here)

🤖 Generated with Claude Code

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>
@nx-cloud

nx-cloud Bot commented Jul 17, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 2be1191

Command Status Duration Result
nx affected -t build,lint,test ✅ Succeeded 9s View ↗
nx run-many -p @imtbl/sdk,@imtbl/checkout-widge... ✅ Succeeded 1s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-17 03:22:45 UTC

@github-actions

Copy link
Copy Markdown

✅ Pixel Bundle Size — @imtbl/pixel

Metric Size Delta vs main
Gzipped 6307 bytes (6.15 KB) -223 bytes
Raw (minified) 17024 bytes -1121 bytes

Budget: 10.00 KB gzipped (warn at 8.00 KB)

@github-actions

Copy link
Copy Markdown

⚠️ Audience Bundle Size — @imtbl/audience

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
nattb8 marked this pull request as ready for review July 17, 2026 03:27
@nattb8
nattb8 requested a review from a team as a code owner July 17, 2026 03:27
@nattb8
nattb8 added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit 3abe67e Jul 17, 2026
10 checks passed
@nattb8
nattb8 deleted the feat/sdk-689-remove-session-events branch July 17, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants