From c9df8479604ed85996379e9dbbbc16b28242abbd Mon Sep 17 00:00:00 2001 From: petechd <53475968+petechd@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:13:41 +0000 Subject: [PATCH] Add missing GA click events to templates (#1342) --- templates/confirm-email.html | 3 ++- templates/feedback-sent.html | 3 ++- templates/feedback.html | 5 +++-- templates/individual_response/confirmation-post.html | 3 ++- .../individual_response/confirmation-text-message.html | 3 ++- templates/individual_response/interstitial.html | 3 ++- templates/interstitial.html | 3 ++- templates/layouts/_calculatedsummary.html | 3 ++- templates/layouts/_questionnaire.html | 3 ++- templates/layouts/_submit.html | 3 ++- templates/layouts/configs/_header.html | 3 ++- templates/partials/confirmation-email-form.html | 3 ++- templates/partials/introduction/start-survey.html | 3 ++- templates/preview.html | 6 ++++-- templates/sectionsummary.html | 6 ++++-- templates/view-submitted-response.html | 6 ++++-- 16 files changed, 39 insertions(+), 20 deletions(-) diff --git a/templates/confirm-email.html b/templates/confirm-email.html index 8c0420be35..1ff9190992 100644 --- a/templates/confirm-email.html +++ b/templates/confirm-email.html @@ -29,7 +29,8 @@

{{ conten "data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Continue", - "data-ga-label": "Continue button click" + "data-ga-label": "Continue button click", + "data-ga": "click" } }) }} diff --git a/templates/feedback-sent.html b/templates/feedback-sent.html index 71da0142a4..29f02b4fbe 100644 --- a/templates/feedback-sent.html +++ b/templates/feedback-sent.html @@ -28,7 +28,8 @@

{{ _("Thank you for your feedback") }}

{{ content.que "data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Send feedback", - "data-ga-label": "Send feedback button click" + "data-ga-label": "Send feedback button click", + "data-ga": "click" } }) }} diff --git a/templates/individual_response/confirmation-post.html b/templates/individual_response/confirmation-post.html index df05095a2d..3282416256 100644 --- a/templates/individual_response/confirmation-post.html +++ b/templates/individual_response/confirmation-post.html @@ -25,7 +25,8 @@

'data-qa': 'btn-submit', "data-ga-category": "Submit button", "data-ga-action": "Continue", - "data-ga-label": "Continue button click" + "data-ga-label": "Continue button click", + "data-ga": "click" } }) }} diff --git a/templates/individual_response/confirmation-text-message.html b/templates/individual_response/confirmation-text-message.html index da28d39fe7..c268c02819 100644 --- a/templates/individual_response/confirmation-text-message.html +++ b/templates/individual_response/confirmation-text-message.html @@ -33,7 +33,8 @@

'data-qa': 'btn-submit', "data-ga-category": "Submit button", "data-ga-action": "Continue", - "data-ga-label": "Continue button click" + "data-ga-label": "Continue button click", + "data-ga": "click" } }) }} diff --git a/templates/individual_response/interstitial.html b/templates/individual_response/interstitial.html index 440cb6be1c..70be633586 100644 --- a/templates/individual_response/interstitial.html +++ b/templates/individual_response/interstitial.html @@ -18,7 +18,8 @@

{{_("If you can't answer questions for others in your hou 'data-qa': 'btn-submit', "data-ga-category": "Submit button", "data-ga-action": "Request separate census", - "data-ga-label": "Request separate census button click" + "data-ga-label": "Request separate census button click", + "data-ga": "click" } }) }} diff --git a/templates/interstitial.html b/templates/interstitial.html index eb5ff6ae58..125bc85a58 100644 --- a/templates/interstitial.html +++ b/templates/interstitial.html @@ -35,7 +35,8 @@

{{ block.content.title }}

"data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Save and continue", - "data-ga-label": "Save and continue button click" + "data-ga-label": "Save and continue button click", + "data-ga": "click" } }) }} diff --git a/templates/layouts/_calculatedsummary.html b/templates/layouts/_calculatedsummary.html index 54ac18fda1..286f50b8e3 100644 --- a/templates/layouts/_calculatedsummary.html +++ b/templates/layouts/_calculatedsummary.html @@ -22,7 +22,8 @@ "data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Confirm", - "data-ga-label": "Confirm button click" + "data-ga-label": "Confirm button click", + "data-ga": "click" } }) }} diff --git a/templates/layouts/_questionnaire.html b/templates/layouts/_questionnaire.html index 9d61efeb53..50574c7904 100644 --- a/templates/layouts/_questionnaire.html +++ b/templates/layouts/_questionnaire.html @@ -28,7 +28,8 @@ "data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Save and continue", - "data-ga-label": "Save and continue button click" + "data-ga-label": "Save and continue button click", + "data-ga": "click" } }) }} diff --git a/templates/layouts/_submit.html b/templates/layouts/_submit.html index 3a41b32b24..581c286b38 100644 --- a/templates/layouts/_submit.html +++ b/templates/layouts/_submit.html @@ -42,7 +42,8 @@

