diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-09-20 09:28:46 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-09-20 09:28:46 +0400 |
commit | 93267bf987bba3509e4b5543193b75adf97c4205 (patch) | |
tree | 8703fb0e8e339ae32f1598d1ffeb598206d8fb69 /piwik.js | |
parent | 88db0590a6640e1670ff2c606aa52448f0a4fed8 (diff) |
Refs #2660
* Fix bug in JS API
* Now use price tracked in categories to process avg price per category
git-svn-id: http://dev.piwik.org/svn/trunk@5194 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'piwik.js')
-rw-r--r-- | piwik.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,5 +24,5 @@ if(a8){for(a9=0;a9<a8.length;a9++){a6+="|"+a8[a9]}}a6+=")( |$)";return new RegEx }}function aq(a7){if(!aH){aH=true;var a8,a6=ae(Q,"ignore"),a9=d.links;if(a9){for(a8=0;a8<a9.length;a8++){if(!a6.test(a9[a8].className)){aI(a9[a8],a7)}}}}}function aZ(){var a6,a7,a8={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"};if(j.mimeTypes&&j.mimeTypes.length){for(a6 in a8){if(Object.prototype.hasOwnProperty.call(a8,a6)){a7=j.mimeTypes[a8[a6]];aV[a6]=(a7&&a7.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&b(j.javaEnabled)&&j.javaEnabled()){aV.java="1"}if(a(I.GearsFactory)){aV.gears="1"}aV.res=v.width+"x"+v.height;aV.cookie=O()}aZ();aw();return{getVisitorId:function(){return(K())[1]},getVisitorInfo:function(){return K()},getAttributionInfo:function(){return i()},getAttributionCampaignName:function(){return i()[0]},getAttributionCampaignKeyword:function(){return i()[1] },getAttributionReferrerTimestamp:function(){return i()[2]},getAttributionReferrerUrl:function(){return i()[3]},setTrackerUrl:function(a6){M=a6},setSiteId:function(a6){aU=a6},setCustomData:function(a6,a7){if(n(a6)){T=a6}else{if(!T){T=[]}T[a6]=a7}},getCustomData:function(){return T},setCustomVariable:function(a7,a6,ba,a8){var a9;if(!b(a8)){a8="visit"}if(a7>0){a9=[a6.slice(0,aX),ba.slice(0,aX)];if(a8==="visit"||a8===2){L();P[a7]=a9}else{if(a8==="page"||a8===3){au[a7]=a9}}}},getCustomVariable:function(a7,a8){var a6;if(!b(a8)){a8="visit"}if(a8==="page"||a8===3){a6=au[a7]}else{if(a8==="visit"||a8===2){L();a6=P[a7]}}if(!b(a6)||(a6&&a6[0]==="")){return false}return a6},deleteCustomVariable:function(a6,a7){if(this.getCustomVariable(a6,a7)){this.setCustomVariable(a6,"","",a7)}},setLinkTrackingTimer:function(a6){az=a6},setDownloadExtensions:function(a6){ai=a6},addDownloadExtensions:function(a6){ai+="|"+a6},setDomains:function(a6){aA=q(a6)?[a6]:a6;aA.push(aQ)},setIgnoreClasses:function(a6){Q=q(a6)?[a6]:a6 },setRequestMethod:function(a6){aC=a6||"GET"},setReferrerUrl:function(a6){aE=a6},setCustomUrl:function(a6){ao=aP(a3,a6)},setDocumentTitle:function(a6){ag=a6},setDownloadClasses:function(a6){at=q(a6)?[a6]:a6},setLinkClasses:function(a6){ab=q(a6)?[a6]:a6},setCampaignNameKey:function(a6){ak=q(a6)?[a6]:a6},setCampaignKeywordKey:function(a6){af=q(a6)?[a6]:a6},discardHashTag:function(a6){S=a6},setCookieNamePrefix:function(a6){a1=a6;P=X()},setCookieDomain:function(a6){V=l(a6);aw()},setCookiePath:function(a6){a2=a6;aw()},setVisitorCookieTimeout:function(a6){Z=a6*1000},setSessionCookieTimeout:function(a6){aa=a6*1000},setReferralCookieTimeout:function(a6){ap=a6*1000},setConversionAttributionFirstReferrer:function(a6){an=a6},setDoNotTrack:function(a6){aW=a6&&j.doNotTrack},addListener:function(a7,a6){aI(a7,a6)},enableLinkTracking:function(a6){if(h){aq(a6)}else{C.push(function(){aq(a6)})}},setHeartBeatTimer:function(a8,a7){var a6=new Date();R=a6.getTime()+a8*1000;ad=a7*1000},killFrame:function(){if(I.location!==I.top.location){I.top.location=I.location -}},redirectFile:function(a6){if(I.location.protocol==="file:"){I.location=a6}},trackGoal:function(a6,a8,a7){ax(a6,a8,a7)},trackLink:function(a7,a6,a8){aS(a7,a6,a8)},trackPageView:function(a6,a7){ar(a6,a7)},setEcommerceView:function(a9,a6,a8,a7){if(b(a9)&&a9.length){au[3]=["_pks",a9]}if(b(a6)&&a6.length){au[4]=["_pkn",a6]}if(b(a8)&&a8.length){au[5]=["_pkc",a8]}if(b(a7)&&a7.length){au[2]=["_pkp",a8]}},addEcommerceItem:function(ba,a6,a8,a7,a9){if(ba.length){aK[ba]=[ba,a6,a8,a7,a9]}},trackEcommerceOrder:function(a6,ba,a9,a8,a7,bb){aN(a6,ba,a9,a8,a7,bb)},trackEcommerceCartUpdate:function(a6){a0(a6)}}}function c(){return{push:z}}t(I,"beforeunload",B,false);x();H=new F();for(D=0;D<_paq.length;D++){z(_paq[D])}_paq=new c();return{addPlugin:function(i,K){w[i]=K},getTracker:function(i,K){return new F(i,K)},getAsyncTracker:function(){return H}}}()),piwik_track,piwik_log=function(b,f,d,g){function a(h){try{return eval("piwik_"+h)}catch(i){}return}var c,e=Piwik.getTracker(d,f);e.setDocumentTitle(b); +}},redirectFile:function(a6){if(I.location.protocol==="file:"){I.location=a6}},trackGoal:function(a6,a8,a7){ax(a6,a8,a7)},trackLink:function(a7,a6,a8){aS(a7,a6,a8)},trackPageView:function(a6,a7){ar(a6,a7)},setEcommerceView:function(a9,a6,a8,a7){if(b(a9)&&a9.length){au[3]=["_pks",a9]}if(b(a6)&&a6.length){au[4]=["_pkn",a6]}if(b(a8)&&a8.length){au[5]=["_pkc",a8]}if(b(a7)&&String(a7).length){au[2]=["_pkp",a7]}},addEcommerceItem:function(ba,a6,a8,a7,a9){if(ba.length){aK[ba]=[ba,a6,a8,a7,a9]}},trackEcommerceOrder:function(a6,ba,a9,a8,a7,bb){aN(a6,ba,a9,a8,a7,bb)},trackEcommerceCartUpdate:function(a6){a0(a6)}}}function c(){return{push:z}}t(I,"beforeunload",B,false);x();H=new F();for(D=0;D<_paq.length;D++){z(_paq[D])}_paq=new c();return{addPlugin:function(i,K){w[i]=K},getTracker:function(i,K){return new F(i,K)},getAsyncTracker:function(){return H}}}()),piwik_track,piwik_log=function(b,f,d,g){function a(h){try{return eval("piwik_"+h)}catch(i){}return}var c,e=Piwik.getTracker(d,f);e.setDocumentTitle(b); e.setCustomData(g);if(!!(c=a("tracker_pause"))){e.setLinkTrackingTimer(c)}if(!!(c=a("download_extensions"))){e.setDownloadExtensions(c)}if(!!(c=a("hosts_alias"))){e.setDomains(c)}if(!!(c=a("ignore_classes"))){e.setIgnoreClasses(c)}e.trackPageView();if((a("install_tracker"))){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}};
\ No newline at end of file |