Skip to content

Commit

Permalink
Remove link tracking from certain 'See all updates' links
Browse files Browse the repository at this point in the history
Some of these links trigger a select_content event, as they open an accordion and jump to a heading on the page as opposed to navigating to a new link. Therefore with this tracking enabled, it was sending a navigation and select_content event on click. By removing this, it will only send a select_content event on click when the accordion is expanded by the click.
  • Loading branch information
AshGDS committed Sep 27, 2023
1 parent 041671b commit 89b5094
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/views/shared/_publisher_metadata_with_logo.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<%
metadata_component_options = @content_item.publisher_metadata
metadata_component_options[:margin_bottom] = 3 if @notification_button_visible
# The metadata component on this page receives ga4_tracking: true as it has a 'See all updates' link.
metadata_component_options[:ga4_tracking] = true
%>
<div class="govuk-grid-row">
<div class="metadata-logo-wrapper<%= ' responsive-bottom-margin' if @content_item.try(:logo) %>">
Expand Down

0 comments on commit 89b5094

Please sign in to comment.