diff --git a/app/helpers/service_manual_phase_label_helper.rb b/app/helpers/service_manual_phase_label_helper.rb index 6e3d65d71..69e70ae23 100644 --- a/app/helpers/service_manual_phase_label_helper.rb +++ b/app/helpers/service_manual_phase_label_helper.rb @@ -3,7 +3,6 @@ def render_phase_label(presented_object, message) if presented_object.respond_to?(:phase) && %w[alpha beta].include?(presented_object.phase) render "govuk_publishing_components/components/phase_banner", phase: presented_object.phase, - ga4_tracking: true, message: end end diff --git a/app/views/components/_contents_list_with_body.html.erb b/app/views/components/_contents_list_with_body.html.erb index 4e311a9b3..b8659b4db 100644 --- a/app/views/components/_contents_list_with_body.html.erb +++ b/app/views/components/_contents_list_with_body.html.erb @@ -8,7 +8,7 @@
> <% if contents.any? %>
- <%= render 'govuk_publishing_components/components/contents_list', contents: contents, ga4_tracking: true %> + <%= render 'govuk_publishing_components/components/contents_list', contents: contents %>
<% end %> <%= block %> diff --git a/app/views/content_items/call_for_evidence.html.erb b/app/views/content_items/call_for_evidence.html.erb index 5adf825fe..3864d8f1b 100644 --- a/app/views/content_items/call_for_evidence.html.erb +++ b/app/views/content_items/call_for_evidence.html.erb @@ -25,7 +25,6 @@ <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, type: @content_item.schema_name, - ga4_tracking: true, } %> <% end %> diff --git a/app/views/content_items/consultation.html.erb b/app/views/content_items/consultation.html.erb index 480d3c046..ce8157993 100644 --- a/app/views/content_items/consultation.html.erb +++ b/app/views/content_items/consultation.html.erb @@ -26,7 +26,6 @@ <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, type: @content_item.schema_name, - ga4_tracking: true, } %> <% end %> diff --git a/app/views/content_items/detailed_guide.html.erb b/app/views/content_items/detailed_guide.html.erb index 27bc6f231..ad0365a54 100644 --- a/app/views/content_items/detailed_guide.html.erb +++ b/app/views/content_items/detailed_guide.html.erb @@ -79,7 +79,6 @@ <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, type: @content_item.schema_name, - ga4_tracking: true, } %> <% end %> diff --git a/app/views/content_items/field_of_operation.html.erb b/app/views/content_items/field_of_operation.html.erb index 6f3ff574f..cec9fc745 100644 --- a/app/views/content_items/field_of_operation.html.erb +++ b/app/views/content_items/field_of_operation.html.erb @@ -15,7 +15,6 @@
<%= render "govuk_publishing_components/components/contents_list", { contents: @content_item.contents, - ga4_tracking: true } %>
<% end %> diff --git a/app/views/content_items/guide.html.erb b/app/views/content_items/guide.html.erb index 395706ad4..2c5a4f64c 100644 --- a/app/views/content_items/guide.html.erb +++ b/app/views/content_items/guide.html.erb @@ -48,7 +48,7 @@ href: "#guide-contents" } %> <% end %>
@@ -73,11 +73,7 @@ <% end %> <% if @content_item.show_guide_navigation? %> - <% - previous_and_next_with_ga4_tracking = { ga4_tracking: true } - previous_and_next_with_ga4_tracking.merge!(@content_item.previous_and_next_navigation) # @content_item is frozen so we make a new hash - %> - <%= render 'govuk_publishing_components/components/previous_and_next_navigation', previous_and_next_with_ga4_tracking %> + <%= render 'govuk_publishing_components/components/previous_and_next_navigation', @content_item.previous_and_next_navigation %>
<% end %>
diff --git a/app/views/content_items/hmrc_manual_section.html.erb b/app/views/content_items/hmrc_manual_section.html.erb index ece4e1224..471abbab8 100644 --- a/app/views/content_items/hmrc_manual_section.html.erb +++ b/app/views/content_items/hmrc_manual_section.html.erb @@ -5,7 +5,7 @@ heading_level: 1, margin_bottom: 6, green_background: true, - type: I18n.t("manuals.hmrc_manual_type"), + type: I18n.t("manuals.hmrc_manual_type"), } %> <% end %> @@ -25,10 +25,6 @@ <% end %>
- <% - previous_and_next_with_ga4_tracking = { ga4_tracking: true } - previous_and_next_with_ga4_tracking.merge!(@content_item.previous_and_next_links) # @content_item is frozen so we make a new hash - %> - <%= render "govuk_publishing_components/components/previous_and_next_navigation", previous_and_next_with_ga4_tracking %> + <%= render "govuk_publishing_components/components/previous_and_next_navigation", @content_item.previous_and_next_links %>
<% end %> \ No newline at end of file diff --git a/app/views/content_items/how_government_works.html.erb b/app/views/content_items/how_government_works.html.erb index a0674f853..313c10dc4 100644 --- a/app/views/content_items/how_government_works.html.erb +++ b/app/views/content_items/how_government_works.html.erb @@ -62,7 +62,6 @@ text: "History of government", } ], - ga4_tracking: true } %> diff --git a/app/views/content_items/html_publication.html.erb b/app/views/content_items/html_publication.html.erb index 0020b544e..3f1f4673c 100644 --- a/app/views/content_items/html_publication.html.erb +++ b/app/views/content_items/html_publication.html.erb @@ -52,7 +52,6 @@ <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, type: @content_item.schema_name, - ga4_tracking: true, } %> <% end %> @@ -60,7 +59,7 @@
<% if @content_item.contents.any? %>
- <%= render 'govuk_publishing_components/components/contents_list', contents: @content_item.contents, format_numbers: true, ga4_tracking: true %> + <%= render 'govuk_publishing_components/components/contents_list', contents: @content_item.contents, format_numbers: true %> <%= render 'govuk_publishing_components/components/print_link', { margin_top: 0, diff --git a/app/views/content_items/manual_section.html.erb b/app/views/content_items/manual_section.html.erb index a86e2d5c2..55aebc534 100644 --- a/app/views/content_items/manual_section.html.erb +++ b/app/views/content_items/manual_section.html.erb @@ -56,7 +56,6 @@ %> <%= render "govuk_publishing_components/components/accordion", { - ga4_tracking: true, anchor_navigation: true, items: items, } %> diff --git a/app/views/content_items/manuals/_header.html.erb b/app/views/content_items/manuals/_header.html.erb index 8dc9687fa..f3bdacd6f 100644 --- a/app/views/content_items/manuals/_header.html.erb +++ b/app/views/content_items/manuals/_header.html.erb @@ -21,12 +21,7 @@ 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 } - metadata_with_ga4_tracking.merge!(content_item.manual_metadata) # @content_item is frozen so we make a new hash - %> - <%= render 'govuk_publishing_components/components/metadata', metadata_with_ga4_tracking %> + <%= render 'govuk_publishing_components/components/metadata', content_item.manual_metadata %> diff --git a/app/views/content_items/travel_advice.html.erb b/app/views/content_items/travel_advice.html.erb index 7e741f105..608d054e3 100644 --- a/app/views/content_items/travel_advice.html.erb +++ b/app/views/content_items/travel_advice.html.erb @@ -26,7 +26,7 @@ <% end %>