-
Notifications
You must be signed in to change notification settings - Fork 0
/
tracker.min.js
5 lines (5 loc) · 2.05 KB
/
tracker.min.js
1
2
3
4
5
(function(e,l,m){function h(a,e){var b={wait:0};e?(b.name=e,b.call="html",document.referrer&&(b._qreferrer=document.referrer)):(b.name=a.name,b.call=a.initiatorType);var d;d="";try{var c=n.exec(a.name)[15].split(".");1<c.length&&(d=c.pop())}catch(r){}d&&(b.ext=d);b.wait=a.connectEnd&&a.connectEnd===a.fetchStart?parseInt(a.requestStart-a.connectEnd,10):parseInt(a.domainLookupStart-a.fetchStart,10);0>b.wait&&(b.wait=0);d=a.transferSize;var c=a.encodedBodySize,f=a.decodedBodySize;if(d||c||f){if(!d||
c||f)d&&d!==c&&c<=f?(b.cache=1,b.gzip=0):d>=c&&c&&c===f?(b.cache=0,b.gzip=0):d>=c&&c&&c<=f?(b.cache=0,b.gzip=1):!d&&c&&c===f?(b.cache=2,b.gzip=0):!d&&c&&c<=f&&(b.cache=2,b.gzip=1);b.net=d;b.enc=c;b.dec=f;d&&c&&0===b.cache&&(b.head=d-c)}b.rdir=parseInt(a.redirectEnd-a.redirectStart,10);b.dns=parseInt(0<a.domainLookupEnd-a.domainLookupStart?a.domainLookupEnd-a.domainLookupStart:0,10);b.con=parseInt(a.connectEnd-a.connectStart,10);b.ssl=parseInt(a.secureConnectionEnd?a.connectEnd-a.secureConnectionStart:
0,10);b.req=parseInt(a.responseStart-a.requestStart,10);b.res=parseInt(a.responseEnd-a.responseStart,10);"domInteractive"in a&&"fetchStart"in a&&(b.load=parseInt(a.loadEventEnd-a.navigationStart,10),b.dom=parseInt(a.domInteractive-a.fetchStart,10));b.elms=document.getElementsByTagName("*").length;k.push(b)}function p(){x=new (this.XMLHttpRequest||ActiveXObject)("MSXML2.XMLHTTP.3.0");x.open("POST","https://log.qoncrete.com/"+l+"/batch?token="+m,1);x.setRequestHeader("Content-type","application/json");
x.send(JSON.stringify(k))}var q=e.location.href,k=[],n=/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;setTimeout(function(){if("performance"in e&&"timing"in e.performance&&"JSON"in e){h(e.performance.timing,q);if("function"===typeof e.performance.getEntriesByType)for(var a=e.performance.getEntriesByType("resource"),g=0,b=a.length;b>g;g++)h(a[g],void 0);p()}},5E3)})(window,
"f65dd4fe-2eee-4812-aa5e-aa948a2b290f","4e976c1d-de95-4943-a9a2-19f64720d34c");