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
281 stars 198 forks source link

Cleanup Variant Event Labels used for Google Analytics #51723

Closed JRRoof closed 1 day ago

JRRoof commented 1 year ago

Description

Several Google Analytics event labels were created to track results of several variant tests. These event labels are no longer used and should be deprecated:

vaos-variant-default-alphabetical vaos-variant-default-distanceFromCurrentLocation vaos-variant-default-distanceFromResidentialAddress  vaos-variant-final- vaos-variant-final-alphabetical vaos-variant-final-distanceFromCurrentLocation vaos-variant-final-distanceFromResidentialAddress vaos-variant-method- vaos-variant-method-alphabetical vaos-variant-method-distanceFromCurrentLocation  vaos-variant-method-distanceFromResidentialAddress vaos-variant-shown


Acceptance Criteria

Background: the va_online_scheduling_variant_testing toggle is off

Given a VAOS engineer When editing front end code or vets-api Then no GA Event Labels with "variant" in the name should exist

Given a product manager When looking at Event Labels in GA Then no data for events with "variant" in the name should exist going forward.

Design Assets

Removal of labels should have no effect on UI/UX. VAOS Analytics Definitions

Definition of Done


How to configure this issue

JRRoof commented 1 week ago

I'm still seeing Variant events in GA4 in Production. Have these changes only been made in Staging?

image.png
JunTaoLuo commented 1 week ago

I just merged the change today so there were still some events from this morning before the deployment completed. It should zero out tomorrow. I see the lower number of events today as a good sign it's working.

JRRoof commented 1 day ago

I have not seen any new events logged since the 9th—closing ticket.