Skip to content

refactor(checkout-widgets): remove Segment react-analytics#2914

Open
alex-connolly wants to merge 1 commit into
mainfrom
refactor/checkout-remove-segment-analytics
Open

refactor(checkout-widgets): remove Segment react-analytics#2914
alex-connolly wants to merge 1 commit into
mainfrom
refactor/checkout-remove-segment-analytics

Conversation

@alex-connolly

Copy link
Copy Markdown
Contributor

Summary

  • Remove @imtbl/react-analytics, @segment/analytics-next, and the checkout analytics-provider wiring
  • Strip all Segment track / page / identify call sites from checkout widgets
  • Leave host-facing widget events unchanged (e.g. sale success/failure EventTarget events)

Test plan

  • Checkout widgets still mount (connect, bridge, swap, sale, wallet, on-ramp, purchase, add-tokens)
  • Widget host events still fire as before
  • Confirm no Segment / react-analytics network traffic from widgets
  • CI lint/typecheck for checkout-widgets passes

Made with Cursor

Drop product analytics from checkout widgets: remove
@imtbl/react-analytics, Segment, analytics-provider, and all
track/page/identify call sites. Host widget events are unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alex-connolly
alex-connolly requested review from a team as code owners July 25, 2026 18:54
@github-actions

Copy link
Copy Markdown

⚠️ Audience Bundle Size — @imtbl/audience

Metric Size Delta vs main (f8ac366)
Gzipped 21683 bytes (21.17 KB) 0 bytes
Raw (minified) 63197 bytes 0 bytes

Budget: 24.00 KB gzipped (warn at 20.00 KB)

⚠️ Approaching budget — gzipped size exceeds 20.00 KB warning threshold.

@nx-cloud

nx-cloud Bot commented Jul 25, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 1d8fce4

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

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


☁️ Nx Cloud last updated this comment at 2026-07-25 19:00:07 UTC

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.

1 participant