From 3f70651d7f131d23faf70f31b88d98b9d9ea86f5 Mon Sep 17 00:00:00 2001 From: Andy Sellick Date: Wed, 18 Jan 2023 09:37:10 +0000 Subject: [PATCH] Turn on GA4 tracking in sidebar and footer --- app/views/content_items/statistics_announcement.html.erb | 2 +- app/views/shared/_footer_navigation.html.erb | 3 +-- app/views/shared/_sidebar_navigation.html.erb | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/content_items/statistics_announcement.html.erb b/app/views/content_items/statistics_announcement.html.erb index 97b640aa6..c2c43e0d2 100644 --- a/app/views/content_items/statistics_announcement.html.erb +++ b/app/views/content_items/statistics_announcement.html.erb @@ -44,6 +44,6 @@ <% end %>
- <%= render 'govuk_publishing_components/components/related_navigation', content_item: @content_item.content_item.parsed_content, context: :sidebar %> + <%= render 'govuk_publishing_components/components/related_navigation', content_item: @content_item.content_item.parsed_content, context: :sidebar, ga4_tracking: true %>
diff --git a/app/views/shared/_footer_navigation.html.erb b/app/views/shared/_footer_navigation.html.erb index ccfda0f22..84d4af9a5 100644 --- a/app/views/shared/_footer_navigation.html.erb +++ b/app/views/shared/_footer_navigation.html.erb @@ -1,6 +1,5 @@ <% @contextual_footer = capture do %> - <%= render 'govuk_publishing_components/components/contextual_footer', - content_item: @content_item.content_item.parsed_content %> + <%= render 'govuk_publishing_components/components/contextual_footer', content_item: @content_item.content_item.parsed_content, ga4_tracking: true %> <% end %> <% if @contextual_footer.present? %> diff --git a/app/views/shared/_sidebar_navigation.html.erb b/app/views/shared/_sidebar_navigation.html.erb index af53679eb..34918425b 100644 --- a/app/views/shared/_sidebar_navigation.html.erb +++ b/app/views/shared/_sidebar_navigation.html.erb @@ -3,5 +3,5 @@ %>
- <%= render 'govuk_publishing_components/components/contextual_sidebar', content_item: content_item %> + <%= render 'govuk_publishing_components/components/contextual_sidebar', content_item: content_item, ga4_tracking: true %>