From abfc94c5427388e0dda98413ed09c70602a3b02e Mon Sep 17 00:00:00 2001 From: AshGDS <8880610+AshGDS@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:32:33 +0000 Subject: [PATCH] Update GA4 section for document list component --- app/views/organisations/_latest_documents.html.erb | 2 +- .../organisations/_latest_documents_by_supergroup.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/organisations/_latest_documents.html.erb b/app/views/organisations/_latest_documents.html.erb index cf93d5585..441401474 100644 --- a/app/views/organisations/_latest_documents.html.erb +++ b/app/views/organisations/_latest_documents.html.erb @@ -14,7 +14,7 @@
<% ga4_section = t('organisations.latest_from', title: @show.prefixed_title, lang: :en) %> - <%= render "govuk_publishing_components/components/document_list", @documents.latest_documents.merge({ ga4_data: { section: ga4_section }}) %> + <%= render "govuk_publishing_components/components/document_list", @documents.latest_documents.merge({ ga4_extra_data: { section: ga4_section }}) %>

" diff --git a/app/views/organisations/_latest_documents_by_supergroup.html.erb b/app/views/organisations/_latest_documents_by_supergroup.html.erb index 44204c08b..293480841 100644 --- a/app/views/organisations/_latest_documents_by_supergroup.html.erb +++ b/app/views/organisations/_latest_documents_by_supergroup.html.erb @@ -18,7 +18,7 @@ heading_level: 3, lang: supergroup[:lang] } %> - <%= render "govuk_publishing_components/components/document_list", supergroup[:documents].merge({ ga4_data: { section: t('organisations.document_types.documents', lang: :en)}}) %> + <%= render "govuk_publishing_components/components/document_list", supergroup[:documents].merge({ ga4_extra_data: { section: t('organisations.document_types.documents', lang: :en)}}) %> > <%= supergroup[:finder_link][:text] %>