From 22ffe7149de8b36be73e4da1a8d7d75133cd8838 Mon Sep 17 00:00:00 2001 From: Andy Sellick Date: Tue, 3 Oct 2023 09:15:22 +0100 Subject: [PATCH] Search tracking for manual pages - adds GA4 tracking to search forms on manual pages - including manuals e.g. https://www.gov.uk/guidance/understanding-your-driving-test-result/car-driving-test - and manual section e.g. https://www.gov.uk/guidance/understanding-your-driving-test-result/car-driving-test - and hmrc manual e.g. https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual --- .../content_items/manuals/_header.html.erb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/views/content_items/manuals/_header.html.erb b/app/views/content_items/manuals/_header.html.erb index 7473b2eaf..42d708429 100644 --- a/app/views/content_items/manuals/_header.html.erb +++ b/app/views/content_items/manuals/_header.html.erb @@ -8,7 +8,6 @@ <%= content_tag(:header, aria: { "labelledby": "manual-title" }, class: classes) do %>
- <% if type %> <%= type %> <% end %> @@ -22,7 +21,6 @@ margin_bottom: margin_bottom, } %> - <% # The metadata component on this page receives ga4_tracking: true as it has a 'See all updates' link. metadata_with_ga4_tracking = { ga4_tracking: true } @@ -31,15 +29,24 @@ <%= render 'govuk_publishing_components/components/metadata', metadata_with_ga4_tracking %>
<% end %>