Skip to content

Commit

Permalink
Merge pull request #2215 from alphagov/add-tracking-to-callout-box
Browse files Browse the repository at this point in the history
Add tracking to the travel advice pages
  • Loading branch information
andysellick authored Sep 10, 2021
2 parents 59c47ef + 3130a17 commit 05e81a5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions app/views/content_items/travel_advice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,17 @@
<%= render 'shared/travel_advice_summary', content_item: @content_item %>
<% end %>

<%= render 'govuk_publishing_components/components/govspeak', {
direction: page_text_direction,
} do %>
<%= raw(@content_item.current_part_body) %>
<% end %>
<div data-module="gem-track-click"
data-track-category="SummaryTravelAdviceWarning"
data-track-action="callOutBoxClicked"
data-track-links-only
data-limit-to-element-class="call-to-action">
<%= render 'govuk_publishing_components/components/govspeak', {
direction: page_text_direction,
} do %>
<%= raw(@content_item.current_part_body) %>
<% end %>
</div>

<%= render 'govuk_publishing_components/components/previous_and_next_navigation', @content_item.previous_and_next_navigation %>

Expand Down

0 comments on commit 05e81a5

Please sign in to comment.