From caf4097a8fdf3873e06b02acb2319427f84b4453 Mon Sep 17 00:00:00 2001 From: AshGDS <8880610+AshGDS@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:21:05 +0100 Subject: [PATCH] Enable GA4 tracking on the phase banner --- app/views/email_alert_subscriptions/new.html.erb | 2 +- app/views/finders/_show_header.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/email_alert_subscriptions/new.html.erb b/app/views/email_alert_subscriptions/new.html.erb index b4950a295..706f1c34f 100644 --- a/app/views/email_alert_subscriptions/new.html.erb +++ b/app/views/email_alert_subscriptions/new.html.erb @@ -5,7 +5,7 @@ <% end %> <% if @signup_presenter.beta? %> - <%= render 'govuk_publishing_components/components/phase_banner', phase: "beta" %> + <%= render 'govuk_publishing_components/components/phase_banner', phase: "beta", ga4_tracking: true %> <% end %>
diff --git a/app/views/finders/_show_header.html.erb b/app/views/finders/_show_header.html.erb index 62b36df0d..52cd97034 100644 --- a/app/views/finders/_show_header.html.erb +++ b/app/views/finders/_show_header.html.erb @@ -1,6 +1,6 @@
<% if content_item.show_phase_banner? %> - <%= render 'govuk_publishing_components/components/phase_banner', phase: content_item.phase, message: sanitize(content_item.phase_message), inverse: inverse %> + <%= render 'govuk_publishing_components/components/phase_banner', phase: content_item.phase, message: sanitize(content_item.phase_message), inverse: inverse, ga4_tracking: true %> <% end %> <% if @breadcrumbs.breadcrumbs %>