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
282 stars 203 forks source link

[Support] Implement Analytics Tracking for Selection of STEM in Education Form 1995 #773

Closed nedierecel closed 5 years ago

nedierecel commented 5 years ago

User Story

As an education stakeholder, I need to track the number of form submissions for form 1995 that included the selection of the STEM scholarship to better understand its usage. Original issue tagged in vets.gov-repo

Goal

Education has an understanding of percentage of forms that included the STEM selection

Acceptance Criteria

Definition of Done

nedierecel commented 5 years ago

Requirements provided to BAH in #19269

nedierecel commented 5 years ago

@jonwehausen @joanneesteban For your visibility, this is an implementation request in motion per the request of BAH team following the implementation of a new page that captures if applicants want to apply for the Edith Rogers STEM scholarship in Form 1995:

"Are you applying for the Edith Nourse Rogers STEM Scholarship?" in the form flow? (https://staging.va.gov/education/apply-for-education-benefits/application/1995/benefits/stem)

Current Situation:

  1. Requirements were provided to BAH
  2. Discussion is in progress with Ad Hoc engineering surrounding the ability to add custom dimensions (additional application traits) to capture the selection --> since the form is built using the forms library, there is discussion on if/how to best implement

Next Steps:

  1. Ad Hoc team will weigh in on the thread
  2. We will pick back up the work in the upcoming sprint
  3. The form funnel will also have to be updated in the test view and applied to the main view
nedierecel commented 5 years ago

@jonwehausen We should be able to test this by Tuesday. I will update this ticket with the right workspace and instructions to test.

nedierecel commented 5 years ago

@jonwehausen If you have time to QA today before noon, can you attempt a form submission on form 1995: https://staging.va.gov/education/apply-for-education-benefits/application/1995/introduction

Login is not required.

  1. To validate, enter "Yes" to question 2 of 6 (this will be approx. the 3rd page of the form): image.png
  2. For this test, you can enter other responses as you see fit.
  3. Upon --submission-success, an extra dataLayer parameter is sent for the new custom dimension edu-stem-applicant. This value should match your response in the STEM question above.
nedierecel commented 5 years ago

@jonwehausen I did two test submissions, one with "Yes" and another entering "No". The former yielded the correct Custom Dimension in slot 49:

image.png

The "No" value also was correct:

image.png

jonwehausen commented 5 years ago

Hi @nedierecel ,

I received the same results.

Yes Scenario

image

No Scenario

image

nedierecel commented 5 years ago

Thanks @jonwehausen - I also created the custom dimension in Slot 49 in the Production property (to make sure I don't muddy up the placeholders you have for slots 50-52 in non-Production).

Next steps:

nedierecel commented 5 years ago

The funnel has been updated and the new GTM container has been pushed to Production. I will have a follow-up chat with Amy in reviewing the funnel.

nedierecel commented 5 years ago

I am reopening this as I provided additional requirements for Form 1995 in this vets.gov-team issue https://github.com/department-of-veterans-affairs/vets.gov-team/issues/19518

nedierecel commented 5 years ago

Progress - Updated Acceptance criteria to account for new form values we will be tracking; Made these changes in Google Tag Manager and performed test submission; Latest changes by BAH have not been merged yet, however, so I'll test again: https://github.com/department-of-veterans-affairs/vets.gov-team/issues/19518#issuecomment-524949631

nedierecel commented 5 years ago

The container has been published with new changes to track form inputs. A report was delivered to the BAH team to show the breakdown of submissions by STEM Scholarship applications.