Skip to content

Commit 5395ba4

Browse files
committed
Amend tracking category
- send the name of the section rather than the name of the page, as that's already recorded. Request from PA.
1 parent 7616b68 commit 5395ba4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/content_items/detailed_guide/_brexit_sections.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<% links = section[:links].map do |link|
1313
link_to(link[:text], link[:path], class: "govuk-link", data: {
1414
track_action: link[:path],
15-
track_category: brexit_child_taxon[:track_category],
15+
track_category: "Child taxon section links",
1616
track_label: section[:title][:text] || "",
1717
module: 'gem-track-click',
1818
})

test/integration/detailed_guide_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class DetailedGuideTest < ActionDispatch::IntegrationTest
118118
track_label = find_link("Foreign travel advice")["data-track-label"]
119119

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

124124
# adds GA tracking to the description field links

0 commit comments

Comments
 (0)