Skip to content

Commit

Permalink
Enable GA4 tracking on the devolved nations banner
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Sep 5, 2023
1 parent e574d0d commit bbec047
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/views/content_items/call_for_evidence.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

Expand Down
3 changes: 2 additions & 1 deletion app/views/content_items/consultation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

Expand Down
3 changes: 2 additions & 1 deletion app/views/content_items/detailed_guide.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

Expand Down
3 changes: 2 additions & 1 deletion app/views/content_items/html_publication.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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 %>

Expand Down
3 changes: 2 additions & 1 deletion app/views/content_items/publication.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

Expand Down

0 comments on commit bbec047

Please sign in to comment.