{{ content.title }}

'data-qa': 'btn-submit', "data-ga-category": "Submit Button", "data-ga-action": "Submit", - "data-ga-label": "Submit Button click" + "data-ga-label": "Submit Button click", + "data-ga": "click" } }) }} diff --git a/templates/layouts/configs/_header.html b/templates/layouts/configs/_header.html index fd9ac1bb21..0a41e6b0fb 100644 --- a/templates/layouts/configs/_header.html +++ b/templates/layouts/configs/_header.html @@ -21,7 +21,8 @@ "data-qa": header_button_data_qa, "data-ga-category": "Navigation", "data-ga-action": header_button_data_ga_action, - "data-ga-label": header_button_data_ga_label + "data-ga-label": header_button_data_ga_label, + "data-ga": "click" }, "iconType": "exit", "iconPosition": "after" diff --git a/templates/partials/confirmation-email-form.html b/templates/partials/confirmation-email-form.html index 87d2476dab..5900890b60 100644 --- a/templates/partials/confirmation-email-form.html +++ b/templates/partials/confirmation-email-form.html @@ -42,7 +42,8 @@ "data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Send confirmation", - "data-ga-label": "Send confirmation button click" + "data-ga-label": "Send confirmation button click", + "data-ga": "click" } }) }} diff --git a/templates/partials/introduction/start-survey.html b/templates/partials/introduction/start-survey.html index 2b91d0a686..9860359a9a 100644 --- a/templates/partials/introduction/start-survey.html +++ b/templates/partials/introduction/start-survey.html @@ -10,7 +10,8 @@ "data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Start survey", - "data-ga-label": "Start button click" + "data-ga-label": "Start button click", + "data-ga": "click" } }) }} diff --git a/templates/preview.html b/templates/preview.html index 0aaf290f6f..71b012c8b5 100644 --- a/templates/preview.html +++ b/templates/preview.html @@ -51,7 +51,8 @@

{{ _("Preview of the questions in this survey") }}

"data-qa": "btn-print", "data-ga-category": "Print button", "data-ga-action": "Open print Dialogue", - "data-ga-label": "Print button click" + "data-ga-label": "Print button click", + "data-ga": "click" } }) }} @@ -65,7 +66,8 @@

{{ _("Preview of the questions in this survey") }}

"data-qa": "btn-pdf", "data-ga-category": "PDF button", "data-ga-action": "Download PDF", - "data-ga-label": "PDF button click" + "data-ga-label": "PDF button click", + "data-ga": "click" } }) }} diff --git a/templates/sectionsummary.html b/templates/sectionsummary.html index 11745adee0..057e5def51 100644 --- a/templates/sectionsummary.html +++ b/templates/sectionsummary.html @@ -12,7 +12,8 @@ "data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Continue", - "data-ga-label": "Continue button click" + "data-ga-label": "Continue button click", + "data-ga": "click" } }) }} @@ -52,7 +53,8 @@

{{content.summary.title}}

"data-qa": "btn-submit", "data-ga-category": "Submit button", "data-ga-action": "Continue", - "data-ga-label": "Continue button click" + "data-ga-label": "Continue button click", + "data-ga": "click" } }) }} diff --git a/templates/view-submitted-response.html b/templates/view-submitted-response.html index 056cb6bb4b..1a9c40f9f3 100644 --- a/templates/view-submitted-response.html +++ b/templates/view-submitted-response.html @@ -38,7 +38,8 @@

"data-qa": "btn-print", "data-ga-category": "Print button", "data-ga-action": "Open print Dialogue", - "data-ga-label": "Print button click" + "data-ga-label": "Print button click", + "data-ga": "click" } }) }} @@ -52,7 +53,8 @@

"data-qa": "btn-pdf", "data-ga-category": "PDF button", "data-ga-action": "Download PDF", - "data-ga-label": "PDF button click" + "data-ga-label": "PDF button click", + "data-ga": "click" } }) }}