diff --git a/sp.js b/sp.js index c084d5f..56572bb 100644 --- a/sp.js +++ b/sp.js @@ -1,7 +1,7 @@ /*! * Snowplow - The world's most powerful web analytics platform * * @description JavaScript tracker for Snowplow - * @version 2.4.0-m3 + * @version 2.4.0 * @author Alex Dean, Simon Andersson, Anthon Pang, Fred Blundun * @copyright Anthon Pang, Snowplow Analytics Ltd * @license Simplified BSD @@ -51,7 +51,7 @@ var ak={top:"if (!objectTypes[typeof iterable]) return result;\n"+aK.top,array:f A.forOwn=Y;A.keys=J;A.map=x;A.mapValues=ah;A.property=aq;A.collect=x;A.each=ax;A.extend=aC;A.select=D;A.clone=B;A.find=aR;A.identity=T;A.isArguments=g;A.isArray=f;A.isDate=m;A.isEmpty=p;A.isFunction=aA;A.isNull=aQ;A.isObject=E;A.isString=aJ;A.isUndefined=M;A.noop=aw;A.detect=aR;A.findWhere=aR;A.VERSION="2.4.1";if(v&&N){if(aN){(N.exports=A)._=A}}}.call(this))}).call(this,typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],22:[function(c,d,a){var g=c("./lib_managed/lodash"),f=c("./lib/helpers"),b=typeof a!=="undefined"?a:this;b.getLinkTrackingManager=function(p,j,s){var i,h,o,t,n,q;function u(x,w){var E,G,C,D,B,F;while((E=x.parentNode)!==null&&!g.isUndefined(E)&&((G=x.tagName.toUpperCase())!=="A"&&G!=="AREA")){x=E}if(!g.isUndefined(x.href)){var A=x.hostname||f.getHostName(x.href),y=A.toLowerCase(),v=x.href.replace(A,y),z=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i");if(!z.test(v)){C=x.id;D=g.map(x.classList);B=x.target;F=o?x.innerHTML:null; v=unescape(v);p.trackLinkClick(v,C,D,B,F,s(w))}}}function r(v){return function(w){var x,y;w=w||window.event;x=w.which||w.button;y=w.target||w.srcElement;if(w.type==="click"){if(y){u(y,v)}}else{if(w.type==="mousedown"){if((x===1||x===2)&&y){n=x;q=y}else{n=q=null}}else{if(w.type==="mouseup"){if(x===n&&y===q){u(y,v)}n=q=null}}}}}function m(v){if(h){f.addEventListener(v,"mouseup",r(t),false);f.addEventListener(v,"mousedown",r(t),false)}else{f.addEventListener(v,"click",r(t),false)}}function l(w,y){var v=g.map(w.classList),x;for(x=0;x0){E.send(g.stringify(A))}}else{var B=new Image(1,1);B.onload=function(){r.shift();if(f()&&w){localStorage.setItem(m,g.stringify(r))}q()};B.onerror=function(){o=false};B.src=i+D}}return{enqueueRequest:v,executeQueue:q}}}())},{"./lib/detectors":18,"./lib_managed/lodash":21,JSON:1}],24:[function(b,c,a){(function(){var i=b("./lib_managed/lodash"),h=b("./lib/helpers"),d=b("./in_queue"),g=b("./tracker"),f=typeof a!=="undefined"?a:this;f.Snowplow=function(m,r){var l=document,n=window,p="js-2.4.0-m3",o={outQueues:[],bufferFlushers:[],expireDateTime:null,hasLoaded:false,registeredOnLoadHandlers:[]}; +}o=true;var D=r[0];if(j){var E=new XMLHttpRequest();E.open("POST",i,true);E.withCredentials=true;var z=setTimeout(function(){E.abort();o=false},5000);var C=r.length;E.onreadystatechange=function(){if(E.readyState===4&&E.status===200){for(var F=0;F0){E.send(g.stringify(A))}}else{var B=new Image(1,1);B.onload=function(){r.shift();if(f()&&w){localStorage.setItem(m,g.stringify(r))}q()};B.onerror=function(){o=false};B.src=i+D}}return{enqueueRequest:v,executeQueue:q}}}())},{"./lib/detectors":18,"./lib_managed/lodash":21,JSON:1}],24:[function(b,c,a){(function(){var i=b("./lib_managed/lodash"),h=b("./lib/helpers"),d=b("./in_queue"),g=b("./tracker"),f=typeof a!=="undefined"?a:this;f.Snowplow=function(m,r){var l=document,n=window,p="js-2.4.0",o={outQueues:[],bufferFlushers:[],expireDateTime:null,hasLoaded:false,registeredOnLoadHandlers:[]}; function q(){var t;i.forEach(o.bufferFlushers,function(u){u()});if(o.expireDateTime){do{t=new Date();if(i.filter(o.outQueues,function(u){return u.length>0}).length===0){break}}while(t.getTime()