Skip to content

Commit

Permalink
Update GA4 section for document list component
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Feb 20, 2024
1 parent 46b5332 commit abfc94c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/organisations/_latest_documents.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<% 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 }}) %>
<p class="organisation__margin-bottom brand--<%= @organisation.brand %>">
<a
href="<%= "/search/all?organisations[]=#{@organisation.slug}&order=updated-newest&parent=#{@organisation.slug}" %>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}) %>
<a href="<%= supergroup[:finder_link][:path] %>" class="govuk-link brand__color" <%= supergroup[:finder_link][:lang] %>>
<%= supergroup[:finder_link][:text] %>
</a>
Expand Down

0 comments on commit abfc94c

Please sign in to comment.