From e87f161fed843cfde72380acca72c044bb4acea7 Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Fri, 6 Aug 2021 15:37:42 +0100 Subject: [PATCH] Fix tracking Travel Advice links twice There is a bug where these navigation links are sending two GA events per click. This is occurring because the contents-list component has an undocumented [1] feature of tracking links which was presumably not known about when this code was changed to use this component [2]. The resolution for this is to remove the usage of track links on the nav element and just use the components one. [1]: https://github.com/alphagov/govuk_publishing_components/blob/147a825fc7608eb3dfdaab0d418c5b2fdaaf08aa/app/views/govuk_publishing_components/components/docs/contents_list.yml [2]: https://github.com/alphagov/government-frontend/pull/1877 --- app/views/content_items/travel_advice.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content_items/travel_advice.html.erb b/app/views/content_items/travel_advice.html.erb index 79cdfd0fb..3e13fefd4 100644 --- a/app/views/content_items/travel_advice.html.erb +++ b/app/views/content_items/travel_advice.html.erb @@ -30,7 +30,7 @@