Skip to content

Commit

Permalink
Merge pull request #3757 from alphagov/add-ga4-section
Browse files Browse the repository at this point in the history
Add section parameter to browse link tracking
  • Loading branch information
andysellick authored Sep 3, 2024
2 parents 1a9072c + 1c73f43 commit 8403e63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/browse_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def popular_links_for_slug(slug)
index_link: index,
index_total: count,
text: link[:title],
section: "popular tasks",
},
},
}
Expand Down
3 changes: 3 additions & 0 deletions spec/helpers/browse_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def popular_tasks_variant_b_page?
index_link: 1,
index_total: 3,
text: "HMRC online services: sign in or set up an account",
section: "popular tasks",
},
},
},
Expand All @@ -51,6 +52,7 @@ def popular_tasks_variant_b_page?
index_link: 2,
index_total: 3,
text: "Self Assessment tax returns",
section: "popular tasks",
},
},
},
Expand All @@ -66,6 +68,7 @@ def popular_tasks_variant_b_page?
index_link: 3,
index_total: 3,
text: "Pay employers' PAYE",
section: "popular tasks",
},
},
},
Expand Down

0 comments on commit 8403e63

Please sign in to comment.