From e70dba49d463d2536f6d8fd3cf3ee06d02671baa Mon Sep 17 00:00:00 2001 From: kieo-ch Date: Thu, 6 Feb 2025 12:24:25 +0000 Subject: [PATCH] Add Matomo event IDs to cloudy-day views where missing --- src/constants.ts | 4 +++- src/views/router_views/error/internal-server-error.njk | 2 +- src/views/router_views/error/page-not-found.njk | 2 +- src/views/router_views/name_mismatch/name_mismatch.njk | 4 +++- .../router_views/serviceUnavailable/service-unavailable.njk | 2 +- src/views/router_views/stopScreen/company-status.njk | 6 +++--- src/views/router_views/stopScreen/company-type.njk | 6 +++--- src/views/router_views/stopScreen/empty-psc-list.njk | 2 +- src/views/router_views/stopScreen/psc-dob-mismatch.njk | 4 ++-- src/views/router_views/stopScreen/super-secure.njk | 4 ++-- 10 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index e12ecebf..522c96fa 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -85,5 +85,7 @@ export const SessionKeys = { // Matomo event IDs that occur more than once accross templates export const CommonDataEventIds = { - CONTINUE_BUTTON: "continue-button" + CONTACT_US_LINK: "contact-us-link", + CONTINUE_BUTTON: "continue-button", + GO_BACK_AND_RETRY_LINK: "go-back-and-retry-link" } as const; diff --git a/src/views/router_views/error/internal-server-error.njk b/src/views/router_views/error/internal-server-error.njk index 0c4d6239..55beab9c 100644 --- a/src/views/router_views/error/internal-server-error.njk +++ b/src/views/router_views/error/internal-server-error.njk @@ -7,6 +7,6 @@

{{ i18n.500_try_again_later }}

{{ i18n.500_when_available_start_again }}

- {{ i18n.500_contact_us_1 }} {{ i18n.500_contact_us_2 }} + {{ i18n.500_contact_us_1 }} {{ i18n.500_contact_us_2 }}

{% endblock %} diff --git a/src/views/router_views/error/page-not-found.njk b/src/views/router_views/error/page-not-found.njk index 385644ab..e7e68f83 100644 --- a/src/views/router_views/error/page-not-found.njk +++ b/src/views/router_views/error/page-not-found.njk @@ -8,6 +8,6 @@

{{ i18n.404_check_typed_address }}

{{ i18n.404_check_pasted_address }}

- {{ i18n.404_arrived_via_bad_url_1 }} {{ i18n.404_arrived_via_bad_url_2 }} + {{ i18n.404_arrived_via_bad_url_1 }} {{ i18n.404_arrived_via_bad_url_2 }}

{% endblock %} diff --git a/src/views/router_views/name_mismatch/name_mismatch.njk b/src/views/router_views/name_mismatch/name_mismatch.njk index da68543f..b51a4b85 100644 --- a/src/views/router_views/name_mismatch/name_mismatch.njk +++ b/src/views/router_views/name_mismatch/name_mismatch.njk @@ -27,7 +27,9 @@

{{ i18n.name_mismatch_details_par2 }} - {{ i18n.name_mismatch_details_par2_link }} + + {{ i18n.name_mismatch_details_par2_link }} + {{- i18n.name_mismatch_details_par2_after_link }}

diff --git a/src/views/router_views/serviceUnavailable/service-unavailable.njk b/src/views/router_views/serviceUnavailable/service-unavailable.njk index b477101c..85242fa5 100644 --- a/src/views/router_views/serviceUnavailable/service-unavailable.njk +++ b/src/views/router_views/serviceUnavailable/service-unavailable.njk @@ -8,6 +8,6 @@

{{ i18n.service_unavailable_use }}{{ extraData[0] }}.

{{ i18n.service_unavailable_when_available_start_again }}

- {{ i18n.service_unavailable_contact_us_1 }} {{ i18n.service_unavailable_contact_us_2 }} + {{ i18n.service_unavailable_contact_us_1 }} {{ i18n.service_unavailable_contact_us_2 }}

{% endblock %} diff --git a/src/views/router_views/stopScreen/company-status.njk b/src/views/router_views/stopScreen/company-status.njk index 7db52554..d078ced2 100644 --- a/src/views/router_views/stopScreen/company-status.njk +++ b/src/views/router_views/stopScreen/company-status.njk @@ -9,11 +9,11 @@

{{ extraData[0] }}{{ i18n.company_status_statement_1 }}

{{ i18n.company_status_statement_2 }}

{{ i18n.company_status_wrong_company_action }} - {{ i18n.company_status_wrong_company_action_text -}}. + {{ i18n.company_status_wrong_company_action_text -}}.

- {{ i18n.company_status_contact_us_text -}} + {{ i18n.company_status_contact_us_text -}} {{ i18n.company_status_contact_us }}

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/views/router_views/stopScreen/company-type.njk b/src/views/router_views/stopScreen/company-type.njk index 220221c5..ec9887c9 100644 --- a/src/views/router_views/stopScreen/company-type.njk +++ b/src/views/router_views/stopScreen/company-type.njk @@ -14,11 +14,11 @@
  • {{ i18n.company_type_allowed_4 }}
  • {{ i18n.company_type_wrong_company_action }} - {{ i18n.company_type_wrong_company_action_text -}}. + {{ i18n.company_type_wrong_company_action_text -}}.

    - {{ i18n.company_type_contact_us_text -}} + {{ i18n.company_type_contact_us_text -}} {{ i18n.company_type_contact_us }}

    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/views/router_views/stopScreen/empty-psc-list.njk b/src/views/router_views/stopScreen/empty-psc-list.njk index db89d7e6..dae72a9c 100644 --- a/src/views/router_views/stopScreen/empty-psc-list.njk +++ b/src/views/router_views/stopScreen/empty-psc-list.njk @@ -7,7 +7,7 @@

    {{ i18n.ind_psc_list_main_title }}

    {{ i18n.empty_psc_list_body }} - + {{ i18n.empty_psc_list_link }} .

    diff --git a/src/views/router_views/stopScreen/psc-dob-mismatch.njk b/src/views/router_views/stopScreen/psc-dob-mismatch.njk index c839a878..595617e4 100644 --- a/src/views/router_views/stopScreen/psc-dob-mismatch.njk +++ b/src/views/router_views/stopScreen/psc-dob-mismatch.njk @@ -10,7 +10,7 @@

    {{ i18n.dob_mismatch_check_personal_code }}

    {{ i18n.dob_mismatch_character_code }} - + {{ i18n.dob_mismatch_try_again_link_text -}} .

    @@ -27,4 +27,4 @@

    {{ i18n.dob_mismatch_authorised_agent }}

    {{ i18n.dob_mismatch_verified_identity }}

    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/views/router_views/stopScreen/super-secure.njk b/src/views/router_views/stopScreen/super-secure.njk index a3fa3f61..b29c4d89 100644 --- a/src/views/router_views/stopScreen/super-secure.njk +++ b/src/views/router_views/stopScreen/super-secure.njk @@ -8,9 +8,9 @@

    {{ i18n.super_secure_statement_1 }}

    {{ i18n.super_secure_statement_2 }}

    {{ i18n.super_secure_statement_3_1 }} - {{ extraData[0] }} + {{ extraData[0] }} {{ i18n.super_secure_statement_3_2 }} {{ extraData[1] }}{{ i18n.super_secure_statement_3_3 }}

    -{% endblock %} \ No newline at end of file +{% endblock %}