From c70b71a577e5f26fc8c1fc97b647091ee2b76610 Mon Sep 17 00:00:00 2001 From: Andy Sellick Date: Tue, 7 Mar 2023 13:27:45 +0000 Subject: [PATCH] Update print link GA4 tracking - index parameter has changed to a different format and requires updating --- app/views/content_items/detailed_guide.html.erb | 4 +++- app/views/content_items/guide.html+print.erb | 8 ++++++-- app/views/content_items/hmrc_manual.html.erb | 4 +++- app/views/content_items/hmrc_manual_section.html.erb | 4 +++- app/views/content_items/html_publication.html.erb | 4 +++- app/views/content_items/manual.html.erb | 4 +++- app/views/content_items/manual_section.html.erb | 4 +++- app/views/content_items/manuals/_updates.html.erb | 4 +++- app/views/content_items/travel_advice.html+print.erb | 8 ++++++-- .../_published_dates_with_notification_button.html.erb | 4 +++- 10 files changed, 36 insertions(+), 12 deletions(-) diff --git a/app/views/content_items/detailed_guide.html.erb b/app/views/content_items/detailed_guide.html.erb index 977be0923..0177bb78a 100644 --- a/app/views/content_items/detailed_guide.html.erb +++ b/app/views/content_items/detailed_guide.html.erb @@ -89,7 +89,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 2, section: 'Content', }, diff --git a/app/views/content_items/guide.html+print.erb b/app/views/content_items/guide.html+print.erb index 172f81cde..285d80e28 100644 --- a/app/views/content_items/guide.html+print.erb +++ b/app/views/content_items/guide.html+print.erb @@ -28,7 +28,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 2, section: 'Content', }, @@ -59,7 +61,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 2, + index: { + index_link: 2, + }, index_total: 2, section: 'Footer', }, diff --git a/app/views/content_items/hmrc_manual.html.erb b/app/views/content_items/hmrc_manual.html.erb index 54c68275c..f93f43dad 100644 --- a/app/views/content_items/hmrc_manual.html.erb +++ b/app/views/content_items/hmrc_manual.html.erb @@ -30,7 +30,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 1, section: 'Footer', }, diff --git a/app/views/content_items/hmrc_manual_section.html.erb b/app/views/content_items/hmrc_manual_section.html.erb index 6f83fd0d3..215cf41b4 100644 --- a/app/views/content_items/hmrc_manual_section.html.erb +++ b/app/views/content_items/hmrc_manual_section.html.erb @@ -51,7 +51,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 1, section: 'Footer', }, diff --git a/app/views/content_items/html_publication.html.erb b/app/views/content_items/html_publication.html.erb index bf88e8aa7..5c1ec9f7e 100644 --- a/app/views/content_items/html_publication.html.erb +++ b/app/views/content_items/html_publication.html.erb @@ -63,7 +63,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 1, section: 'Content', }, diff --git a/app/views/content_items/manual.html.erb b/app/views/content_items/manual.html.erb index 03d93db86..b20b78992 100644 --- a/app/views/content_items/manual.html.erb +++ b/app/views/content_items/manual.html.erb @@ -39,7 +39,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 1, section: 'Footer', }, diff --git a/app/views/content_items/manual_section.html.erb b/app/views/content_items/manual_section.html.erb index bc9a416e5..be80f8e1b 100644 --- a/app/views/content_items/manual_section.html.erb +++ b/app/views/content_items/manual_section.html.erb @@ -95,7 +95,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 1, section: 'Footer', }, diff --git a/app/views/content_items/manuals/_updates.html.erb b/app/views/content_items/manuals/_updates.html.erb index c24f1e928..3f73aac33 100644 --- a/app/views/content_items/manuals/_updates.html.erb +++ b/app/views/content_items/manuals/_updates.html.erb @@ -65,7 +65,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 1, section: 'Footer', }, diff --git a/app/views/content_items/travel_advice.html+print.erb b/app/views/content_items/travel_advice.html+print.erb index 8d5c50be7..a0e8ff879 100644 --- a/app/views/content_items/travel_advice.html+print.erb +++ b/app/views/content_items/travel_advice.html+print.erb @@ -27,7 +27,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 1, + index: { + index_link: 1, + }, index_total: 2, section: 'Content', }, @@ -59,7 +61,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 2, + index: { + index_link: 2, + }, index_total: 2, section: 'Footer', }, diff --git a/app/views/shared/_published_dates_with_notification_button.html.erb b/app/views/shared/_published_dates_with_notification_button.html.erb index cb81e44d8..2e82274ef 100644 --- a/app/views/shared/_published_dates_with_notification_button.html.erb +++ b/app/views/shared/_published_dates_with_notification_button.html.erb @@ -20,7 +20,9 @@ ga4_event: { event_name: 'print_page', type: 'print page', - index: 2, + index: { + index_link: 2, + }, index_total: 2, section: 'Footer', },