Add ga- tracking codes for google analytics to track click events on print button at the end of the survey
How to review
Run yarn compile
docker-compose up
goto localhost:8000
choose an mbs survey (these are very short) from the dropdown at top of page and start survey
accept all cookies
complete this short survey and submit
open dev tools console
click on: View and print a copy of your answers
you should see the following in the console:
{hitType: "event", eventCategory: "view-submission", eventAction: "Goto general view-submission page", eventLabel: "Goto general survey view-submission page"}
Hit the Print button and then cancel
you should see the following in the console:
{hitType: "event", eventCategory: "Print Button", eventAction: "Open Print Dialogue", eventLabel: "Track print button clicks"}
What is the context of this PR?
Add ga- tracking codes for google analytics to track click events on print button at the end of the survey
How to review
Run yarn compile docker-compose up goto localhost:8000
choose an mbs survey (these are very short) from the dropdown at top of page and start survey accept all cookies complete this short survey and submit
open dev tools console click on: View and print a copy of your answers you should see the following in the console: {hitType: "event", eventCategory: "view-submission", eventAction: "Goto general view-submission page", eventLabel: "Goto general survey view-submission page"}
Hit the Print button and then cancel you should see the following in the console: {hitType: "event", eventCategory: "Print Button", eventAction: "Open Print Dialogue", eventLabel: "Track print button clicks"}