1 /////HTML Sitemap/SEO Stories Page results 2 ///Templates = 50Best Stories 3 ///Version = 1.3 4 digitalData.page_data.page_type="Search Results Page"; 5digitalData.search_data.search_page=true; 6var filter_used = ""; 7var filterCategoryType = ""; 8var articleFilterTracking = {"filter_type":"", "filter_selection":"" }; 9if (window.location.href.indexOf("tags") != -1) { filter_used = "Tags"; filterCategoryType = "Tags"; } else 10if (window.location.href.indexOf("archive") != -1) { filter_used = "Archive"; filterCategoryType = "Archive"; } else 11if (window.location.href.indexOf("categories") != -1) { filter_used = "Categories"; filterCategoryType = "Categories"; } else 12if (window.location.href.indexOf("authors") != -1) { filter_used = "Authors"; filterCategoryType = "Authors"; } 13digitalData.search_data.search_filter_used = true; 14 15//Estimate search results 16setInterval(searchData, 50); 17 18function searchData() { 19 var searchItems = document.querySelectorAll('#seoContainer .item').length; 20 if (document.querySelector('.pagination ul li') !== null) { 21 //Has Pagination 22 var searchPages = document.getElementsByClassName("pagination")[0].innerText.replace(/[^0-9 ]/g, "").slice(-1); 23 digitalData.search_data.search_results = searchPages*searchItems; 24 } else { 25 //No pagination 26 digitalData.search_data.search_results = searchItems; 27 } 28 if (document.querySelector('.title h2 span') !== null) { 29 var searchTerm = document.getElementById("searchTerm").textContent; 30 //digitalData.search_data.search_term = searchTerm; 31 articleFilterTracking.filter_type = filter_used; 32 articleFilterTracking.filter_selection = searchTerm; 33 if(filterCategoryType){ 34 if(filterCategoryType == "Tags") { 35 return 36 }else if(filterCategoryType == "Archive") { 37 digitalData.search_data.date_filter = searchTerm; 38 }else if(filterCategoryType == "Categories") { 39 digitalData.search_data.category_filter = searchTerm; 40 }else if(filterCategoryType == "Authors") { 41 digitalData.search_data.author_filter = searchTerm; 42 } 43 } 44 } 45 46} 47 48 //Stop Search Data Loop 49 setTimeout(function() { clearInterval(searchData); }, 1000); 50 // Run Launch script delayed 51 setTimeout(function() { 52 //Add Launch to top 53 var launchScriptUrl = 'https://assets.adobedtm.com/eb2e22881c4a/eca1b21caf50/launch-d12cb4e80409.min.js'; 54 var scriptAlreadyLoaded = Array.from(document.getElementsByTagName('script')).some(function (script) { 55 return script.src === launchScriptUrl; 56 }); 57 58 if (!scriptAlreadyLoaded) { 59 var head_ID = document.getElementsByTagName("head")[0]; 60 var script_element = document.createElement('script'); 61 script_element.type = 'text/javascript'; 62 script_element.src = launchScriptUrl; 63 head_ID.appendChild(script_element); 64 } 65 }, 1500); 66 67 //Add Satelite bottom to end of body 68 setTimeout(function() { 69 var satCode = "_satellite.pageBottom();"; 70 var satScript = document.createElement("script"); 71 satScript.setAttribute("type", "text/javascript"); 72 satScript.appendChild(document.createTextNode(satCode)); 73 document.body.appendChild(satScript); 74 }, 1800); 75 76 //Add Search Filter call 77 setTimeout(function() { 78 //Filter call 79 _satellite.track("article_filter_used", articleFilterTracking); 80 }, 2000);
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.