Closed mdewey closed 3 years ago
@jonwehausen See notes below. All changes are in the GTM workspace "22828 Health Care Experience - Questionnaire". I believe this is ready for QA.
Changing tabs: This is already being collected as event action (both Navigation - Tab Click - hcq-Completed
and Navigation - Tab Click - hcq-To do
) and can be seen in the prod GA property: https://analytics.google.com/analytics/web/#/report/content-event-events/a50123418w178298118p176884211/_u.date00=20210409&_u.date01=20210409&explorer-segmentExplorer.segmentId=analytics.eventAction&explorer-table.plotKeys=%5B%5D&explorer-table.filter=tab%20click/
Printing PDFs on the Questionnaire list page and confirmation page: I've created a new tag called EV - HCQ Print PDF
that fires on a new trigger and is set to look for every time the _event
matches hcq-pdf-printed
. This will get stored in GA as an event with category = Interactions
, action = Downloaded HCQ PDF
, label = {{Event}}
(hcq-pdf-printed
).
I've seen this work in GTM debug for the list page, however I'm not sure how to test it on the confirmation page.
Loading Data from an API: I've updated the trigger CE - bam-(get.*|cards.*)|hcq.*
to include ^hcq.*
in the regex. I also updated the variable RegEx - Product API Calls - Event Action Lookup
to look for any event with ^hcq.*
and return Health Care Questionnaire
.
This is another one that I'm not sure how to test.
Thanks for jumping on this @laurensimpson14, please see my notes below.
'nav-tab-click'
event is perfect here -- that said we should have @mdewey remove the product prefix of hcq
from the 'tab-text'
variable -- we'll know this is the health care questionnaire by the page URL in GA. The hcq
should only be used as a prefix within 'event'
or as a prefix for associated data layer variablesEV - HCQ Print PDF
tag and instead attach your trigger of CE - HCQ Print PDF
as a secondary trigger to Event - Any File Download
. Since there's no {{Click URL}}
here for additional context to flow into the Event Action, we could propose a data layer design to Mark to give us the context we need to identify the type of questionnaire. -loaded
events -- though you should tweak to ensure you're not also firing this Product-Based API Calls tag in other areas where we're using hcq
, you could change ^hcq.*
to ^hcq-questionnaires.*
if that's the convention Mark used for each of the loaded events. Description of Interaction | Data Layer Screenshot | Test Status |
---|---|---|
Submission of health care questionnaire | ⚠️ DOES NOT PASS @mdewey the --submission event is perfect, though we did not see a secondary hcq--submission-successful event as expected here and not sure we should also be seeing an additional sip-form-saved but realize that may have been an auto-fire. We would expect to see a --submission-failed event in the event of a failed submission. |
|
Click to print hcq application from /confirmation page (used vets.gov.user+228@gmail.com) |
✔️ PASS - for hcq-pdf-printed eventThough we may want to consider adding in a failed event or error-key DL variable for when the download fails |
id
parameter in the URL of /answer-questions
-- we should include ID as an exclude GA parameter as not to pull this in each time /answer-questions/introduction
Shifting back to Stand By
Hey Folks!
All great stuff so far, I want to sum up what I saw
hcq-questionnaire-expired-loaded
event. utm-
parameters. What URL parameters do we need to use for that? Thank you all so much!
Looks good guys - are we collecting 1) total time to complete 2) IF abandoned, what place in the funnel?
Hi Everyone,
@jonwehausen I've made your above recommended changes within the GTM workspace (removed the EV - HCQ Print PDF
tag, attached trigger of CE - HCQ Print PDF
as secondary trigger to Event - Any File Downloaded
, tweaked the product-based API calls tag to use ^hcq-questionnaires.*
)
@leahkeeler Yes, we are collecting time to complete and abandons within the funnel. The time to complete metric and abandons metric aren't something that can be pulled through Google Analytics, they require us to write a query within BigQuery. We're trying to standardize that as part of our KPI dashboard standardization work, so you'll have visibility to both of these metrics.
@mdewey
I see the failed event for submitting the form is firing now!
Description of Interaction | Data Layer Screenshot | Test Status |
---|---|---|
Submission error of health care questionnaire | ✔️ PASS --validation-failed event in the event of a failed submission. |
For tracking users coming from email or text, I'd recommend adding the following utm parameters:
VEText
please let me know because we may need to change this)govdelivery
please let me know because we may need to change this)Would you be able to please remove the product prefix of hcq
from the tab-text
variable? We'll know this is the health care questionnaire by the page URL in GA.
Thanks for the info @laurensimpson14!
I am tagging @kristenmcconnell and @leahkeeler to note the URLs for tracking email vs text. That will have be taken into consideration as we get our email and texts configured.
I will go in and remove the hcq
from the tab-text
Apart from the removal of the prefix, what other action items are needed from the team?
@mdewey I think that's everything from your team.
@jonwehausen You QA'd this ticket a while back & I've updated the workspace since then with your recommended changes. Would you mind taking one more look before publishing?
Shifting this back to QA.
@mdewey Data layer has PASSED here, there are just remaining updates on our part for GTM we'll need to adjust.
Description of Interaction | Data Layer Screenshot | Tag Screenshot | Data Layer Test Status | GTM Tagging Test Status |
---|---|---|---|---|
Click on "Completed" tab | ✔️ PASS | ✔️ PASS | ||
Click on the "To Do" tab | ✔️ PASS | ✔️ PASS | ||
HCQ questionnaires loaded | ✔️ PASS | ✔️ PASS | ||
Click to print "View and print questions" button (successful render of the pdf) | N/A | ✔️ PASS | ⚠️ DOES NOT PASS | |
Submission of the health care questionnaire | N/A | ✔️ PASS | ⚠️ DOES NOT PASS | |
Successful submission of the health care application | N/A | ✔️ PASS | ⚠️ DOES NOT PASS |
@laurensimpson14 Please see test status above -- we're going to need to make the necessary tag adjustments according to the test status above
@jonwehausen I've tweaked those DL items and added in an exclusion query parameter for id
in GA.
Description of Interaction | Tag Screenshot | GTM Tagging Test Status |
---|---|---|
Click to print "View and print questions" button (successful render of the pdf) | ✔️ PASS | |
Submission of the health care questionnaire | ✔️ PASS | |
Successful submission of the health care application | ✔️ PASS | |
Failed submission of the health care application | ✔️ PASS | |
Validation failed | ✔️ PASS |
@mdewey GTM tagging QA has been completed and passed. Ticket being closed.
Google Analytics Implementation
Description
hcq-
) to be tracked in GA.Relevant slack thread for context: https://dsva.slack.com/archives/CBU0KDSB1/p1617721726370500
Who is this request for?
What team/project is this work for? this adds context for the data
Provide the Domain where Google Analytics needs to be implemented
www.staging.va.gov
www.va.gov
Identify if PII is passed in URL or title tag No PII is tracked at this time.
Please provide any upcoming deadlines or important milestones
Typical Website Interactions to Track
Changing tabs
Printing PDFs on the Questionnaire List page
Printing PDFs on the Confirmation page
Loading Data from an API
-We are working through getting actual test users. Currently works with any test user.
Acceptance Criteria
Product
andBenefit Hub
Content GroupsDefinition of Done