diff options
Diffstat (limited to 'piwik.js')
-rw-r--r-- | piwik.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ aZ(cd,bn)}function bO(cf,cc,cj,ci,ce){var ch=cc+"="+l(bY(cf));var cd=aR(ce,"clic if(cd&&cd.type){cd.href=h(cd.href);bO(cd.href,cd.type,undefined,null,cc)}}function ca(cc){var cd,ce;cc=cc||G.event;cd=cc.which||cc.button;ce=cc.target||cc.srcElement;if(cc.type==="click"){if(ce){bE(ce)}}else{if(cc.type==="mousedown"){if((cd===1||cd===2)&&ce){bj=cd;at=ce}else{bj=at=null}}else{if(cc.type==="mouseup"){if(cd===bj&&ce===at){bE(ce)}bj=at=null}}}}function bA(cd,cc){if(cc){U(cd,"mouseup",ca,false);U(cd,"mousedown",ca,false)}else{U(cd,"click",ca,false)}}function bd(cd){if(!bz){bz=true;var ce,cc=aH(ai,"ignore"),cf=u.links;if(cf){for(ce=0;ce<cf.length;ce++){if(!cc.test(cf[ce].className)){bA(cf[ce],cd)}}}}}function bv(ce,cg,ch){if(ay){return true}ay=true;var ci=false;var cf,cd;function cc(){ci=true}aQ(function(){function cj(cl){setTimeout(function(){if(!ay){return}ci=false;ch.trackVisibleContentImpressions();cj(cl)},cl)}function ck(cl){setTimeout(function(){if(!ay){return}if(ci){ci=false;ch.trackVisibleContentImpressions()}ck(cl)},cl)}if(ce){cf=["scroll","resize"];for(cd=0;cd<cf.length; cd++){if(u.addEventListener){u.addEventListener(cf[cd],cc)}else{G.attachEvent("on"+cf[cd],cc)}}ck(100)}if(cg&&cg>0){cg=parseInt(cg,10);cj(cg)}})}function b0(){var cd,ce,cf={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"},cc=(new RegExp("Mac OS X.*Safari/")).test(e.userAgent)?G.devicePixelRatio||1:1;if(!((new RegExp("MSIE")).test(e.userAgent))){if(e.mimeTypes&&e.mimeTypes.length){for(cd in cf){if(Object.prototype.hasOwnProperty.call(cf,cd)){ce=e.mimeTypes[cf[cd]];bT[cd]=(ce&&ce.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&w(e.javaEnabled)&&e.javaEnabled()){bT.java="1"}if(q(G.GearsFactory)){bT.gears="1"}bT.cookie=ae()}bT.res=K.width*cc+"x"+K.height*cc}b0();bk();am();return{getVisitorId:function(){return bB().uuid},getVisitorInfo:function(){return Y() },getAttributionInfo:function(){return X()},getAttributionCampaignName:function(){return X()[0]},getAttributionCampaignKeyword:function(){return X()[1]},getAttributionReferrerTimestamp:function(){return X()[2]},getAttributionReferrerUrl:function(){return X()[3]},setTrackerUrl:function(cc){aa=cc},getTrackerUrl:function(){return aa},getSiteId:function(){return bS},setSiteId:function(cc){b8(cc)},setUserId:function(cc){if(!w(cc)||!cc.length){return}aJ=cc;a2=aX(aJ).substr(0,16)},getUserId:function(){return aJ},setCustomData:function(cc,cd){if(J(cc)){an=cc}else{if(!an){an={}}an[cc]=cd}},getCustomData:function(){return an},setCustomRequestProcessing:function(cc){au=cc},appendToTrackingUrl:function(cc){bo=cc},getRequest:function(cc){return aT(cc)},addPlugin:function(cc,cd){a[cc]=cd},setCustomVariable:function(cd,cc,cg,ce){var cf;if(!w(ce)){ce="visit"}if(!w(cc)){return}if(!w(cg)){cg=""}if(cd>0){cc=!n(cc)?String(cc):cc;cg=!n(cg)?String(cg):cg;cf=[cc.slice(0,bX),cg.slice(0,bX)];if(ce==="visit"||ce===2){Z(); -ag[cd]=cf}else{if(ce==="page"||ce===3){bg[cd]=cf}else{if(ce==="event"){ab[cd]=cf}}}}},getCustomVariable:function(cd,ce){var cc;if(!w(ce)){ce="visit"}if(ce==="page"||ce===3){cc=bg[cd]}else{if(ce==="event"){cc=ab[cd]}else{if(ce==="visit"||ce===2){Z();cc=ag[cd]}}}if(!w(cc)||(cc&&cc[0]==="")){return false}return cc},deleteCustomVariable:function(cc,cd){if(this.getCustomVariable(cc,cd)){this.setCustomVariable(cc,"","",cd)}},storeCustomVariablesInCookie:function(){a6=true},setLinkTrackingTimer:function(cc){bn=cc},setDownloadExtensions:function(cc){if(n(cc)){cc=cc.split("|")}aU=cc},addDownloadExtensions:function(cd){if(n(cd)){cd=cd.split("|")}for(var cc=0;cc<cd.length;cc++){aU.push(cd[cc])}},removeDownloadExtensions:function(ce){if(n(ce)){ce=ce.split("|")}var cc=[];for(var cd=0;cd<aU.length;cd++){if(z(ce,aU[cd])===-1){cc.push(aU[cd])}}aU=cc},setDomains:function(cc){bp=n(cc)?[cc]:cc;bp.push(bM)},setIgnoreClasses:function(cc){ai=n(cc)?[cc]:cc},setRequestMethod:function(cc){bs=cc||bq},setRequestContentType:function(cc){aK=cc||bc +ag[cd]=cf}else{if(ce==="page"||ce===3){bg[cd]=cf}else{if(ce==="event"){ab[cd]=cf}}}}},getCustomVariable:function(cd,ce){var cc;if(!w(ce)){ce="visit"}if(ce==="page"||ce===3){cc=bg[cd]}else{if(ce==="event"){cc=ab[cd]}else{if(ce==="visit"||ce===2){Z();cc=ag[cd]}}}if(!w(cc)||(cc&&cc[0]==="")){return false}return cc},deleteCustomVariable:function(cc,cd){if(this.getCustomVariable(cc,cd)){this.setCustomVariable(cc,"","",cd)}},storeCustomVariablesInCookie:function(){a6=true},setLinkTrackingTimer:function(cc){bn=cc},setDownloadExtensions:function(cc){if(n(cc)){cc=cc.split("|")}aU=cc},addDownloadExtensions:function(cd){var cc;if(n(cd)){cd=cd.split("|")}for(cc=0;cc<cd.length;cc++){aU.push(cd[cc])}},removeDownloadExtensions:function(ce){var cd,cc=[];if(n(ce)){ce=ce.split("|")}for(cd=0;cd<aU.length;cd++){if(z(ce,aU[cd])===-1){cc.push(aU[cd])}}aU=cc},setDomains:function(cc){bp=n(cc)?[cc]:cc;bp.push(bM)},setIgnoreClasses:function(cc){ai=n(cc)?[cc]:cc},setRequestMethod:function(cc){bs=cc||bq},setRequestContentType:function(cc){aK=cc||bc },setReferrerUrl:function(cc){bu=cc},setCustomUrl:function(cc){a7=bL(b5,cc)},setDocumentTitle:function(cc){aS=cc},setAPIUrl:function(cc){ax=cc},setDownloadClasses:function(cc){bf=n(cc)?[cc]:cc},setLinkClasses:function(cc){aC=n(cc)?[cc]:cc},setCampaignNameKey:function(cc){aY=n(cc)?[cc]:cc},setCampaignKeywordKey:function(cc){aP=n(cc)?[cc]:cc},discardHashTag:function(cc){ak=cc},setCookieNamePrefix:function(cc){b3=cc;ag=ar()},setCookieDomain:function(cc){aq=y(cc);bk()},setCookiePath:function(cc){b4=cc;bk()},setVisitorCookieTimeout:function(cc){aw=cc*1000},setSessionCookieTimeout:function(cc){az=cc*1000},setReferralCookieTimeout:function(cc){ba=cc*1000},setConversionAttributionFirstReferrer:function(cc){a5=cc},disableCookies:function(){ao=true;bT.cookie="0"},deleteCookies:function(){W()},setDoNotTrack:function(cd){var cc=e.doNotTrack||e.msDoNotTrack;bW=cd&&(cc==="yes"||cc==="1");if(bW){this.disableCookies()}},addListener:function(cd,cc){bA(cd,cc)},enableLinkTracking:function(cc){bU=true;if(p){bd(cc) }else{E.push(function(){bd(cc)})}},enableJSErrorTracking:function(){if(b9){return}b9=true;var cc=G.onerror;G.onerror=function(ch,cf,ce,cg,cd){aM(function(){var ci="JavaScript Errors";var cj=cf+":"+ce;if(cg){cj+=":"+cg}al(ci,cj,ch)});if(cc){return cc(ch,cf,ce,cg,cd)}return false}},disablePerformanceTracking:function(){a1=false},setGenerationTimeMs:function(cc){aI=parseInt(cc,10)},setHeartBeatTimer:function(ce,cd){var cc=new Date();aj=cc.getTime()+ce*1000;aG=cd*1000},killFrame:function(){if(G.location!==G.top.location){G.top.location=G.location}},redirectFile:function(cc){if(G.location.protocol==="file:"){G.location=cc}},setCountPreRendered:function(cc){a0=cc},trackGoal:function(cc,ce,cd){aM(function(){bl(cc,ce,cd)})},trackLink:function(cd,cc,cf,ce){aM(function(){bO(cd,cc,cf,ce)})},trackPageView:function(cc,cd){ah=[];if(A(bS)){aM(function(){M(aa,ax,bS)})}else{aM(function(){be(cc,cd)})}},trackAllContentImpressions:function(){if(A(bS)){return}aM(function(){aA(function(){var cc=m.findContentNodes(); var cd=aW(cc);ap(cd,bn)})})},trackVisibleContentImpressions:function(cc,cd){if(A(bS)){return}if(!w(cc)){cc=true}if(!w(cd)){cd=750}bv(cc,cd,this);aM(function(){aQ(function(){var ce=m.findContentNodes();var cf=bC(ce);ap(cf,bn)})})},trackContentImpression:function(ce,cc,cd){if(A(bS)){return}if(!ce){return}cc=cc||"Unknown";aM(function(){var cf=bN(ce,cc,cd);aZ(cf,bn)})},trackContentImpressionsWithinNode:function(cc){if(A(bS)||!cc){return}aM(function(){if(ay){aQ(function(){var cd=m.findContentNodesWithinNode(cc);var ce=bC(cd);ap(ce,bn)})}else{aA(function(){var cd=m.findContentNodesWithinNode(cc);var ce=aW(cd);ap(ce,bn)})}})},trackContentInteraction:function(ce,cf,cc,cd){if(A(bS)){return}if(!ce||!cf){return}cc=cc||"Unknown";aM(function(){var cg=b7(ce,cf,cc,cd);aZ(cg,bn)})},trackContentInteractionNode:function(cd,cc){if(A(bS)||!cd){return}aM(function(){var ce=aV(cd,cc);aZ(ce,bn)})},trackEvent:function(cd,cf,cc,ce){aM(function(){al(cd,cf,cc,ce)})},trackSiteSearch:function(cc,ce,cd){aM(function(){aN(cc,ce,cd) |