From bfd1830f5032aa64f81a6cabb0f42dff0c22e9f1 Mon Sep 17 00:00:00 2001
From: Graham Lewis <44037625+gclssvglx@users.noreply.github.com>
Date: Thu, 26 May 2022 12:18:37 +0100
Subject: [PATCH] Add additional guide page scroll tracking
---
app/views/content_items/guide.html.erb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/app/views/content_items/guide.html.erb b/app/views/content_items/guide.html.erb
index 2ffd3193ed..af81600437 100644
--- a/app/views/content_items/guide.html.erb
+++ b/app/views/content_items/guide.html.erb
@@ -13,11 +13,17 @@
"/driving-abroad/international-driving-permit",
"/taking-goods-out-uk-temporarily/get-an-ata-carnet",
]
+ scroll_track_percent_paths = [
+ "/skilled-worker-visa",
+ "/apply-to-come-to-the-uk",
+ ]
full_url = [@content_item.base_path, @content_item.part_slug].compact.join('/')
%>
<% if scroll_track_headings_paths.include?(full_url) %>
+ <% elsif scroll_track_percent_paths.include?(@content_item.base_path) %>
+
<% end %>
<% end %>