Skip to content

Commit

Permalink
Merge pull request #2180 from alphagov/amend_tracking
Browse files Browse the repository at this point in the history
Amend tracking category on Brexit child taxon pages
  • Loading branch information
hannako authored Jul 13, 2021
2 parents 7616b68 + 5395ba4 commit 1667f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<% links = section[:links].map do |link|
link_to(link[:text], link[:path], class: "govuk-link", data: {
track_action: link[:path],
track_category: brexit_child_taxon[:track_category],
track_category: "Child taxon section links",
track_label: section[:title][:text] || "",
module: 'gem-track-click',
})
Expand Down
2 changes: 1 addition & 1 deletion test/integration/detailed_guide_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class DetailedGuideTest < ActionDispatch::IntegrationTest
track_label = find_link("Foreign travel advice")["data-track-label"]

assert_equal "/foreign-travel-advice", track_action
assert_equal "brexit-citizen-page", track_category
assert_equal "Child taxon section links", track_category
assert_equal "Travel to the EU", track_label

# adds GA tracking to the description field links
Expand Down

0 comments on commit 1667f45

Please sign in to comment.