1/*!/wp-content/plugins/wp-search-insights/assets/js/search-navigation.js*/ 2jQuery(document).ready(function($){"use strict";const MAX_SEARCH_AGE=5*60*1000;if(window.location.href.includes('?s=')){return} 3let search_id=null;try{const search_id_match=document.cookie.match(/wpsi_search_id=([^;]+)/);if(search_id_match){search_id=decodeURIComponent(search_id_match[1])}}catch(e){} 4let searchData=null;try{const cookieMatch=document.cookie.match(/wpsi_last_search=([^;]+)/);if(cookieMatch){searchData=JSON.parse(decodeURIComponent(cookieMatch[1]))}else{}}catch(e){} 5if(!searchData){return} 6if(search_id&&(!searchData.search_id||searchData.search_id!==search_id)){searchData.search_id=search_id} 7const currentTime=new Date().getTime();if(currentTime-searchData.timestamp>MAX_SEARCH_AGE){document.cookie="wpsi_last_search=; path=/; max-age=0";document.cookie="wpsi_search_id=; path=/; max-age=0";return} 8const currentUrl=window.location.href;const currentDomain=window.location.hostname;const isConversion=searchData.results&&searchData.results.includes(currentUrl);const isInternalNavigation=!isConversion&¤tUrl.includes(currentDomain);$.ajax({type:"POST",url:wpsi_search_navigation.ajaxurl,dataType:'json',data:{action:'wpsi_store_landing_page',search_term:searchData.term,search_id:searchData.search_id,landing_page:currentUrl,is_conversion:isConversion?1:0,is_internal:isInternalNavigation?1:0,search_timestamp:searchData.timestamp,landing_time:currentTime/1000,token:wpsi_search_navigation.token},success:function(){document.cookie="wpsi_last_search=; path=/; max-age=0";document.cookie="wpsi_search_id=; path=/; max-age=0"},error:function(){document.cookie="wpsi_last_search=; path=/; max-age=0";document.cookie="wpsi_search_id=; path=/; max-age=0"}})}) 9;
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.