谷歌 analytics.js 部分解密版
(function(){var aa=encodeURIComponent,f=window,ba=setTimeout,n=Math;function Pc(a,b){return a.href=b}function fa(a,b){return a.name=b} var Qc="replace",q="data",m="match",xc="send",ja="port",u="createElement",id="setAttribute",da="getTime",x="host",A="split",B="location",ra="hasOwnProperty",ma="hostname",ga="search",E="protocol",Ab="href",kd="action",G="apply",p="push",h="hash",s="test",ha="slice",r="cookie",t="indexOf",ia="defaultValue",v="name",y="length",z="prototype",la="clientWidth",jd="target",C="call",na="clientHeight",F="substring",oa="navigator",Ub="parentNode",H="join",I="toLowerCase";var pa=new function(){var a=[];this.set=function(b){a[b]=!0};this.M=function(){for(var b=[],c=0;c<a[y];c++)a[c]&&(b[n.floor(c/6)]=b[n.floor(c/6)]^1<<c%6);for(c=0;c<b[y];c++)b[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b[c]||0);return b[H]("")+"~"}};function J(a){pa.set(a)};function K(a){return"function"==typeof a}function vd(a){return"[object Array]"==Object[z].toString[C](Object(a))}function qa(a){return void 0!=a&&-1<(a.constructor+"")[t]("String")}function ea(a,b){return 0==a[t](b)}function Lc(a){return a?a[Qc](/^[\s\xa0]+|[\s\xa0]+$/g,""):""}function Td(){return[Ud()^Mc()&2147483647,n.round((new Date)[da]()/1E3)][H](".")}function Ca(a){var b=M[u]("img");b.width=1;b.height=1;b.src=a;return b}function L(){} function sa(a){if(aa instanceof Function)return aa(a);J(28);return a}function ka(a){return sa(a)[Qc](/\(/g,"%28")[Qc](/\)/g,"%29")}var ta=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){J(27)}},ua=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}; function vc(a,b){if(a){var c=M[u]("script");c.type="text/javascript";c.async=!0;c.src=a;c.id=b;var d=M.getElementsByTagName("script")[0];d[Ub].insertBefore(c,d)}}function D(){return Ba||"https:"==M[B][E]?"https:":"http:"}function eb(){var a=""+M[B][ma];return 0==a[t]("www.")?a[F](4):a}function va(a){var b=M.referrer;if(/^https?:\/\//i[s](b)){if(a)return b;a="//"+M[B][ma];var c=b[t](a);if(5==c||6==c)if(a=b.charAt(c+a[y]),"/"==a||"?"==a||""==a||":"==a)return;return b}} function wa(a,b){if(1==b[y]&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=n.min(a[y]+1,b[y]),e=0;e<d;e++)if("object"===typeof b[e]){for(var g in b[e])b[e][ra](g)&&(c[g]=b[e][g]);break}else e<a[y]&&(c[a[e]]=b[e]);return c};var N=function(){this.keys=[];this.w={};this.m={}};N[z].set=function(a,b,c){this.keys[p](a);c?this.m[":"+a]=b:this.w[":"+a]=b};N[z].get=function(a){return this.m[ra](":"+a)?this.m[":"+a]:this.w[":"+a]};N[z].map=function(a){for(var b=0;b<this.keys[y];b++){var c=this.keys[b],d=this.get(c);d&&a(c,d)}};var O=f,M=document,xa=function(a){var b=O._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===O["ga-disable-"+a])return!0;try{var c=O.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(d){}return!1},fb=function(a){ba(a,100)},ya=function(a){var b=[],c=M[r][A](";");a=new RegExp("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c[y];d++){var e=c[d][m](a);e&&b[p](e[1])}return b},zc=function(a,b,c,d,e,g){e=xa(e)?!1:Aa[s](M[B][ma])||"/"==c&&za[s](d)?!1:!0;if(!e)return!1;b&&1200<b[y]&&(b=b[F](0,1200),J(24)); c=a+"="+b+"; path="+c+"; ";g&&(c+="expires="+(new Date((new Date)[da]()+g)).toGMTString()+"; ");d&&"none"!=d&&(c+="domain="+d+";");d=M[r];M.cookie=c;if(!(d=d!=M[r]))t:{a=ya(a);for(d=0;d<a[y];d++)if(b==a[d]){d=!0;break t}d=!1}return d},za=new RegExp(/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/),Aa=new RegExp(/(^|\.)doubleclick\.net$/i),Mc=function(){for(var a=O[oa].userAgent+(M[r]?M[r]:"")+(M.referrer?M.referrer:""),b=a[y],c=O.history[y];0<c;)a+=c--^b++;return La(a)};var oc=function(){return D()+"//www.google-analytics.com"},Da=function(a){fa(this,"len");this.message=a+"-8192"},Ea=function(a){fa(this,"ff2post");this.message=a+"-2036"},Ga=function(a,b,c,d){c=c||L;d&&(d=c,O[oa].sendBeacon?O[oa].sendBeacon(a,b)?(d(),d=!0):d=!1:d=!1);if(!d)if(2036>=b[y])wc(a,b,c);else if(8192>=b[y]){if(0<=O[oa].userAgent[t]("Firefox")&&![].reduce)throw new Ea(b[y]);wd(a,b,c)||xd(a,b,c)||Fa(b,c)||c()}else throw new Da(b[y]);},wc=function(a,b,c){var d=Ca(a+"?"+b);d.onload=d.onerror= function(){d.onload=null;d.onerror=null;c()}},xd=function(a,b,c){var d;d=O.XDomainRequest;if(!d)return!1;d=new d;d.open("POST",a);d.onerror=function(){c()};d.onload=c;d[xc](b);return!0},wd=function(a,b,c){var d=O.XMLHttpRequest;if(!d)return!1;var e=new d;if(!("withCredentials"in e))return!1;e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e[xc](b);return!0},Fa=function(a,b){if(!M.body)return fb(function(){Fa(a, b)}),!0;a=aa(a);try{var c=M[u]('<iframe name="'+a+'"></iframe>')}catch(d){c=M[u]("iframe"),fa(c,a)}c.height="0";c.width="0";c.style.display="none";c.style.visibility="hidden";var e=M[B],e=oc()+"/analytics_iframe.html#"+aa(e[E]+"//"+e[x]+"/favicon.ico"),g=function(){c.src="";c[Ub]&&c[Ub].removeChild(c)};ta(O,"beforeunload",g);var ca=!1,l=0,k=function(){if(!ca){try{if(9<l||c.contentWindow[B][x]==M[B][x]){ca=!0;g();ua(O,"beforeunload",g);b();return}}catch(a){}l++;ba(k,200)}};ta(c,"load",k);M.body.appendChild(c); c.src=e;return!0};var Ha=function(){this.t=[]};Ha[z].add=function(a){this.t[p](a)};Ha[z].D=function(a){try{for(var b=0;b<this.t[y];b++){var c=a.get(this.t[b]);c&&K(c)&&c[C](O,a)}}catch(d){}b=a.get(Ia);b!=L&&K(b)&&(a.set(Ia,L,!0),ba(b,10))};function Ja(a){if(100!=a.get(Ka)&&La(P(a,Q))%1E4>=100*R(a,Ka))throw"abort";}function Ma(a){if(xa(P(a,Na)))throw"abort";}function Oa(){var a=M[B][E];if("http:"!=a&&"https:"!=a)throw"abort";} function Pa(a){try{O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest?J(40):O.XDomainRequest&&J(41),O[oa].sendBeacon&&J(42)}catch(b){}a.set(Ac,R(a,Ac)+1);var c=[];Qa.map(function(b,d){if(d.p){var e=a.get(b);void 0!=e&&e!=d[ia]&&("boolean"==typeof e&&(e*=1),c[p](d.p+"="+sa(""+e)))}});if(Ed(new Od(1E4))){var d=[];d[p](hd());d[p][G](d,Td()[A]("."));d[p](Bd());var e;e=O.crypto?!0:!1;d[p](e?"c":"b");c[p]("z="+d[H]("."))}else c[p]("z="+Bd());a.set(Ra,c[H]("&"),!0)} function Sa(a){var b=P(a,gd)||oc()+"/collect";Ga(b,P(a,Ra),a.get(Ia),a.get(Vd));a.set(Ia,L,!0)}function Hc(a){var b=O.gaData;b&&(b.expId&&a.set(Nc,b.expId),b.expVar&&a.set(Oc,b.expVar))}function cd(){if(O[oa]&&"preview"==O[oa].loadPurpose)throw"abort";}function yd(a){var b=O.gaDevIds;vd(b)&&0!=b[y]&&a.set("&did",b[H](","),!0)}function vb(a){if(!a.get(Na))throw"abort";};var hd=function(){return n.round(2147483647*n.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}},Ud=hd;function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){var c=R(a,Wa),d=(new Date)[da](),e=R(a,Xa);0==e&&a.set(Xa,d);e=n.round(2*(d-e)/1E3);0<e&&(c=n.min(c+e,20),a.set(Xa,d));if(0>=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new N},Qa=new N,Za=[];Ya[z].get=function(a){var b=$a(a),c=this[q].get(a);b&&void 0==c&&(c=K(b[ia])?b[ia]():b[ia]);return b&&b.n?b.n(this,a,c):c};var P=function(a,b){var c=a.get(b);return void 0==c?"":""+c},R=function(a,b){var c=a.get(b);return void 0==c||""===c?0:1*c};Ya[z].set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a[ra](d)&&ab(this,d,a[d],c);else ab(this,a,b,c)}; var ab=function(a,b,c,d){if(void 0!=c)switch(b){case Na:wb[s](c)}var e=$a(b);e&&e.o?e.o(a,b,c,d):a[q].set(b,c,d)},bb=function(a,b,c,d,e){fa(this,a);this.p=b;this.n=d;this.o=e;this.defaultValue=c},$a=function(a){var b=Qa.get(a);if(!b)for(var c=0;c<Za[y];c++){var d=Za[c],e=d[0].exec(a);if(e){b=d[1](e);Qa.set(b[v],b);break}}return b},yc=function(a){var b;Qa.map(function(c,d){d.p==a&&(b=d)});return b&&b[v]},S=function(a,b,c,d,e){a=new bb(a,b,c,d,e);Qa.set(a[v],a);return a[v]},cb=function(a,b){Za[p]([new RegExp("^"+ a+"$"),b])},T=function(a,b,c){return S(a,b,c,void 0,db)},db=function(){};var gb=qa(f.GoogleAnalyticsObject)&&Lc(f.GoogleAnalyticsObject)||"ga",Ba=!1,hb=T("apiVersion","v"),ib=T("clientVersion","_v");S("anonymizeIp","aip");var jb=S("adSenseId","a"),Va=S("hitType","t"),Ia=S("hitCallback"),Ra=S("hitPayload");S("nonInteraction","ni");S("currencyCode","cu");var Vd=S("useBeacon",void 0,!1);S("dataSource","ds");S("sessionControl","sc","");S("sessionGroup","sg");S("queueTime","qt");var Ac=S("_s","_s");S("screenName","cd"); var kb=S("location","dl",""),lb=S("referrer","dr"),mb=S("page","dp","");S("hostname","dh");var nb=S("language","ul"),ob=S("encoding","de");S("title","dt",function(){return M.title||void 0});cb("contentGroup([0-9]+)",function(a){return new bb(a[0],"cg"+a[1])});var pb=S("screenColors","sd"),qb=S("screenResolution","sr"),rb=S("viewportSize","vp"),sb=S("javaEnabled","je"),tb=S("flashVersion","fl");S("campaignId","ci");S("campaignName","cn");S("campaignSource","cs");S("campaignMedium","cm"); S("campaignKeyword","ck");S("campaignContent","cc");var ub=S("eventCategory","ec"),xb=S("eventAction","ea"),yb=S("eventLabel","el"),zb=S("eventValue","ev"),Bb=S("socialNetwork","sn"),Cb=S("socialAction","sa"),Db=S("socialTarget","st"),Eb=S("l1","plt"),Fb=S("l2","pdt"),Gb=S("l3","dns"),Hb=S("l4","rrt"),Ib=S("l5","srt"),Jb=S("l6","tcp"),Kb=S("l7","dit"),Lb=S("l8","clt"),Mb=S("timingCategory","utc"),Nb=S("timingVar","utv"),Ob=S("timingLabel","utl"),Pb=S("timingValue","utt");S("appName","an"); S("appVersion","av","");S("appId","aid","");S("appInstallerId","aiid","");S("exDescription","exd");S("exFatal","exf");var Nc=S("expId","xid"),Oc=S("expVar","xvar"),Rc=S("_utma","_utma"),Sc=S("_utmz","_utmz"),Tc=S("_utmht","_utmht"),Ua=S("_hc",void 0,0),Xa=S("_ti",void 0,0),Wa=S("_to",void 0,20);cb("dimension([0-9]+)",function(a){return new bb(a[0],"cd"+a[1])});cb("metric([0-9]+)",function(a){return new bb(a[0],"cm"+a[1])});S("linkerParam",void 0,void 0,Bc,db); var ld=S("usage","_u",void 0,function(){return pa.M()},db);S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){J(34);Ba=!!c});var ed=S("_j1","jid"),Hd=S("_j2","gjid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0][F](1));c&&(b.n=function(a){return a.get(c)},b.o=function(a,b,g,ca){a.set(c,g,ca)},b.p=void 0);return b}); var Qb=T("_oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),md=S("validationTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=T("_rlt"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),zd=S("devIdTask"),Cd=S("timingTask"),Ld=S("displayFeaturesTask"),V=T("name"),Q=T("clientId","cid"),Ad=S("userId","uid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),W=T("cookieDomain"),Yb=T("cookiePath",void 0,"/"),Zb=T("cookieExpires",void 0,63072E3),$b=T("legacyCookieDomain"), Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1),gd=S("transportUrl"),Md=S("_r","_r"),Nd=S("_dfr",void 0,1); function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c[G](this,arguments)}catch(b){var g=b&&b[v];if(!(1<=100*n.random()||xa("?"))){var ca=["t=error","_e=exc","_v=j30","sr=1"];a&&ca[p]("_f="+a);g&&ca[p]("_m="+sa(g[F](0,100)));ca[p]("aip=1");ca[p]("z="+Ud());Ga(oc()+"/collect",ca[H]("&"))}throw b;}}};var Od=function(a){this.V=a;this.fa=void 0;this.$=!1;this.ha=void 0;this.ea=1},Ed=function(a,b,c){if(a.fa&&a.$)return 0;a.$=!0;if(b){if(a.ha&&R(b,a.ha))return R(b,a.ha);if(0==b.get(dc))return 0}if(0==a.V)return 0;void 0===c&&(c=Bd());return 0==c%a.V?n.floor(c/a.V)%a.ea+1:0};function fc(){var a,b,c;if((c=(c=O[oa])?c.plugins:null)&&c[y])for(var d=0;d<c[y]&&!b;d++){var e=c[d];-1<e[v][t]("Shockwave Flash")&&(b=e.description)}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=a.GetVariable("$version")}catch(g){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b="WIN 6,0,21,0",a.AllowScriptAccess="always",b=a.GetVariable("$version")}catch(ca){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=a.GetVariable("$version")}catch(l){}b&& (a=b[m](/[\d]+/g))&&3<=a[y]&&(b=a[0]+"."+a[1]+" r"+a[2]);return b||void 0};var gc=function(a,b){var c=n.min(R(a,dc),100);if(!(La(P(a,Q))%100>=c)&&(c={},Ec(c)||Fc(c))){var d=c[Eb];void 0==d||Infinity==d||isNaN(d)||(0<d?(Y(c,Gb),Y(c,Jb),Y(c,Ib),Y(c,Fb),Y(c,Hb),Y(c,Kb),Y(c,Lb),b(c)):ta(O,"load",function(){gc(a,b)},!1))}},Ec=function(a){var b=O.performance||O.webkitPerformance,b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Eb]=b.loadEventStart-c;a[Gb]=b.domainLookupEnd-b.domainLookupStart;a[Jb]=b.connectEnd-b.connectStart;a[Ib]=b.responseStart-b.requestStart; a[Fb]=b.responseEnd-b.responseStart;a[Hb]=b.fetchStart-c;a[Kb]=b.domInteractive-c;a[Lb]=b.domContentLoadedEventStart-c;return!0},Fc=function(a){if(O.top!=O)return!1;var b=O.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;a[Eb]=c;return!0},Y=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},Fd=function(a){return function(b){"pageview"!=b.get(Va)||a.I||(a.I=!0,gc(b,function(b){a[xc]("timing",b)}))}};var hc=!1,mc=function(a){if("cookie"==P(a,ac)){var b=P(a,U),c=nd(a),d=kc(P(a,Yb)),e=lc(P(a,W)),g=1E3*R(a,Zb),ca=P(a,Na);if("auto"!=e)zc(b,c,d,e,ca,g)&&(hc=!0);else{J(32);var l;t:{c=[];e=eb()[A](".");if(4==e[y]&&(l=e[e[y]-1],parseInt(l,10)==l)){l=["none"];break t}for(l=e[y]-2;0<=l;l--)c[p](e[ha](l)[H]("."));c[p]("none");l=c}for(var k=0;k<l[y];k++)if(e=l[k],a[q].set(W,e),c=nd(a),zc(b,c,d,e,ca,g)){hc=!0;return}a[q].set(W,"auto")}}},nc=function(a){if("cookie"==P(a,ac)&&!hc&&(mc(a),!hc))throw"abort";}, Yc=function(a){if(a.get(Wc)){var b=P(a,W),c=P(a,$b)||eb(),d=Xc("__utma",c,b);d&&(J(19),a.set(Tc,(new Date)[da](),!0),a.set(Rc,d.R),(b=Xc("__utmz",c,b))&&d[h]==b[h]&&a.set(Sc,b.R))}},nd=function(a){var b=ka(P(a,Q)),c=ic(P(a,W));a=jc(P(a,Yb));1<a&&(c+="-"+a);return["GA1",c,b][H](".")},Gc=function(a,b,c){for(var d=[],e=[],g,ca=0;ca<a[y];ca++){var l=a[ca];if(l.r[c]==b)d[p](l);else void 0==g||l.r[c]<g?(e=[l],g=l.r[c]):l.r[c]==g&&e[p](l)}return 0<d[y]?d:e},lc=function(a){return 0==a[t](".")?a.substr(1): a},ic=function(a){return lc(a)[A](".")[y]},kc=function(a){if(!a)return"/";1<a[y]&&a.lastIndexOf("/")==a[y]-1&&(a=a.substr(0,a[y]-1));0!=a[t]("/")&&(a="/"+a);return a},jc=function(a){a=kc(a);return"/"==a?1:a[A]("/")[y]};function Xc(a,b,c){"none"==b&&(b="");var d=[],e=ya(a);a="__utma"==a?6:2;for(var g=0;g<e[y];g++){var ca=(""+e[g])[A](".");ca[y]>=a&&d[p]({hash:ca[0],R:e[g],O:ca})}return 0==d[y]?void 0:1==d[y]?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){var c,d;null==a?c=d=1:(c=La(a),d=La(ea(a,".")?a[F](1):"."+a));for(var e=0;e<b[y];e++)if(b[e][h]==c||b[e][h]==d)return b[e]};var od=new RegExp(/^https?:\/\/([^\/:]+)/),pd=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function Bc(a){a=a.get(Q);var b=Ic(a,0);return"_ga=1."+sa(b+"."+a)}function Ic(a,b){for(var c=new Date,d=O[oa],e=d.plugins||[],c=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b],d=0;d<e[y];++d)c[p](e[d].description);return La(c[H]("."))}var Dc=function(a){J(48);this.target=a;this.T=!1}; Dc[z].Q=function(a,b){if(a.tagName){if("a"==a.tagName[I]()){a[Ab]&&Pc(a,qd(this,a[Ab],b));return}if("form"==a.tagName[I]())return rd(this,a)}if("string"==typeof a)return qd(this,a,b)}; var qd=function(a,b,c){var d=pd.exec(b);d&&3<=d[y]&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a[jd].get("linkerParam");var e=b[t]("?"),d=b[t]("#");c?b+=(-1==d?"#":"&")+a:(c=-1==e?"?":"&",b=-1==d?b+(c+a):b[F](0,d)+c+a+b[F](d));return b},rd=function(a,b){if(b&&b[kd]){var c=a[jd].get("linkerParam")[A]("=")[1];if("get"==b.method[I]()){for(var d=b.childNodes||[],e=0;e<d[y];e++)if("_ga"==d[e][v]){d[e][id]("value",c);return}d=M[u]("input");d[id]("type","hidden");d[id]("name","_ga");d[id]("value",c);b.appendChild(d)}else"post"== b.method[I]()&&(b.action=qd(a,b[kd]))}}; Dc[z].S=function(a,b,c){function d(c){try{c=c||O.event;var d;t:{var g=c[jd]||c.srcElement;for(c=100;g&&0<c;){if(g[Ab]&&g.nodeName[m](/^a(?:rea)?$/i)){d=g;break t}g=g[Ub];c--}d={}}("http:"==d[E]||"https:"==d[E])&&sd(a,d[ma]||"")&&d[Ab]&&Pc(d,qd(e,d[Ab],b))}catch(w){J(26)}}var e=this;this.T||(this.T=!0,ta(M,"mousedown",d,!1),ta(M,"touchstart",d,!1),ta(M,"keyup",d,!1));if(c){c=function(b){b=b||O.event;if((b=b[jd]||b.srcElement)&&b[kd]){var c=b[kd][m](od);c&&sd(a,c[1])&&rd(e,b)}};for(var g=0;g<M.forms[y];g++)ta(M.forms[g], "submit",c)}};function sd(a,b){if(b==M[B][ma])return!1;for(var c=0;c<a[y];c++)if(a[c]instanceof RegExp){if(a[c][s](b))return!0}else if(0<=b[t](a[c]))return!0;return!1};var Jd=function(a,b,c,d){this.U=b;this.aa=c;(b=d)||(b=(b=P(a,V))&&"t0"!=b?Wd[s](b)?"_gat_"+ka(P(a,Na)):"_gat_"+ka(b):"_gat");this.Y=b},Rd=function(a,b){var c=b.get(Wb);b.set(Wb,function(b){Pd(a,b);var d=c(b);Qd(a,b);return d});var d=b.get(Xb);b.set(Xb,function(b){var c=d(b);Id(a,b);return c})},Pd=function(a,b){b.get(a.U)||("1"==ya(a.Y)[0]?b.set(a.U,"",!0):b.set(a.U,""+Ud(),!0))},Qd=function(a,b){b.get(a.U)&&zc(a.Y,"1",b.get(Yb),b.get(W),b.get(Na),6E5)},Id=function(a,b){if(b.get(a.U)){var c=new N, d=function(a){c.set($a(a).p,b.get(a))};d(hb);d(ib);d(Na);d(Q);d(a.U);d(ld);var e=a.aa;c.map(function(a,b){e+=sa(a)+"="+sa(""+b)+"&"});e+="z="+Ud();Ca(e);b.set(a.U,"",!0)}},Wd=/^gtm\d+$/;var fd=function(a,b){var c=a.b;if(!c.get("dcLoaded")){J(29);O._gaq&&J(52);b=b||{};var d;b[U]&&(d=ka(b[U]));d=new Jd(c,ed,"https://stats.g.doubleclick.net/collect?t=dc&aip=1&",d);Rd(d,c);c.set("dcLoaded",!0)}};var Sd=function(a){var b;a.get("dcLoaded")||"cookie"!=a.get(ac)?b=!1:(b=new Od(R(a,Nd)),b=Ed(b,null,La(a.get(Q))));b&&(J(51),b=new Jd(a,ed),Pd(b,a),Qd(b,a),a.get(b.U)&&(a.set(Md,1,!0),a.set(gd,oc()+"/r/collect",!0)))};var Kd=function(a,b){var c=a.b;if(!c.get("_rlsaLoaded")){J(38);b=b||{};if(b[U])var d=ka(b[U]);d=new Jd(c,Hd,"https://www.google.com/ads/ga-audiences?t=sr&aip=1&",d);Rd(d,c);c.set("_rlsaLoaded",!0);tc("displayfeatures",a,b)}};function $c(){var a=O.gaGlobal=O.gaGlobal||{};return a.hid=a.hid||Ud()};var ad,bd=function(a,b,c){if(!ad){var d;d=M[B][h];var e=O[v],g=/^#?gaso=([^&]*)/;if(e=(d=(d=d&&d[m](g)||e&&e[m](g))?d[1]:ya("GASO")[0]||"")&&d[m](/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))zc("GASO",""+d,c,b,a,0),f._udo||(f._udo=b),f._utcp||(f._utcp=c),a=e[1],vc("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+Ud(),"_gasojs");ad=!0}};var wb=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,pc=function(a){function b(a,b){d.b[q].set(a,b)}function c(a,c){b(a,c);d.filters.add(a)}var d=this;this.b=new Ya;this.filters=new Ha;b(V,a[V]);b(Na,Lc(a[Na]));b(U,a[U]);b(W,a[W]||eb());b(Yb,a[Yb]);b(Zb,a[Zb]);b($b,a[$b]);b(Wc,a[Wc]);b(bc,a[bc]);b(cc,a[cc]);b(Ka,a[Ka]);b(dc,a[dc]);b(ec,a[ec]);b(ac,a[ac]);b(Ad,a[Ad]);b(hb,1);b(ib,"j30");c(Qb,Ma);c(dd,cd);c(Rb,Oa);c(md,vb);c(Sb,nc);c(Uc,Yc);c(Tb,Ja);c(Vb,Ta);c(Vc,Hc);c(zd,yd);c(Ld,Sd);c(Wb,Pa);c(Xb,Sa);c(Cd,Fd(this)); Jc(this.b,a[Q]);Kc(this.b);this.b.set(jb,$c());bd(this.b.get(Na),this.b.get(W),this.b.get(Yb))},Jc=function(a,b){if("cookie"==P(a,ac)){hc=!1;var c;i:{var d=ya(P(a,U));if(d&&!(1>d[y])){c=[];for(var e=0;e<d[y];e++){var g;g=d[e][A](".");var ca=g.shift();("GA1"==ca||"1"==ca)&&1<g[y]?(ca=g.shift()[A]("-"),1==ca[y]&&(ca[1]="1"),ca[0]*=1,ca[1]*=1,g={r:ca,s:g[H](".")}):g=void 0;g&&c[p](g)}if(1==c[y]){J(13);c=c[0].s;break i}if(0==c[y])J(12);else{J(14);d=ic(P(a,W));c=Gc(c,d,0);if(1==c[y]){c=c[0].s;break i}d= jc(P(a,Yb));c=Gc(c,d,1);c=c[0]&&c[0].s;break i}}c=void 0}c||(c=P(a,W),d=P(a,$b)||eb(),c=Xc("__utma",d,c),(c=void 0==c?void 0:c.O[1]+"."+c.O[2])&&J(10));c&&(a[q].set(Q,c),hc=!0)}c=a.get(cc);if(e=(c=M[B][c?"href":"search"][m]("(?:&|#|\\?)"+sa("_ga")[Qc](/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==c[y]?c[1]:"")a.get(bc)?(c=e[t]("."),-1==c?J(22):(d=e[F](c+1),"1"!=e[F](0,c)?J(22):(c=d[t]("."),-1==c?J(22):(e=d[F](0,c),c=d[F](c+1),e!=Ic(c,0)&&e!=Ic(c,-1)&&e!=Ic(c,-2)?J(23):(J(11),a[q].set(Q, c)))))):J(21);b&&(J(9),a[q].set(Q,sa(b)));a.get(Q)||((c=(c=O.gaGlobal&&O.gaGlobal.vid)&&-1!=c[ga](/^(?:utma\.)?\d+\.\d+$/)?c:void 0)?(J(17),a[q].set(Q,c)):(J(8),a[q].set(Q,Td())));mc(a)},Kc=function(a){var b=O[oa],c=O.screen,d=M[B];a.set(lb,va(a.get(ec)));if(d){var e=d.pathname||"";"/"!=e.charAt(0)&&(J(31),e="/"+e);a.set(kb,d[E]+"//"+d[ma]+e+d[ga])}c&&a.set(qb,c.width+"x"+c.height);c&&a.set(pb,c.colorDepth+"-bit");var c=M.documentElement,g=(e=M.body)&&e[la]&&e[na],ca=[];c&&c[la]&&c[na]&&("CSS1Compat"=== M.compatMode||!g)?ca=[c[la],c[na]]:g&&(ca=[e[la],e[na]]);c=0>=ca[0]||0>=ca[1]?"":ca[H]("x");a.set(rb,c);a.set(tb,fc());a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"")[I]());if(d&&a.get(cc)&&(b=M[B][h])){b=b[A](/[?&#]+/);d=[];for(c=0;c<b[y];++c)(ea(b[c],"utm_id")||ea(b[c],"utm_campaign")||ea(b[c],"utm_source")||ea(b[c],"utm_medium")||ea(b[c],"utm_term")||ea(b[c],"utm_content")||ea(b[c],"gclid")|| ea(b[c],"dclid")||ea(b[c],"gclsrc"))&&d[p](b[c]);0<d[y]&&(b="#"+d[H]("&"),a.set(kb,a.get(kb)+b))}};pc[z].get=function(a){return this.b.get(a)};pc[z].set=function(a,b){this.b.set(a,b)};var qc={pageview:[mb],event:[ub,xb,yb,zb],social:[Bb,Cb,Db],timing:[Mb,Nb,Pb,Ob]}; pc[z].send=function(a){if(!(1>arguments[y])){var b,c;"string"===typeof arguments[0]?(b=arguments[0],c=[][ha][C](arguments,1)):(b=arguments[0]&&arguments[0][Va],c=arguments);b&&(c=wa(qc[b]||[],c),c[Va]=b,this.b.set(c,void 0,!0),this.filters.D(this.b),this.b[q].m={},J(44))}};var rc=function(a){if("prerender"==M.visibilityState)return!1;a();return!0};var td=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,sc=function(a){if(K(a[0]))this.u=a[0];else{var b=td.exec(a[0]);null!=b&&4==b[y]&&(this.c=b[1]||"t0",this.e=b[2]||"",this.d=b[3],this.a=[][ha][C](a,1),this.e||(this.A="create"==this.d,this.i="require"==this.d,this.g="provide"==this.d,this.ba="remove"==this.d),this.i&&(3<=this.a[y]?(this.X=this.a[1],this.W=this.a[2]):this.a[1]&&(qa(this.a[1])?this.X=this.a[1]:this.W=this.a[1])));b=a[1];a=a[2];if(!this.d)throw"abort";if(this.i&&(!qa(b)||""==b))throw"abort";if(this.g&& (!qa(b)||""==b||!K(a)))throw"abort";if(ud(this.c)||ud(this.e))throw"abort";if(this.g&&"t0"!=this.c)throw"abort";}};function ud(a){return 0<=a[t](".")||0<=a[t](":")};var Yd,Zd,$d;Yd=new N;$d=new N;Zd={ec:45,ecommerce:46,linkid:47}; var tc=function(a,b,c){b==$?J(35):b.get(V);var d=Yd.get(a);if(!K(d))return!1;b.plugins_=b.plugins_||new N;if(b.plugins_.get(a))return!0;b.plugins_.set(a,new d(b,c||{}));return!0},ae=function(a){function b(a){var b=(a[ma]||"")[A](":")[0][I](),c=(a[E]||"")[I](),c=1*a[ja]||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";ea(a,"/")||(a="/"+a);return[b,""+c,a]}var c=M[u]("a");Pc(c,M[B][Ab]);var d=(c[E]||"")[I](),e=b(c),g=c[ga]||"",ca=d+"//"+e[0]+(e[1]?":"+e[1]:"");ea(a,"//")?a=d+a:ea(a,"/")?a=ca+a: !a||ea(a,"?")?a=ca+e[2]+(a||g):0>a[A]("/")[0][t](":")&&(a=ca+e[2][F](0,e[2].lastIndexOf("/"))+"/"+a);Pc(c,a);d=b(c);return{protocol:(c[E]||"")[I](),host:d[0],port:d[1],path:d[2],G:c[ga]||"",url:a||""}};var Z={ga:function(){Z.f=[]}};Z.ga();Z.D=function(a){var b=Z.J[G](Z,arguments),b=Z.f.concat(b);for(Z.f=[];0<b[y]&&!Z.v(b[0])&&!(b.shift(),0<Z.f[y]););Z.f=Z.f.concat(b)}; Z.J=function(a){for(var b=[],c=0;c<arguments[y];c++)try{var d=new sc(arguments[c]);if(d.g)Yd.set(d.a[0],d.a[1]);else{if(d.i){var e=d,g=e.a[0];if(!K(Yd.get(g))&&!$d.get(g)){Zd[ra](g)&&J(Zd[g]);var ca=e.X;!ca&&Zd[ra](g)?(J(39),ca=g+".js"):J(43);if(ca){ca&&0<=ca[t]("/")||(ca=D()+"//www.google-analytics.com/plugins/ua/"+ca);var l=ae(ca),e=void 0;var k=l[E],w=M[B][E],e="https:"==k||k==w?!0:"http:"!=k?!1:"http:"==w;var Xd;if(Xd=e){var e=l,be=ae(M[B][Ab]);if(e.G||0<=e.url[t]("?")||0<=e.path[t]("://"))Xd= !1;else if(e[x]==be[x]&&e[ja]==be[ja])Xd=!0;else{var ce="http:"==e[E]?80:443;Xd="www.google-analytics.com"==e[x]&&(e[ja]||ce)==ce&&ea(e.path,"/plugins/")?!0:!1}}Xd&&(vc(l.url),$d.set(g,!0))}}}b[p](d)}}catch(de){}return b};Z.v=function(a){try{if(a.u)a.u[C](O,$.j("t0"));else{var b=a.c==gb?$:$.j(a.c);if(a.A)"t0"==a.c&&$.create[G]($,a.a);else if(a.ba)$.remove(a.c);else if(b)if(a.i){if(!tc(a.a[0],b,a.W))return!0}else if(a.e){var c=a.d,d=a.a,e=b.plugins_.get(a.e);e[c][G](e,d)}else b[a.d][G](b,a.a)}}catch(g){}};var $=function(a){J(1);Z.D[G](Z,[arguments])};$.h={};$.P=[];$.L=0;$.answer=42;var uc=[Na,W,V];$.create=function(a){var b=wa(uc,[][ha][C](arguments));b[V]||(b[V]="t0");var c=""+b[V];if($.h[c])return $.h[c];b=new pc(b);$.h[c]=b;$.P[p](b);return b};$.remove=function(a){for(var b=0;b<$.P[y];b++)if($.P[b].get(V)==a){$.P.splice(b,1);$.h[a]=null;break}};$.j=function(a){return $.h[a]};$.K=function(){return $.P[ha](0)}; $.N=function(){"ga"!=gb&&J(49);var a=O[gb];if(!a||42!=a.answer){$.L=a&&a.l;$.loaded=!0;var b=O[gb]=$;X("create",b,b.create,3);X("remove",b,b.remove);X("getByName",b,b.j,5);X("getAll",b,b.K,6);b=pc[z];X("get",b,b.get,7);X("set",b,b.set,4);X("send",b,b[xc],2);b=Ya[z];X("get",b,b.get);X("set",b,b.set);(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc[z];Yd.set("linker",Dc);X("decorate",b,b.Q,20);X("autoLink",b,b.S,25);Yd.set("displayfeatures",fd);Yd.set("adfeatures",Kd);a=a&&a.q;vd(a)?Z.D[G]($,a):J(50)}}; (function(){var a=$.N;if(!rc(a)){J(16);var b=!1,c=function(){!b&&rc(a)&&(b=!0,ua(M,"visibilitychange",c))};ta(M,"visibilitychange",c)}})();function La(a){var b=1,c=0,d;if(a)for(b=0,d=a[y]-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b;return b};})(window);
解析后代码: 未完全版
(function () { var _encodeURIComponent = encodeURIComponent, _window = window, _setTimeout = setTimeout, _Math = Math; function Pc(a, b) { return a.href = b } function fa(a, b) { return a.name = b } var replace = "replace", data = "data", match = "match", send = "send", port = "port", createElement = "createElement", setAttribute = "setAttribute", getTime = "getTime", host = "host", split = "split", location = "location", hasOwnProperty = "hasOwnProperty", hostname = "hostname", search = "search", protocol = "protocol", href = "href", action = "action", apply = "apply", //p = "push", hash = "hash", test = "test", slice = "slice", cookie = "cookie", indexOf = "indexOf", defaultValue = "defaultValue", name = "name", length = "length", prototype = "prototype", clientWidth = "clientWidth", target = "target", call = "call", clientHeight = "clientHeight", substring = "substring", navigator = "navigator", parentNode = "parentNode", join = "join", toLowerCase = "toLowerCase"; var pa = new function () { var array = []; this.set = function (b) { array[b] = !0 }; this.M = function () { for (var b = [], c = 0; c < array[length]; c++) array[c] && (b[_Math.floor(c / 6)] = b[_Math.floor(c / 6)] ^ 1 << c % 6); for (c = 0; c < b[length]; c++) b[c] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b[c] || 0); return b[join]("") + "~" } }; function J(a) { pa.set(a) }; function isFunction(a) { return "function" == typeof a } function vd(a) { return "[object Array]" == Object[prototype].toString[call](Object(a)) } function qa(a) { return void 0 != a && -1 < (a.constructor + "")[indexOf]("String") } function ea(a, b) { return 0 == a[indexOf](b) } function Lc(a) { return a ? a[replace](/^[\s\xa0]+|[\s\xa0]+$/g, "") : "" } function Td() { return [Ud() ^ Mc() & 2147483647, _Math.round((new Date)[getTime]() / 1E3)][join](".") } function Ca(a) { var b = _document[createElement]("img"); b.width = 1; b.height = 1; b.src = a; return b } function L() { } function sa(a) { if (_encodeURIComponent instanceof Function) return _encodeURIComponent(a); J(28); return a } function ka(a) { return sa(a)[replace](/\(/g, "%28")[replace](/\)/g, "%29") } var ta = function (a, b, c, d) { try { a.addEventListener ? a.addEventListener(b, c, !!d) : a.attachEvent && a.attachEvent("on" + b, c) } catch (e) { J(27) } }, ua = function (a, b, c) { a.removeEventListener ? a.removeEventListener(b, c, !1) : a.detachEvent && a.detachEvent("on" + b, c) }; function vc(a, b) { if (a) { var c = _document[createElement]("script"); c.type = "text/javascript"; c.async = !0; c.src = a; c.id = b; var d = _document.getElementsByTagName("script")[0]; d[parentNode].insertBefore(c, d) } } function D() { return Ba || "https:" == _document[location][protocol] ? "https:" : "http:" } function eb() { var a = "" + _document[location][hostname]; return 0 == a[indexOf]("www.") ? a[substring](4) : a } function va(a) { var b = _document.referrer; if (/^https?:\/\//i[test](b)) { if (a) return b; a = "//" + _document[location][hostname]; var c = b[indexOf](a); if (5 == c || 6 == c) if (a = b.charAt(c + a[length]), "/" == a || "?" == a || "" == a || ":" == a) return; return b } } function wa(a, b) { if (1 == b[length] && null != b[0] && "object" === typeof b[0]) return b[0]; for (var c = {}, d = _Math.min(a[length] + 1, b[length]), e = 0; e < d; e++) if ("object" === typeof b[e]) { for (var g in b[e]) b[e][hasOwnProperty](g) && (c[g] = b[e][g]); break } else e < a[length] && (c[a[e]] = b[e]); return c }; var N = function () { this.keys = []; this.w = {}; this.m = {} }; N[prototype].set = function (a, b, c) { this.keys.push(a); c ? this.m[":" + a] = b : this.w[":" + a] = b }; N[prototype].get = function (a) { return this.m[hasOwnProperty](":" + a) ? this.m[":" + a] : this.w[":" + a] }; N[prototype].map = function (a) { for (var b = 0; b < this.keys[length]; b++) { var c = this.keys[b], d = this.get(c); d && a(c, d) } }; var ___window = _window, _document = document, xa = function (a) { var b = ___window._gaUserPrefs; if (b && b.ioo && b.ioo() || a && !0 === ___window["ga-disable-" + a]) return !0; try { var c = ___window.external; if (c && c._gaUserPrefs && "oo" == c._gaUserPrefs) return !0 } catch (d) { } return !1 }, fb = function (a) { _setTimeout(a, 100) }, ya = function (a) { var b = [], c = _document[cookie][split](";"); a = new RegExp("^\\s*" + a + "=\\s*(.*?)\\s*$"); for (var d = 0; d < c[length]; d++) { var e = c[d][match](a); e && b.push(e[1]) } return b }, zc = function (a, b, c, d, e, g) { e = xa(e) ? !1 : Aa[test](_document[location][hostname]) || "/" == c && za[test](d) ? !1 : !0; if (!e) return !1; b && 1200 < b[length] && (b = b[substring](0, 1200), J(24)); c = a + "=" + b + "; path=" + c + "; "; g && (c += "expires=" + (new Date((new Date)[getTime]() + g)).toGMTString() + "; "); d && "none" != d && (c += "domain=" + d + ";"); d = _document[cookie]; _document.cookie = c; if (!(d = d != _document[cookie])) t: { a = ya(a); for (d = 0; d < a[length]; d++) if (b == a[d]) { d = !0; break t } d = !1 } return d }, za = new RegExp(/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/), Aa = new RegExp(/(^|\.)doubleclick\.net$/i), Mc = function () { for (var a = ___window[navigator].userAgent + (_document[cookie] ? _document[cookie] : "") + (_document.referrer ? _document.referrer : ""), b = a[length], c = ___window.history[length]; 0 < c;) a += c-- ^ b++; return La(a) }; var oc = function () { return D() + "//www.google-analytics.com" }, Da = function (a) { fa(this, "len"); this.message = a + "-8192" }, Ea = function (a) { fa(this, "ff2post"); this.message = a + "-2036" }, Ga = function (a, b, c, d) { c = c || L; d && (d = c, ___window[navigator].sendBeacon ? ___window[navigator].sendBeacon(a, b) ? (d(), d = !0) : d = !1 : d = !1); if (!d) if (2036 >= b[length]) wc(a, b, c); else if (8192 >= b[length]) { if (0 <= ___window[navigator].userAgent[indexOf]("Firefox") && ![].reduce) throw new Ea(b[length]); wd(a, b, c) || xd(a, b, c) || Fa(b, c) || c() } else throw new Da(b[length]); }, wc = function (a, b, c) { var d = Ca(a + "?" + b); d.onload = d.onerror = function () { d.onload = null; d.onerror = null; c() } }, xd = function (a, b, c) { var d; d = ___window.XDomainRequest; if (!d) return !1; d = new d; d.open("POST", a); d.onerror = function () { c() }; d.onload = c; d[send](b); return !0 }, wd = function (a, b, c) { var d = ___window.XMLHttpRequest; if (!d) return !1; var e = new d; if (!("withCredentials" in e)) return !1; e.open("POST", a, !0); e.withCredentials = !0; e.setRequestHeader("Content-Type", "text/plain"); e.onreadystatechange = function () { 4 == e.readyState && (c(), e = null) }; e[send](b); return !0 }, Fa = function (a, b) { if (!_document.body) return fb(function () { Fa(a, b) }), !0; a = _encodeURIComponent(a); try { var c = _document[createElement]('<iframe name="' + a + '"></iframe>') } catch (d) { c = _document[createElement]("iframe"), fa(c, a) } c.height = "0"; c.width = "0"; c.style.display = "none"; c.style.visibility = "hidden"; var e = _document[location], e = oc() + "/analytics_iframe.html#" + _encodeURIComponent(e[protocol] + "//" + e[host] + "/favicon.ico"), g = function () { c.src = ""; c[parentNode] && c[parentNode].removeChild(c) }; ta(___window, "beforeunload", g); var ca = !1, l = 0, k = function () { if (!ca) { try { if (9 < l || c.contentWindow[location][host] == _document[location][host]) { ca = !0; g(); ua(___window, "beforeunload", g); b(); return } } catch (a) { } l++; _setTimeout(k, 200) } }; ta(c, "load", k); _document.body.appendChild(c); c.src = e; return !0 }; var Ha = function () { this.t = [] }; Ha[prototype].add = function (a) { this.t.push(a) }; Ha[prototype].D = function (a) { try { for (var b = 0; b < this.t[length]; b++) { var c = a.get(this.t[b]); c && isFunction(c) && c[call](___window, a) } } catch (d) { } b = a.get(Ia); b != L && isFunction(b) && (a.set(Ia, L, !0), _setTimeout(b, 10)) }; function Ja(a) { if (100 != a.get(Ka) && La(P(a, Q)) % 1E4 >= 100 * R(a, Ka)) throw "abort"; } function Ma(a) { if (xa(P(a, Na))) throw "abort"; } function Oa() { var a = _document[location][protocol]; if ("http:" != a && "https:" != a) throw "abort"; } function Pa(a) { try { ___window.XMLHttpRequest && "withCredentials" in new ___window.XMLHttpRequest ? J(40) : ___window.XDomainRequest && J(41), ___window[navigator].sendBeacon && J(42) } catch (b) { } a.set(Ac, R(a, Ac) + 1); var c = []; Qa.map(function (b, d) { if (d.p) { var e = a.get(b); void 0 != e && e != d[defaultValue] && ("boolean" == typeof e && (e *= 1), c.push(d.p + "=" + sa("" + e))) } }); if (Ed(new Od(1E4))) { var d = []; d.push(hd()); d.push[apply](d, Td()[split](".")); d.push(Bd()); var e; e = ___window.crypto ? !0 : !1; d.push(e ? "c" : "b"); c.push("z=" + d[join](".")) } else c.push("z=" + Bd()); a.set(Ra, c[join]("&"), !0) } function Sa(a) { var b = P(a, gd) || oc() + "/collect"; Ga(b, P(a, Ra), a.get(Ia), a.get(Vd)); a.set(Ia, L, !0) } function Hc(a) { var b = ___window.gaData; b && (b.expId && a.set(Nc, b.expId), b.expVar && a.set(Oc, b.expVar)) } function cd() { if (___window[navigator] && "preview" == ___window[navigator].loadPurpose) throw "abort"; } function yd(a) { var b = ___window.gaDevIds; vd(b) && 0 != b[length] && a.set("&did", b[join](","), !0) } function vb(a) { if (!a.get(Na)) throw "abort"; }; var hd = function () { return _Math.round(0x7FFFFFFF * _Math.random()) }, Bd = function () { try { var a = new Uint32Array(1); ___window.crypto.getRandomValues(a); return a[0] & 0x7FFFFFFF } catch (b) { return hd() } }, Ud = hd; function Ta(a) { var b = R(a, Ua); 500 <= b && J(15); var c = P(a, Va); if ("transaction" != c && "item" != c) { var c = R(a, Wa), d = (new Date)[getTime](), e = R(a, Xa); 0 == e && a.set(Xa, d); e = _Math.round(2 * (d - e) / 1E3); 0 < e && (c = _Math.min(c + e, 20), a.set(Xa, d)); if (0 >= c) throw "abort"; a.set(Wa, --c) } a.set(Ua, ++b) }; var Ya = function () { this.data = new N }, Qa = new N, Za = []; Ya[prototype].get = function (a) { var b = $a(a), c = this[data].get(a); b && void 0 == c && (c = isFunction(b[defaultValue]) ? b[defaultValue]() : b[defaultValue]); return b && b.n ? b.n(this, a, c) : c }; var P = function (a, b) { var c = a.get(b); return void 0 == c ? "" : "" + c }, R = function (a, b) { var c = a.get(b); return void 0 == c || "" === c ? 0 : 1 * c }; Ya[prototype].set = function (a, b, c) { if (a) if ("object" == typeof a) for (var d in a) a[hasOwnProperty](d) && ab(this, d, a[d], c); else ab(this, a, b, c) }; var ab = function (a, b, c, d) { if (void 0 != c) switch (b) { case Na: wb[test](c) } var e = $a(b); e && e.o ? e.o(a, b, c, d) : a[data].set(b, c, d) }, bb = function (a, b, c, d, e) { fa(this, a); this.p = b; this.n = d; this.o = e; this.defaultValue = c }, $a = function (a) { var b = Qa.get(a); if (!b) for (var c = 0; c < Za[length]; c++) { var d = Za[c], e = d[0].exec(a); if (e) { b = d[1](e); Qa.set(b[name], b); break } } return b }, yc = function (a) { var b; Qa.map(function (c, d) { d.p == a && (b = d) }); return b && b[name] }, S = function (a, b, c, d, e) { a = new bb(a, b, c, d, e); Qa.set(a[name], a); return a[name] }, cb = function (a, b) { Za.push([new RegExp("^" + a + "$"), b]) }, T = function (a, b, c) { return S(a, b, c, void 0, db) }, db = function () { }; //debugger; var gb = qa(_window.GoogleAnalyticsObject) && Lc(_window.GoogleAnalyticsObject) || "ga", Ba = !1, hb = T("apiVersion", "v"), ib = T("clientVersion", "_v"); S("anonymizeIp", "aip"); var jb = S("adSenseId", "a"), Va = S("hitType", "t"), Ia = S("hitCallback"), Ra = S("hitPayload"); S("nonInteraction", "ni"); S("currencyCode", "cu"); var Vd = S("useBeacon", void 0, !1); S("dataSource", "ds"); S("sessionControl", "sc", ""); S("sessionGroup", "sg"); S("queueTime", "qt"); var Ac = S("_s", "_s"); S("screenName", "cd"); var kb = S("location", "dl", ""), lb = S("referrer", "dr"), mb = S("page", "dp", ""); S("hostname", "dh"); var nb = S("language", "ul"), ob = S("encoding", "de"); S("title", "dt", function () { return _document.title || void 0 }); cb("contentGroup([0-9]+)", function (a) { return new bb(a[0], "cg" + a[1]) }); var pb = S("screenColors", "sd"), qb = S("screenResolution", "sr"), rb = S("viewportSize", "vp"), sb = S("javaEnabled", "je"), tb = S("flashVersion", "fl"); S("campaignId", "ci"); S("campaignName", "cn"); S("campaignSource", "cs"); S("campaignMedium", "cm"); S("campaignKeyword", "ck"); S("campaignContent", "cc"); var ub = S("eventCategory", "ec"), xb = S("eventAction", "ea"), yb = S("eventLabel", "el"), zb = S("eventValue", "ev"), Bb = S("socialNetwork", "sn"), Cb = S("socialAction", "sa"), Db = S("socialTarget", "st"), Eb = S("l1", "plt"), Fb = S("l2", "pdt"), Gb = S("l3", "dns"), Hb = S("l4", "rrt"), Ib = S("l5", "srt"), Jb = S("l6", "tcp"), Kb = S("l7", "dit"), Lb = S("l8", "clt"), Mb = S("timingCategory", "utc"), Nb = S("timingVar", "utv"), Ob = S("timingLabel", "utl"), Pb = S("timingValue", "utt"); S("appName", "an"); S("appVersion", "av", ""); S("appId", "aid", ""); S("appInstallerId", "aiid", ""); S("exDescription", "exd"); S("exFatal", "exf"); var Nc = S("expId", "xid"), Oc = S("expVar", "xvar"), Rc = S("_utma", "_utma"), Sc = S("_utmz", "_utmz"), Tc = S("_utmht", "_utmht"), Ua = S("_hc", void 0, 0), Xa = S("_ti", void 0, 0), Wa = S("_to", void 0, 20); cb("dimension([0-9]+)", function (a) { return new bb(a[0], "cd" + a[1]) }); cb("metric([0-9]+)", function (a) { return new bb(a[0], "cm" + a[1]) }); S("linkerParam", void 0, void 0, Bc, db); var ld = S("usage", "_u", void 0, function () { return pa.M() }, db); S("forceSSL", void 0, void 0, function () { return Ba }, function (a, b, c) { J(34); Ba = !!c }); var ed = S("_j1", "jid"), Hd = S("_j2", "gjid"); cb("\\&(.*)", function (a) { var b = new bb(a[0], a[1]), c = yc(a[0][substring](1)); c && (b.n = function (a) { return a.get(c) }, b.o = function (a, b, g, ca) { a.set(c, g, ca) }, b.p = void 0); return b }); var Qb = T("_oot"), dd = S("previewTask"), Rb = S("checkProtocolTask"), md = S("validationTask"), Sb = S("checkStorageTask"), Uc = S("historyImportTask"), Tb = S("samplerTask"), Vb = T("_rlt"), Wb = S("buildHitTask"), Xb = S("sendHitTask"), Vc = S("ceTask"), zd = S("devIdTask"), Cd = S("timingTask"), Ld = S("displayFeaturesTask"), V = T("name"), Q = T("clientId", "cid"), Ad = S("userId", "uid"), Na = T("trackingId", "tid"), U = T("cookieName", void 0, "_ga"), W = T("cookieDomain"), Yb = T("cookiePath", void 0, "/"), Zb = T("cookieExpires", void 0, 63072E3), $b = T("legacyCookieDomain"), Wc = T("legacyHistoryImport", void 0, !0), ac = T("storage", void 0, "cookie"), bc = T("allowLinker", void 0, !1), cc = T("allowAnchor", void 0, !0), Ka = T("sampleRate", "sf", 100), dc = T("siteSpeedSampleRate", void 0, 1), ec = T("alwaysSendReferrer", void 0, !1), gd = S("transportUrl"), Md = S("_r", "_r"), Nd = S("_dfr", void 0, 1); function X(a, b, c, d) { b[a] = function () { try { return d && J(d), c[apply](this, arguments) } catch (b) { var g = b && b[name]; if (!(1 <= 100 * _Math.random() || xa("?"))) { var ca = ["t=error", "_e=exc", "_v=j30", "sr=1"]; a && ca.push("_f=" + a); g && ca.push("_m=" + sa(g[substring](0, 100))); ca.push("aip=1"); ca.push("z=" + Ud()); Ga(oc() + "/collect", ca[join]("&")) } throw b; } } }; var Od = function (a) { this.V = a; this.fa = void 0; this.$ = !1; this.ha = void 0; this.ea = 1 }, Ed = function (a, b, c) { if (a.fa && a.$) return 0; a.$ = !0; if (b) { if (a.ha && R(b, a.ha)) return R(b, a.ha); if (0 == b.get(dc)) return 0 } if (0 == a.V) return 0; void 0 === c && (c = Bd()); return 0 == c % a.V ? _Math.floor(c / a.V) % a.ea + 1 : 0 }; function fc() { var a, b, c; if ((c = (c = ___window[navigator]) ? c.plugins : null) && c[length]) for (var d = 0; d < c[length] && !b; d++) { var e = c[d]; -1 < e[name][indexOf]("Shockwave Flash") && (b = e.description) } if (!b) try { a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"), b = a.GetVariable("$version") } catch (g) { } if (!b) try { a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"), b = "WIN 6,0,21,0", a.AllowScriptAccess = "always", b = a.GetVariable("$version") } catch (ca) { } if (!b) try { a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"), b = a.GetVariable("$version") } catch (l) { } b && (a = b[match](/[\d]+/g)) && 3 <= a[length] && (b = a[0] + "." + a[1] + " r" + a[2]); return b || void 0 }; var gc = function (a, b) { var c = _Math.min(R(a, dc), 100); if (!(La(P(a, Q)) % 100 >= c) && (c = {}, Ec(c) || Fc(c))) { var d = c[Eb]; void 0 == d || Infinity == d || isNaN(d) || (0 < d ? (Y(c, Gb), Y(c, Jb), Y(c, Ib), Y(c, Fb), Y(c, Hb), Y(c, Kb), Y(c, Lb), b(c)) : ta(___window, "load", function () { gc(a, b) }, !1)) } }, Ec = function (a) { var b = ___window.performance || ___window.webkitPerformance, b = b && b.timing; if (!b) return !1; var c = b.navigationStart; if (0 == c) return !1; a[Eb] = b.loadEventStart - c; a[Gb] = b.domainLookupEnd - b.domainLookupStart; a[Jb] = b.connectEnd - b.connectStart; a[Ib] = b.responseStart - b.requestStart; a[Fb] = b.responseEnd - b.responseStart; a[Hb] = b.fetchStart - c; a[Kb] = b.domInteractive - c; a[Lb] = b.domContentLoadedEventStart - c; return !0 }, Fc = function (a) { if (___window.top != ___window) return !1; var b = ___window.external, c = b && b.onloadT; b && !b.isValidLoadTime && (c = void 0); 2147483648 < c && (c = void 0); 0 < c && b.setPageReadyTime(); if (void 0 == c) return !1; a[Eb] = c; return !0 }, Y = function (a, b) { var c = a[b]; if (isNaN(c) || Infinity == c || 0 > c) a[b] = void 0 }, Fd = function (a) { return function (b) { "pageview" != b.get(Va) || a.I || (a.I = !0, gc(b, function (b) { a[send]("timing", b) })) } }; var hc = !1, mc = function (a) { if ("cookie" == P(a, ac)) { var b = P(a, U), c = nd(a), d = kc(P(a, Yb)), e = lc(P(a, W)), g = 1E3 * R(a, Zb), ca = P(a, Na); if ("auto" != e) zc(b, c, d, e, ca, g) && (hc = !0); else { J(32); var l; t: { c = []; e = eb()[split]("."); if (4 == e[length] && (l = e[e[length] - 1], parseInt(l, 10) == l)) { l = ["none"]; break t } for (l = e[length] - 2; 0 <= l; l--) c.push(e[slice](l)[join](".")); c.push("none"); l = c } for (var k = 0; k < l[length]; k++) if (e = l[k], a[data].set(W, e), c = nd(a), zc(b, c, d, e, ca, g)) { hc = !0; return } a[data].set(W, "auto") } } }, nc = function (a) { if ("cookie" == P(a, ac) && !hc && (mc(a), !hc)) throw "abort"; }, Yc = function (a) { if (a.get(Wc)) { var b = P(a, W), c = P(a, $b) || eb(), d = Xc("__utma", c, b); d && (J(19), a.set(Tc, (new Date)[getTime](), !0), a.set(Rc, d.R), (b = Xc("__utmz", c, b)) && d[hash] == b[hash] && a.set(Sc, b.R)) } }, nd = function (a) { var b = ka(P(a, Q)), c = ic(P(a, W)); a = jc(P(a, Yb)); 1 < a && (c += "-" + a); return ["GA1", c, b][join](".") }, Gc = function (a, b, c) { for (var d = [], e = [], g, ca = 0; ca < a[length]; ca++) { var l = a[ca]; if (l.r[c] == b) d.push(l); else void 0 == g || l.r[c] < g ? (e = [l], g = l.r[c]) : l.r[c] == g && e.push(l) } return 0 < d[length] ? d : e }, lc = function (a) { return 0 == a[indexOf](".") ? a.substr(1) : a }, ic = function (a) { return lc(a)[split](".")[length] }, kc = function (a) { if (!a) return "/"; 1 < a[length] && a.lastIndexOf("/") == a[length] - 1 && (a = a.substr(0, a[length] - 1)); 0 != a[indexOf]("/") && (a = "/" + a); return a }, jc = function (a) { a = kc(a); return "/" == a ? 1 : a[split]("/")[length] }; function Xc(a, b, c) { "none" == b && (b = ""); var d = [], e = ya(a); a = "__utma" == a ? 6 : 2; for (var g = 0; g < e[length]; g++) { var ca = ("" + e[g])[split]("."); ca[length] >= a && d.push({ hash: ca[0], R: e[g], O: ca }) } return 0 == d[length] ? void 0 : 1 == d[length] ? d[0] : Zc(b, d) || Zc(c, d) || Zc(null, d) || d[0] } function Zc(a, b) { var c, d; null == a ? c = d = 1 : (c = La(a), d = La(ea(a, ".") ? a[substring](1) : "." + a)); for (var e = 0; e < b[length]; e++) if (b[e][hash] == c || b[e][hash] == d) return b[e] }; var od = new RegExp(/^https?:\/\/([^\/:]+)/), pd = /(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/; function Bc(a) { a = a.get(Q); var b = Ic(a, 0); return "_ga=1." + sa(b + "." + a) } function Ic(a, b) { for (var c = new Date, d = ___window[navigator], e = d.plugins || [], c = [a, d.userAgent, c.getTimezoneOffset(), c.getYear(), c.getDate(), c.getHours(), c.getMinutes() + b], d = 0; d < e[length]; ++d) c.push(e[d].description); return La(c[join](".")) } var Dc = function (a) { J(48); this.target = a; this.T = !1 }; Dc[prototype].Q = function (a, b) { if (a.tagName) { if ("a" == a.tagName[toLowerCase]()) { a[href] && Pc(a, qd(this, a[href], b)); return } if ("form" == a.tagName[toLowerCase]()) return rd(this, a) } if ("string" == typeof a) return qd(this, a, b) }; var qd = function (a, b, c) { var d = pd.exec(b); d && 3 <= d[length] && (b = d[1] + (d[3] ? d[2] + d[3] : "")); a = a[target].get("linkerParam"); var e = b[indexOf]("?"), d = b[indexOf]("#"); c ? b += (-1 == d ? "#" : "&") + a : (c = -1 == e ? "?" : "&", b = -1 == d ? b + (c + a) : b[substring](0, d) + c + a + b[substring](d)); return b }, rd = function (a, b) { if (b && b[action]) { var c = a[target].get("linkerParam")[split]("=")[1]; if ("get" == b.method[toLowerCase]()) { for (var d = b.childNodes || [], e = 0; e < d[length]; e++) if ("_ga" == d[e][name]) { d[e][setAttribute]("value", c); return } d = _document[createElement]("input"); d[setAttribute]("type", "hidden"); d[setAttribute]("name", "_ga"); d[setAttribute]("value", c); b.appendChild(d) } else "post" == b.method[toLowerCase]() && (b.action = qd(a, b[action])) } }; Dc[prototype].S = function (a, b, c) { function d(c) { try { c = c || ___window.event; var d; t: { var g = c[target] || c.srcElement; for (c = 100; g && 0 < c;) { if (g[href] && g.nodeName[match](/^a(?:rea)?$/i)) { d = g; break t } g = g[parentNode]; c-- } d = {} } ("http:" == d[protocol] || "https:" == d[protocol]) && sd(a, d[hostname] || "") && d[href] && Pc(d, qd(e, d[href], b)) } catch (w) { J(26) } } var e = this; this.T || (this.T = !0, ta(_document, "mousedown", d, !1), ta(_document, "touchstart", d, !1), ta(_document, "keyup", d, !1)); if (c) { c = function (b) { b = b || ___window.event; if ((b = b[target] || b.srcElement) && b[action]) { var c = b[action][match](od); c && sd(a, c[1]) && rd(e, b) } }; for (var g = 0; g < _document.forms[length]; g++) ta(_document.forms[g], "submit", c) } }; function sd(a, b) { if (b == _document[location][hostname]) return !1; for (var c = 0; c < a[length]; c++) if (a[c] instanceof RegExp) { if (a[c][test](b)) return !0 } else if (0 <= b[indexOf](a[c])) return !0; return !1 }; var Jd = function (a, b, c, d) { this.U = b; this.aa = c; (b = d) || (b = (b = P(a, V)) && "t0" != b ? Wd[test](b) ? "_gat_" + ka(P(a, Na)) : "_gat_" + ka(b) : "_gat"); this.Y = b }, Rd = function (a, b) { var c = b.get(Wb); b.set(Wb, function (b) { Pd(a, b); var d = c(b); Qd(a, b); return d }); var d = b.get(Xb); b.set(Xb, function (b) { var c = d(b); Id(a, b); return c }) }, Pd = function (a, b) { b.get(a.U) || ("1" == ya(a.Y)[0] ? b.set(a.U, "", !0) : b.set(a.U, "" + Ud(), !0)) }, Qd = function (a, b) { b.get(a.U) && zc(a.Y, "1", b.get(Yb), b.get(W), b.get(Na), 6E5) }, Id = function (a, b) { if (b.get(a.U)) { var c = new N, d = function (a) { c.set($a(a).p, b.get(a)) }; d(hb); d(ib); d(Na); d(Q); d(a.U); d(ld); var e = a.aa; c.map(function (a, b) { e += sa(a) + "=" + sa("" + b) + "&" }); e += "z=" + Ud(); Ca(e); b.set(a.U, "", !0) } }, Wd = /^gtm\d+$/; var fd = function (a, b) { var c = a.b; if (!c.get("dcLoaded")) { J(29); ___window._gaq && J(52); b = b || {}; var d; b[U] && (d = ka(b[U])); d = new Jd(c, ed, "https://stats.g.doubleclick.net/collect?t=dc&aip=1&", d); Rd(d, c); c.set("dcLoaded", !0) } }; var Sd = function (a) { var b; a.get("dcLoaded") || "cookie" != a.get(ac) ? b = !1 : (b = new Od(R(a, Nd)), b = Ed(b, null, La(a.get(Q
谷歌 analytics.js 部分解密版的更多相关文章
- 谷歌 analytics.js 简要分析
下面是部分翻译过的JS,看起来好看些. (function () { function setHref(a, b) { return a.href = b; } function setName( ...
- js简单解密(eval解密)
今天看博客园文章,看到一篇比较好的文章. 今天又学会一招,可以对一些采用eval加密的js进行解密. 打开谷歌或者火狐浏览器,然后按 F12,接着把这代码复制进去, 最后,去掉开头 4 个字母 eva ...
- Google Analytics电子商务篇(Universal版)
Google Analytics是一款用于统计分析网站流量.浏览行为,可用于衡量用户与您网站的互动情况的全新方式.最近刚接触不久,发现其功能真的十分强大,记录下电子商务配置方法.(新手,老鸟勿喷) G ...
- 火星坐标、百度坐标、WGS84坐标转换代码(JS、python版)
火星坐标.百度坐标.WGS84坐标转换代码(JS.python版) 一.JS版本源码 github:https://github.com/wandergis/coordTransform /** * ...
- js简单 图片版时钟,带翻转效果
js简单 图片版时钟,带翻转效果 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"& ...
- .NET破解之谷歌地图下载助手-睿智版
今天在整理文件是,发现手上还有个谷歌地图下载助手-睿智版,是C#写的.查了它们的官网,好像很久没有更新了,可能是垮了吧. 我把.NET程序破解分为三个阶段:软件分析,从软件使用上来分析功能的限制,即为 ...
- Vue.js 2.0版
Vue.js 2.0版升级,更改了好多方法或指令 new Vue({ el:'#demo', data:{ msg:"vue2.0" } }) v-model lazy numbe ...
- analytics.js
Analytics.js简介 analytics.js JavaScript代码段是一种可用于衡量用户与您网站的互动情况的全新方式.它与之前的跟踪代码ga.js类似,但为开发者自定义实现方案提供了 ...
- Ext JS 6正式版的GPL版本下载地址
下面是Ext JS 6正式版的GPL版本下载地址 https://www.sencha.com/legal/gpl/
随机推荐
- 无法为表空间 ***中的段创建 INITIAL 区
这是由于表空间不足引起的. 具体错误: 解决方案:扩展表空间
- UIkit框架之UIimage
1.继承链:NSObject 2.以下有三种方法来创建图片对象 (1) imageNamed:inBundle:compatibleWithTraitCollection:从image asset或者 ...
- 有意义的命名 Meaningful names
名副其实 use intention-revealing names 变量.函数或类的名称应该已经答复了所有的大问题.它该告诉你,他为什么会存在,他做什么事,应该怎么用.我们应该选择都是致命了计量对象 ...
- js prototype新感悟
prototype是js的一个原型属性,这个属性可以创建对象属性和方法. 子类继承原型属性时,会继承父类的原型属性和方法. prototype只能作用到类上,不能作用到对象上. ----------- ...
- js取配置文件内容
使用 jQuery.i18n.properties 实现 Web 前端的国际化 http://www.ibm.com/developerworks/cn/web/1305_hezj_jqueryi18 ...
- 【题解】【链表】【Leetcode】Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in rever ...
- 1024PHP数组
<?php //定义数组//$attr = array();//$attr[0] = 1;//索引数组//$attr = array(1,2,3,4);//关联数组//$attr = array ...
- int integer string间的转换
1.int-->Integer new Integer(i); 2.Integer-->int Integer i = new Integer(1); int k = i.intValue ...
- 2016 ACM/ICPC Asia Regional Dalian Online 1002/HDU 5869
Different GCD Subarray Query Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K ( ...
- Codeforces Round #303 (Div. 2) B 水 贪心
B. Equidistant String time limit per test 1 second memory limit per test 256 megabytes input standar ...