PageSourceSearch

https://trk.alba.co.kr/TA.js?202610011100

js alba.co.kr collected 2026-10-02 15:17:27 UTC 5,451 bytes, 11 lines download raw bytes

1'use strict';var BA={USEYN:"Y",DivId:"",TESTYN:!1,SERVICETYPE:"",OSVERSION:"",CID:"",isEmpty:function(c){return null==c||"null"==c||"undefined"==typeof c||"undefined"==c||""==c.replace(/ /gi,"")?!0:!1},getCookie:function(c){for(var a=document.cookie.split(";"),d=0;d<a.length;d++){var e=a[d].replace(/\s/gi,"").split("=");if(c==e[0])return decodeURIComponent(e[1])}return null},Collect:function(c,a){this.isEmpty(a.testyn)||"Y"!=a.testyn.toUpperCase()||(BA.TESTYN=!0);c=c.toUpperCase();if("VIEW"==c||"EVENT"==
2c){a.logtype=c;a.cookieenabled=navigator.cookieEnabled?"Y":"N";a.enctype=document.characterSet;a.scheme=location.protocol.replace(":","");a.host=location.hostname;a.port=""==location.port?0<=location.protocol.indexOf("https")?"443":"80":location.port;if(this.isEmpty(a.pageurl))a.pageurl=location.pathname,a.fullurl=location.href,a.getdata=location.search.replace("?","");else{a.fullurl="undefined"==typeof location.origin?a.scheme+"://"+location.host+a.pageurl:location.origin+a.pageurl;var d=a.pageurl;
30<=d.indexOf("?")?(a.pageurl=d.split("?")[0],a.getdata=d.split("?")[1]):(a.pageurl=d,a.getdata="")}d=a.getdata.split("&");for(var e=0;e<d.length;e++){var b=d[e].split("=");this.isEmpty(a.adid)&&"adid"==b[0].toLowerCase()&&(a.adid=b[1]);!this.isEmpty(a.productcd)||"productcd"!=b[0].toLowerCase()&&"prcd"!=b[0].toLowerCase()||(a.productcd=b[1]);this.isEmpty(a.category1)&&"category1"==b[0].toLowerCase()&&(a.category1=b[1]);this.isEmpty(a.category2)&&"category2"==b[0].toLowerCase()&&(a.category2=b[1]);
4this.isEmpty(a.category3)&&"category3"==b[0].toLowerCase()&&(a.category3=b[1]);this.isEmpty(a.category4)&&"category4"==b[0].toLowerCase()&&(a.category4=b[1]);this.isEmpty(a.category5)&&"category5"==b[0].toLowerCase()&&(a.category5=b[1]);this.isEmpty(a.refertype)&&"refertype"==b[0].toLowerCase()&&(a.refertype=b[1]);this.isEmpty(a.refersrc)&&"refersrc"==b[0].toLowerCase()&&(a.refersrc=b[1]);this.isEmpty(a.referkeyword)&&"referkeyword"==b[0].toLowerCase()&&(a.keyword=b[1]);this.isEmpty(a.refermedium)&&
5"refermedium"==b[0].toLowerCase()&&(a.refermedium=b[1]);this.isEmpty(a.refercampaign)&&"refercampaign"==b[0].toLowerCase()&&(a.refercampaign=b[1]);this.isEmpty(a.refercontent)&&"refercontent"==b[0].toLowerCase()&&(a.refercontent=b[1]);this.isEmpty(a.referterm)&&"referterm"==b[0].toLowerCase()&&(a.referterm=b[1]);this.isEmpty(a.referidx)&&"referidx"==b[0].toLowerCase()&&(a.referidx=b[1])}d=this.isEmpty(a.referurl)?"EVENT"==c?location.href:document.referrer:a.referurl;0<=d.indexOf("?")?(a.referurl=
6d.split("?")[0],a.referparam=d.split("?")[1]):a.referurl=d;"VIEW"==c&&this.isEmpty(a.category1)&&(a.category1=document.title);this.isEmpty(a.servicetype)?this.isEmpty(this.SERVICETYPE)&&console.log("Input servicetype!"):this.SERVICETYPE=a.servicetype;a.servicetype=this.SERVICETYPE;this.isEmpty(a.osversion)||(this.OSVERSION=a.osversion);a.osversion=this.OSVERSION;c=this.getCookie("CID");this.isEmpty(c)||(this.CID=c);a.cid=this.CID;c=location.protocol;c=BA.TESTYN?c+"//trk0.alba.co.kr/Collect":c+"//trk.alba.co.kr/Collect";
7d="";for(var f in a)d+=(""!=d?"&":"")+f+"="+encodeURIComponent(a[f]);"Y"==this.USEYN&&(a=document.createElement("img"),a.src=c+"?"+d+"&_t="+Date.now(),a.width=1,a.height=1,a.setAttribute("style","display:none"),a.setAttribute("alt",""),document.getElementById(BA.DivId).appendChild(a))}},Impression:function(c,a){this.isEmpty(a.testyn)||"Y"!=a.testyn.toUpperCase()||(BA.TESTYN=!0);c=c.toUpperCase();if("VIEW"==c||"EVENT"==c){a.logtype=c;a.scheme=location.protocol.replace(":","");a.host=location.hostname;a.port=""==location.port?
80<=location.protocol.indexOf("https")?"443":"80":location.port;if(this.isEmpty(a.pageurl))a.pageurl=location.pathname,a.getdata=location.search.replace("?","");else{var d=a.pageurl;0<=d.indexOf("?")?(a.pageurl=d.split("?")[0],a.getdata=d.split("?")[1]):(a.pageurl=d,a.getdata="")}Array.isArray(a.ads)?a.ads=JSON.stringify(a.ads):a.ads="";Array.isArray(a.items)?a.items=JSON.stringify(a.items):a.items="";if(""!=a.ads||""!=a.items){d=a.getdata.split("&");for(var e=0;e<d.length;e++){var b=d[e].split("=");
9this.isEmpty(a.category1)&&"category1"==b[0].toLowerCase()&&(a.category1=b[1]);this.isEmpty(a.category2)&&"category2"==b[0].toLowerCase()&&(a.category2=b[1]);this.isEmpty(a.category3)&&"category3"==b[0].toLowerCase()&&(a.category3=b[1]);this.isEmpty(a.category4)&&"category4"==b[0].toLowerCase()&&(a.category4=b[1]);this.isEmpty(a.category5)&&"category5"==b[0].toLowerCase()&&(a.category5=b[1])}d=this.isEmpty(a.referurl)?"EVENT"==c?location.href:document.referrer:a.referurl;0<=d.indexOf("?")?(a.referurl=
10d.split("?")[0],a.referparam=d.split("?")[1]):a.referurl=d;"VIEW"==c&&this.isEmpty(a.category1)&&(a.category1=document.title);this.isEmpty(a.servicetype)?this.isEmpty(this.SERVICETYPE)&&console.log("Input servicetype!"):this.SERVICETYPE=a.servicetype;a.servicetype=this.SERVICETYPE;this.isEmpty(a.osversion)||(this.OSVERSION=a.osversion);a.osversion=this.OSVERSION;c=this.getCookie("CID");this.isEmpty(c)||(this.CID=c);a.cid=this.CID;c=location.protocol;c=BA.TESTYN?c+"//trk0.alba.co.kr/Impression":c+
11"//trk.alba.co.kr/Impression";d="";for(var f in a)d+=(""!=d?"&":"")+f+"="+encodeURIComponent(a[f]);"Y"==this.USEYN&&(a=document.createElement("img"),a.src=c+"?"+d,a.width=1,a.height=1,a.setAttribute("style","display:none"),a.setAttribute("alt",""))}}},Init:function(c){BA.DivId=c;document.write("<div id='"+BA.DivId+"'></div>")}};BA.Init("_BA");

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.