department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
97 stars 69 forks source link

[Analytics] [Dupe GA Events] Remove duplicate GA event view_search_results on FE Home page search #18797

Open FranECross opened 1 month ago

FranECross commented 1 month ago

Status

[2024-09-10] [Fran] Ticket unblocked. Moving to Ready. [2024-09-03] [Fran] PW Ticket (in QA/Code Review) here [2024-08-07] [Fran] This ticket is blocked because the va-search-input web component (that homepage search uses) does not make use of the disable-analytics prop that we'd want to use here (to lean on our custom event instead). The prop applies to the component, but the baked-in event still fires.

We have a DST issue open for this issue and agreed to contribute to their repo to fix it with https://github.com/department-of-veterans-affairs/va.gov-cms/issues/18846, but it is moving slowly due to local dev issues and after it is merged will still require a release on DST's end to be available.

Description

The duplicate event(s) identified on the FE Home Page and listed on line in Randi's spreadsheet needs to be removed.

Sitewide FE page: Home page search (in-page search within search tools on the homepage)

Element: (After entering a search query in the dropdown in the header) clicking the search button

User story

AS A PO/PM of sitewide products I WANT all duplicate events removed from our product's code SO THAT we aren't charged by Google Analytics twice for the 'same' event

Engineering notes / background

Analytics considerations

Quality / testing notes

Acceptance criteria

aklausmeier commented 1 month ago

@randimays Can you clarify if this is the search in the header or the in-page search w/in search tools section on homepage?

randimays commented 1 month ago

@aklausmeier This is for the in-page search within search tools on the homepage

randimays commented 1 month ago

Didn't catch this in refinement. This ticket is blocked because the va-search-input web component (that homepage search uses) does not make use of the disable-analytics prop that we'd want to use here (to lean on our custom event instead). The prop applies to the component, but the baked-in event still fires.

We have a DST issue open for this issue and agreed to contribute to their repo to fix it with https://github.com/department-of-veterans-affairs/va.gov-cms/issues/18846, but it is moving slowly due to local dev issues and after it is merged will still require a release on DST's end to be available.

This ticket is unlikely to be unblocked this sprint.