Skip to content

Commit

Permalink
Add tracking
Browse files Browse the repository at this point in the history
- adds tracking of links only to the foreign advice travel box on /foreign-travel-advice
- should track link clicks using the options on the box and use the link text for the event label
  • Loading branch information
andysellick committed Aug 12, 2021
1 parent 7e20c04 commit 797a063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_items/travel_advice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="govuk-grid-column-two-thirds travel-advice__header">
<%= render 'govuk_publishing_components/components/title', @content_item.title_and_context %>

<div class="travel-advice-notice">
<div class="travel-advice-notice" data-module="gem-track-click" data-track-category="globalTravelAdviceWarning" data-track-action="callOutBoxClicked" data-track-links-only>
<div class="travel-advice-notice__header">
<%= render "govuk_publishing_components/components/warning_text", {
text: t("travel_advice.coronavirus_warning.title"),
Expand Down

0 comments on commit 797a063

Please sign in to comment.