Skip to content

fix(events): suppression de l'event qui track l'input agreement search#7200

Open
maxgfr wants to merge 1 commit intodevfrom
maxgfr/delete-event
Open

fix(events): suppression de l'event qui track l'input agreement search#7200
maxgfr wants to merge 1 commit intodevfrom
maxgfr/delete-event

Conversation

@maxgfr
Copy link
Copy Markdown
Member

@maxgfr maxgfr commented Mar 27, 2026

fix #7196

@revu-bot revu-bot bot requested a review from revu-bot March 27, 2026 14:46
@maxgfr maxgfr temporarily deployed to build-preproduction March 27, 2026 14:46 — with GitHub Actions Inactive
@maxgfr maxgfr requested review from m-maillot and removed request for revu-bot March 27, 2026 14:46
Copy link
Copy Markdown
Collaborator

@revu-bot revu-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary: Remove cc_search Agreement Search Input Tracking Event

This PR removes the analytics event that tracked every keystroke in the agreement search input (cc_search / AGREEMENT_SEARCH), as it was generating excessive data volume (issue #7196). The change is clean and well-scoped.

What was done

  • Removed emitAgreementSearchInputEvent from useAgreementSearchTracking
  • Removed AGREEMENT_SEARCH from MatomoSearchAgreementCategory enum and CC_SEARCH from TrackingAgreementSearchCategory
  • Removed trackingActionName prop from AgreementSearchInput and related components
  • Updated all tests to reflect the reduced event count

Issues Found

File Lines Severity Issue
tracking.ts 22 IMPORTANT TrackingAgreementSearchAction.AGREEMENT_SEARCH enum value is now orphaned/misleading
tracking.ts 1 MINOR Unused uuid import was removed — but v4 mock still present in some test files
AgreementSearchForm.tsx 81 IMPORTANT trackingActionName prop removed from AgreementSearchInput but still declared in AgreementSearchForm's own Props type

@sonarqubecloud
Copy link
Copy Markdown

@tokenbureau
Copy link
Copy Markdown

tokenbureau bot commented Mar 27, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supprimer l'event cc_search

2 participants