feat(telemetry): add CLI onboarding funnel events#1286
Conversation
Implement 8 Amplitude telemetry events to track conversion through the Cloud onboarding flow: share button click, signup redirect/completion, artifact upload, cloud redirect, and DW setup shown/completed/skipped. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
Distinguish between authed and non-authed users clicking the share button so the onboarding funnel can be segmented in Amplitude. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
Code Review: PR #1286Reviewer: Claude Code (automated) Validation ResultsPass A: Correctness & Logic — PASSAll 8 tracking events are correctly placed at the intended funnel steps:
No logic inversions, off-by-ones, or missing edge cases. Pass B: Security — PASS
Pass C: Cross-Reference Consistency — PASS
Pass D: Error Handling & Edge Cases — PASS
Pass E: Test Coverage & Quality — PASS (with note)No new tests added, but this is consistent with the existing pattern — none of the 15+ existing tracking functions in Pass F: Diff-Specific Checks — PASS
Pass G: Performance — PASSNo performance concerns. All tracking calls are synchronous fire-and-forget to the Amplitude SDK, which batches network requests internally. Pass H: Async/Concurrency — PASSAll tracking calls are synchronous and placed before async operations (upload, setup, auth check). No missing awaits, no race conditions. Verification Results
Verdict: GOAll validation passes clean. The PR is a focused, well-placed addition of 8 Amplitude tracking events to the CLI onboarding funnel. No critical issues found. |
even-wei
left a comment
There was a problem hiding this comment.
Claude Code Review: No critical issues found. All 8 onboarding funnel events correctly placed.
PR checklist
What type of PR is this?
Feature
What this PR does / why we need it:
Implements 8 Amplitude telemetry events to track conversion at each step of the Cloud onboarding funnel:
oss_share_button_clickedsignup_redirect_initiatedsignup_completedartifact_upload_startedredirect_to_cloud_sessiondw_setup_showndw_setup_completeddw_setup_skippedAll events use the
[CLI Onboarding]category prefix.Which issue(s) this PR fixes:
Special notes for your reviewer:
track()utilitytrack.ts(event definitions),CloudShareButtonOss.tsx(3 events),CloudUploadDialogOss.tsx(5 events)Does this PR introduce a user-facing change?:
NONE