Closed ccruzgra closed 1 year ago
Thank you for your submission. We will review and get back to you with ETA.
Hi @michelle-dooley Is it possible to get an estimate on ETA for this? Thank you.
@ccruzgra To see those radio button events in GA you need to use the 'event': 'int-radio-button-option-click'
Here is the data layer code to use: https://user-images.githubusercontent.com/93597659/237757966-63508e18-a4e1-4904-b4fe-7c932b181ed3.png
Note: for the label on the Contact Information on the Preparer page, you want to capture relationship -- e.g. self -- or some other label, not the name.
After you implement the code let me know and I will test.
Hi @ccruzgra Checking to see i there's a status update on adding the radio button events.
@ccruzgra We will get back to you as soon as we've consulted our devs. Thank you.
@jestutt Our tech lead checked, and it appears the code is already implemented into the data layer. Are you able to test? cc: @ksantiagoBAH for awareness.
@jestutt Touching base with you again to see if you were able to test. Thanks.
@ccruzgra It's a little hard to explain but any events that you see in the inspect datalayer that start "gtm." are auto detect interactions that GTM adds, not the FE added datalayers events with specific variables that we want to collect like the one below for radio button event
@jestutt Gotcha. Thanks for the clarification.
@ksantiagoBAH Can you please assist with the above?
Is this what you are looking for?
@jestutt wanted to follow up on this to make sure you saw Kenny's question above
@michelle-dooley Is there anyone else that can assist with this?
@ccruzgra I did miss Kenny's question. Thank you!
@ksantiagoBAH We want the Event Actions to looks like this when captured in GA: Radio Button - {question} - {selected answer] - [required}
For this question -- and any other radio button sets like it -- you want the legend label test for the question and the radio button label test for the selected answer.
This question -- Who is filling out this appliction? -- is a special scenario in that we do not want to capture a name as that's PII. Instead, I would suggest using the values for radio buttons of "Self" and "Authorized Agent/Rep".
Sounds good I have to modify it a little to get it to work like that, thanks.
@jestutt, @ksantiagoBAH confirmed his changes were merged. Are you able to test that everything looks good?
@jestutt bumping this again
@ksantiagoBAH I don't see any datalayer events when I interact with the "Relationship to service member" radio buttons on https://staging.va.gov/burials-and-memorials/pre-need/form-10007-apply-for-eligibility/applicant-relationship-to-vet
I do see it for the "Who is filling out this application?" radio button interactions and it looks right: Private Zenhub Image
Interestingly, if there's already a selection and I change it, 2 datalayer events fire - one for each radio option. It should only be the one being selected. Private Zenhub Image
cc @ccruzgra
@jestutt Let me take a look
Issue should be fixed and is ready for review.
@AlexanderSherrow @ksantiagoBAH @ccruzgra
I think we are good. Datalayer event fires as intended and you can see the test events that were sent to staging GA in the screenshot.
@jestutt Thanks for confirming that this is in place now!
Google Analytics Implementation or QA Request
What this form is for
The Pre-Need application is used by service members, Veterans, family members, and representatives to determine an applicant's eligibility for burial at a VA national cemetery.
Use this template to request Google Analytics implementation or QA for your product. Please fill out all brackets.
> _Please see the following information for implementation timeline:_ > New Teams: Implementation will usually be completed in 4 sprints > > - Sprint 1: Discovery/Orientation > - Sprint 2: FE Implementation > - Sprint 3: Tagging Implementation > - Sprint 4: QA > > All other teams: Implementation will usually be completed in 2 sprints > > - Sprint 1: Discovery and FE Implementation > - Sprint 2: Tagging Implementation and QADescription
Required
Is this request for Google Analytics implementation or QA?
Who is this request for?
Provide the link(s) for Google Analytics implementation or QA
We would like for the following items to be tracked in Google Analytics:
When is the launch date?
What interactions need to be tracked? NOTE: Design System Components are automatically tracked
[If this is a funnel, insert each step's URL - pages visible depending on the applicant's answers should be marked accordingly]
[Insert other interactions - please review the Design System Components and GA Data Dictionary to make sure these interactions aren't already tracked]
Optional
If applicable, what test users are needed? NOTE: Do not put staging credentials in this ticket; store or reference them in a .md file in the
va.gov-team-sensitive
repositoryAny additional comments
Acceptance criteria
Product
andBenefit Hub
Content GroupsAdditional information
Please refer to Platform Collaboration Cycle or the Analytics Request Touchpoint on Platform website for more information about the Collaboration Cycle.