diff --git a/app/helpers/service_manual_phase_label_helper.rb b/app/helpers/service_manual_phase_label_helper.rb index 69e70ae23..6e3d65d71 100644 --- a/app/helpers/service_manual_phase_label_helper.rb +++ b/app/helpers/service_manual_phase_label_helper.rb @@ -3,6 +3,7 @@ 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/content_items/call_for_evidence.html.erb b/app/views/content_items/call_for_evidence.html.erb index 7e2a8a969..5adf825fe 100644 --- a/app/views/content_items/call_for_evidence.html.erb +++ b/app/views/content_items/call_for_evidence.html.erb @@ -24,7 +24,8 @@ <% if @content_item.national_applicability.present? %> <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, - type: @content_item.schema_name + 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 473d0e7da..480d3c046 100644 --- a/app/views/content_items/consultation.html.erb +++ b/app/views/content_items/consultation.html.erb @@ -25,7 +25,8 @@ <% if @content_item.national_applicability.present? %> <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, - type: @content_item.schema_name + 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 8bf1709b5..10093c02c 100644 --- a/app/views/content_items/detailed_guide.html.erb +++ b/app/views/content_items/detailed_guide.html.erb @@ -78,7 +78,8 @@ <% if @content_item.national_applicability.present? %> <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, - type: @content_item.schema_name + type: @content_item.schema_name, + ga4_tracking: true, } %> <% end %> diff --git a/app/views/content_items/html_publication.html.erb b/app/views/content_items/html_publication.html.erb index 358856a13..a93cdbd8c 100644 --- a/app/views/content_items/html_publication.html.erb +++ b/app/views/content_items/html_publication.html.erb @@ -51,7 +51,8 @@ <% if @content_item.national_applicability.present? %> <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, - type: @content_item.schema_name + type: @content_item.schema_name, + ga4_tracking: true, } %> <% end %> diff --git a/app/views/content_items/publication.html.erb b/app/views/content_items/publication.html.erb index 369dd5a9b..4193099c2 100644 --- a/app/views/content_items/publication.html.erb +++ b/app/views/content_items/publication.html.erb @@ -44,7 +44,8 @@ <% if @content_item.national_applicability.present? %> <%= render "govuk_publishing_components/components/devolved_nations", { national_applicability: @content_item.national_applicability, - type: @content_item.schema_name + type: @content_item.schema_name, + ga4_tracking: true, } %> <% end %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index e03fb22bf..8c3eee441 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,7 +11,7 @@