From 8a78e47d4b2eb3a84e2a00dc545a62afe243b44a Mon Sep 17 00:00:00 2001 From: chao-xian Date: Tue, 24 Jan 2023 13:30:46 +0000 Subject: [PATCH] Add scroll tracking to requested MoJ pages See https://govuk.zendesk.com/agent/tickets/5176602 --- app/views/content_items/publication.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/content_items/publication.html.erb b/app/views/content_items/publication.html.erb index 0f06a9803..d31304166 100644 --- a/app/views/content_items/publication.html.erb +++ b/app/views/content_items/publication.html.erb @@ -2,6 +2,15 @@ <%= machine_readable_metadata( schema: (@content_item.dataset? ? :dataset : :article) ) %> + + <% + # As per request https://govuk.zendesk.com/agent/tickets/5176602 + scroll_track_paths = %w[/government/publications/form-pa14-medical-certificate-probate /government/publications/find-a-will-or-probate-document-form-pa1s /government/publications/report-a-will-is-lost-to-support-a-probate-application] + %> + + <% if scroll_track_paths.include?(@content_item.base_path) %> + + <% end %> <% end %> <%= render 'shared/email_subscribe_unsubscribe_flash' %>