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

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

Analytics: request tracking on back link breadcrumbs #93017

Open sterkenburgsara opened 2 months ago

sterkenburgsara commented 2 months ago

Description

The week prior to office hours on 9/16/2024, we realized that the breadcrumb event tracking in GA4 wasn't pulling data from details pages that utilize back link breadcrumbs in lieu of the traditional V3 breadcrumb component. This is likely because no teams have tracking implemented on it since this isn't captured automatically. After confirming w/ appointments team (who has had back link breadcrumbs the longest) that they aren't actively tracking data on it, we posed the question about how to pursue tracking to analytics team in the #vfs-analytics channel. It is likely that no teams in the health portal have tracking enabled on details pages, so a single event strategy that all teams could implement would be beneficial for research/metrics collection long-term.

User story

As a Cartography team member, I want to be able to understand how users are navigating the portal, and in order to compare various types of navigation to the usage of secondary navigation, I need to collect data on breadcrumb usage, including back link breadcrumbs.

Notes

Possible tasks:

Acceptance criteria

fmccaf1 commented 1 month ago

Important to ask about timelines in conversations about scope

sterkenburgsara commented 1 month ago

Update: went to analytics office hours today to ask about the back link breadcrumbs tracking. It sounds like VADS may need to add tracking to this component on their end, but Jamie wants to look at the implementation in a few places to better speak to how this might be set up. If it should be set up independent of VADS, then custom process will need to be implemented by all teams who leverage back link breadcrumbs in the health portal. This will include shutting off the current analytics event on this element (which is on the link component) and setting up a custom event.

In order to investigate, Jamie needs a few test users, URLs and use cases to examine herself in staging. I will provide those asap - probably tomorrow in the body of the request ticket I placed with their team.

I have some other outstanding questions around some differentiated use cases for back link breadcrumbs, some of which do not match the current component that's in VADS and may require adjustment and further dev implementation notes. I brought this conversation to the IA CoP for further conversation & will circle back.

sterkenburgsara commented 3 weeks ago

cc @rbsingleton

sterkenburgsara commented 3 weeks ago

Based on some Q&A with Mikki about use-cases for <- Back link "breadcrumbs" will be moving forward with one implementation request to cover all requests, and will be able to divide analytics out by link text (generic or specific) as needed.

Screenshot 2024-10-30 at 9.40.54 AM.png
sterkenburgsara commented 3 weeks ago

Update: 10/30/24 - provided use cases to Jamie in analytics request ticket. Moving to blocked since this is now in analytics' hands.