From 3130a17709dc8c9b50d588921eee56d212f821fe Mon Sep 17 00:00:00 2001 From: Andy Sellick Date: Thu, 2 Sep 2021 09:34:49 +0100 Subject: [PATCH] Add tracking to the travel advice pages - uses the new feature of the track click script to track link clicks only inside the grey callout box (the second callout box on the page) - this is inside govspeak content so we can't directly apply tracking to it, hence the new feature of the track click script to limit tracking to a specific element --- app/views/content_items/travel_advice.html.erb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/content_items/travel_advice.html.erb b/app/views/content_items/travel_advice.html.erb index e03fd40b9..903f24bfd 100644 --- a/app/views/content_items/travel_advice.html.erb +++ b/app/views/content_items/travel_advice.html.erb @@ -52,11 +52,17 @@ <%= render 'shared/travel_advice_summary', content_item: @content_item %> <% end %> - <%= render 'govuk_publishing_components/components/govspeak', { - direction: page_text_direction, - } do %> - <%= raw(@content_item.current_part_body) %> - <% end %> +
+ <%= render 'govuk_publishing_components/components/govspeak', { + direction: page_text_direction, + } do %> + <%= raw(@content_item.current_part_body) %> + <% end %> +
<%= render 'govuk_publishing_components/components/previous_and_next_navigation', @content_item.previous_and_next_navigation %>