1/** 2 * All of the JS for your public-facing functionality should be 3 * included in this file. 4 */ 5 6//Analytics 7document.addEventListener("DOMContentLoaded", () => { 8 const metaNavLink = document.querySelectorAll(".wpe-navs__metanav__navlink"); 9 metaNavLink.forEach((element) => { 10 element.addEventListener("click", handleMetaNavClick); 11 }); 12 function handleMetaNavClick(e) { 13 const link = e.target.closest("a"); 14 const linkText = link.attributes["title"].value; 15 const linkURL = link.attributes["href"].value; 16 analytics.track("Navigation Clicked", { 17 link_type: "internal", 18 navigation_type: "link", 19 navigation_location: "meta nav", 20 navigation_action: "click", 21 navigation_text: linkText, 22 link_url: linkURL, 23 }); 24 } 25});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.