Add component search analytics baseline#2456
Open
Mbeaulne wants to merge 1 commit into
Open
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Jun 23, 2026
Collaborator
Author
This was referenced Jun 23, 2026
9f2815e to
ec75162
Compare
a2838e0 to
2f7cba0
Compare
ec75162 to
a72488d
Compare
2f7cba0 to
a2f6e1f
Compare
a72488d to
2aae5f5
Compare
a2f6e1f to
abc233c
Compare
14f57a6 to
77887b8
Compare
3d182ca to
f14066e
Compare
77887b8 to
6fce13b
Compare
f14066e to
457bc77
Compare
6fce13b to
202c693
Compare
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.

Description
Adds analytics tracking to the component library search experience across both the dashboard and editor surfaces. Search completion events are fired with a debounced 400ms delay after results settle, capturing metadata such as
query_length,result_count,search_backend, andai_ranked— intentionally omitting the raw query text to avoid logging potentially sensitive user input.Tracking is also added to the AI rerank buttons (both "smart" and "deep" modes) and the empty-state suggestion chips, each annotated with the relevant
surfaceidentifier (dashboard_v2oreditor_component_search_v2).The
ComponentSearchEmptyStateSuggestionscomponent now accepts a requiredsurfaceprop so the correct surface label is forwarded to the tracking payload.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
component_library.search.completedevent is fired with the correct metadata and that no raw query text is included.component_library.search.ai_rerankevent is fired with the correctmode,surface, andquery_length.component_library.search.suggestionevent fires with the correctsurfaceandsuggested_query.Additional Comments
Query text is deliberately excluded from all tracking payloads; only
query_lengthis recorded to avoid capturing potentially sensitive search input.