Skip to content

Commit

Permalink
Turn on GA4 tracking in sidebar and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
andysellick committed Jan 18, 2023
1 parent 53b712c commit 3f70651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/content_items/statistics_announcement.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
<% end %>
</div>
<div class="govuk-grid-column-one-third">
<%= render 'govuk_publishing_components/components/related_navigation', content_item: @content_item.content_item.parsed_content, context: :sidebar %>
<%= render 'govuk_publishing_components/components/related_navigation', content_item: @content_item.content_item.parsed_content, context: :sidebar, ga4_tracking: true %>
</div>
</div>
3 changes: 1 addition & 2 deletions app/views/shared/_footer_navigation.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<% @contextual_footer = capture do %>
<%= render 'govuk_publishing_components/components/contextual_footer',
content_item: @content_item.content_item.parsed_content %>
<%= render 'govuk_publishing_components/components/contextual_footer', content_item: @content_item.content_item.parsed_content, ga4_tracking: true %>
<% end %>

<% if @contextual_footer.present? %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_sidebar_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
%>

<div class="govuk-grid-column-one-third">
<%= render 'govuk_publishing_components/components/contextual_sidebar', content_item: content_item %>
<%= render 'govuk_publishing_components/components/contextual_sidebar', content_item: content_item, ga4_tracking: true %>
</div>

0 comments on commit 3f70651

Please sign in to comment.