1jQuery(document).ready(function() { 2 var utagData = {}; 3 4 switch (true) { 5 case (/staging/i.test(window.location.hostname)): 6 var udoHost = "staging-legacy.easyfundraising.org.uk"; 7 break; 8 case (/(dev)|(verification)/i.test(window.location.hostname)): 9 var udoHost = "verification-legacy.easyfundraising.org.uk"; 10 break; 11 default: 12 var udoHost = "www.easyfundraising.org.uk"; 13 } 14 15 window.setTimeout(function() { 16 if (typeof window.utag !== 'undefined') { 17 jQuery.ajax({ 18 method: "GET", 19 url: "https://" + udoHost + "/rpc/udo/", 20 xhr: function () { 21 var xhttp = new XMLHttpRequest(); 22 xhttp.withCredentials = true; 23 24 return xhttp; 25 }, 26 success: function (response) { 27 if (typeof response === "object" && response !== null) { 28 jQuery.each(response, function (key, item) { 29 utagData[item.key] = item.value; 30 }); 31 } 32 33 // Add in the page type. 34 utagData["page_type"] = "page"; 35 window.utag.view(utagData); 36 } 37 }); 38 39 utagReady = true; 40 } 41 }, 200); 42});
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.