cds-snc / c19-benefits-node

Answer some questions to find which federal programs can help you https://covid-benefits.alpha.canada.ca/. - Répondez à quelques questions pour trouver quels programmes d’aide financière fédéraux s’offrent à vous https://covid-prestations.alpha.canada.ca/.
MIT License
2 stars 4 forks source link

Track clicks on not relevant benefits #514

Open CalvinRodo opened 4 years ago

CalvinRodo commented 4 years ago

In order to track clicks to the "+ Open list of benefists not relevant for you" link, I would recommend adding a custom click attribute like we've done with the other buttons/links within the Benefits finder.

For best results I would recommend placing the attribute directly on the

container containing the element. This ensures tracking regardless if they click on the "+" or the "Open list of..." text. See below for my example.

image.png

I would also recommend using the following attribute value as it matches the other attributes you have already implemented throughout the benefits finder. This can be applied on the Eng and Fra pages. data-gc-analytics-customclick="ESDC|EDSC:Covid19 Benefits:List of benefits not relevant click"

Please do not hesitate to follow up if you have any questions.