Skip to content

feat(analytics): Attribute getting-started header actions by variant#120147

Open
jaydgoss wants to merge 1 commit into
jaygoss/scm-project-creation-getting-started-funnelfrom
jaygoss/scm-project-creation-getting-started-header
Open

feat(analytics): Attribute getting-started header actions by variant#120147
jaydgoss wants to merge 1 commit into
jaygoss/scm-project-creation-getting-started-funnelfrom
jaygoss/scm-project-creation-getting-started-header

Conversation

@jaydgoss

Copy link
Copy Markdown
Member

TLDR

The shared getting-started header’s back / silent-delete analytics now carry variant: 'scm' | 'legacy' when the page was reached from project creation, so abandonment can be segmented without new event names.

Details

Stacked on the getting-started funnel PR (#120131), which already consumes the ?projectCreationVariant= forward-nav marker on this page for the view event and “Take me to Issues”. This PR extends that marker into PlatformDocHeader, the abandonment surface on the same page.

ProjectInstallPlatform passes the validated marker into PlatformDocHeader. On back click the header still fires the three existing live counters — project_creation.back_button_clicked, project_creation.data_removal_modal_confirm_button_clicked (name is historical; there is no modal — back-nav deletes an inactive project directly), and project_creation.data_removed after a successful delete. When the marker is present each payload gains variant; when it is missing the same names fire without a variant, so peripheral entry points (older projects, non-creation links) are not guessed into SCM or legacy. The typed params gain optional variant to match. The two dead registry keys (data_removal_modal_rendered / _dismissed) stay unwired — flagged in a one-line comment only.

Coverage extends the existing getting-started analytics helper: both marked variants assert all three events carry the right variant through the inactive-project delete path, and the unmarked path asserts the same events fire without a variant field.

Refs VDY-133

Stamp projectCreationVariant onto the existing project_creation header
events (back_button_clicked, data_removal_modal_confirm_button_clicked,
data_removed) so abandonment on the shared getting-started page is
segmentable by SCM vs legacy. Unmarked peripheral entry keeps the same
names without a guessed variant. Dead modal rendered/dismissed keys stay
unwired.

Refs VDY-133
@linear-code

linear-code Bot commented Jul 20, 2026

Copy link
Copy Markdown

VDY-133

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 20, 2026
@jaydgoss
jaydgoss marked this pull request as ready for review July 20, 2026 22:25
@jaydgoss
jaydgoss requested review from a team as code owners July 20, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant