Skip to content

Commit

Permalink
SPIKE: display controller_name in title
Browse files Browse the repository at this point in the history
Display the controller name in the page title so its eligibility as a form of categorisation for tracking can be evaluated.
  • Loading branch information
dnkrj committed Nov 7, 2024
1 parent 4f23812 commit 8a17d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/design_system.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<%= render "govuk_publishing_components/components/layout_for_admin",
product_name:,
environment: environment,
browser_title: ("Error: " if yield(:error_summary).present?).to_s + sanitized_title do %>
browser_title: controller_name do %>

<div data-module="ga4-page-view-tracking" data-attributes='<%= track_analytics_data_on_load(sanitized_title) %>'></div>

Expand Down

0 comments on commit 8a17d0a

Please sign in to comment.