Skip to content

Commit

Permalink
Add scroll tracking to requested MoJ pages
Browse files Browse the repository at this point in the history
  • Loading branch information
chao-xian committed Jan 24, 2023
1 parent 84175c5 commit 8a78e47
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/content_items/publication.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
<%= machine_readable_metadata(
schema: (@content_item.dataset? ? :dataset : :article)
) %>

<%
# As per request https://govuk.zendesk.com/agent/tickets/5176602
scroll_track_paths = %w[/government/publications/form-pa14-medical-certificate-probate /government/publications/find-a-will-or-probate-document-form-pa1s /government/publications/report-a-will-is-lost-to-support-a-probate-application]
%>

<% if scroll_track_paths.include?(@content_item.base_path) %>
<meta name="govuk:scroll-tracker" content="" data-module="auto-scroll-tracker"/>
<% end %>
<% end %>

<%= render 'shared/email_subscribe_unsubscribe_flash' %>
Expand Down

0 comments on commit 8a78e47

Please sign in to comment.