diff --git a/js/matomo-tracking.min.js b/js/matomo-tracking.min.js index 027ae63e..196c1224 100644 --- a/js/matomo-tracking.min.js +++ b/js/matomo-tracking.min.js @@ -1,2 +1,2 @@ -var _paq=window._paq||[];function embedTrackingCode(){var e="https://piwik.wikimedia.org/",a=document,i=a.createElement("script"),d=a.getElementsByTagName("head")[0];_paq.push(["setTrackerUrl",e+"piwik.php"]),_paq.push(["setSiteId","16"]),i.src=e+"piwik.js",i.async=!0,i.defer=!0,d.appendChild(i)}_paq.push(["setDomains",["*.design.wikimedia.org."]]),_paq.push(["trackPageView"]),_paq.push(["enableLinkTracking"]),window.addEventListener?window.addEventListener("load",embedTrackingCode,!1):window.attachEvent?window.attachEvent("onload",embedTrackingCode):embedTrackingCode(); +var _paq=window._paq||[];function embedTrackingCode(){var e="https://piwik.wikimedia.org/",a=document,i=a.createElement("script"),a=a.getElementsByTagName("head")[0];_paq.push(["setTrackerUrl",e+"piwik.php"]),_paq.push(["setSiteId","16"]),i.src=e+"piwik.js",i.async=!0,i.defer=!0,a.appendChild(i)}_paq.push(["setDomains",["*.design.wikimedia.org."]]),_paq.push(["trackPageView"]),_paq.push(["enableLinkTracking"]),window.addEventListener?window.addEventListener("load",embedTrackingCode,!1):embedTrackingCode(); //# sourceMappingURL=matomo-tracking.min.js.map.json \ No newline at end of file diff --git a/js/matomo-tracking.min.js.map.json b/js/matomo-tracking.min.js.map.json index b8cf986c..6e98a9ce 100644 --- a/js/matomo-tracking.min.js.map.json +++ b/js/matomo-tracking.min.js.map.json @@ -1 +1 @@ -{"version":3,"file":"matomo-tracking.min.js","sources":["src/matomo-tracking.js"],"names":["_paq","window","embedTrackingCode","u","d","document","g","createElement","s","getElementsByTagName","push","src","async","defer","appendChild","addEventListener","attachEvent"],"mappings":"AAMA,IAAIA,KAAOC,OAAOD,MAAQ,GAM1B,SAASE,oBACR,IAAIC,EAAI,+BACPC,EAAIC,SACJC,EAAIF,EAAEG,cAAe,UACrBC,EAAIJ,EAAEK,qBAAsB,QAAU,GACvCT,KAAKU,KAAM,CAAE,gBAAiBP,EAAI,cAClCH,KAAKU,KAAM,CAAE,YAAa,OAC1BJ,EAAEK,IAAMR,EAAI,WACZG,EAAEM,OAAQ,EACVN,EAAEO,OAAQ,EACVL,EAAEM,YAAaR,GAfhBN,KAAKU,KAAM,CAAE,aAAc,CAAE,6BAC7BV,KAAKU,KAAM,CAAE,kBACbV,KAAKU,KAAM,CAAE,uBAgBRT,OAAOc,iBACXd,OAAOc,iBAAkB,OAAQb,mBAAmB,GACzCD,OAAOe,YAClBf,OAAOe,YAAa,SAAUd,mBAE9BA"} \ No newline at end of file +{"version":3,"file":"matomo-tracking.min.js","sources":["src/matomo-tracking.js"],"names":["_paq","window","embedTrackingCode","u","d","document","g","createElement","s","getElementsByTagName","push","src","async","defer","appendChild","addEventListener"],"mappings":"AAMA,IAAIA,KAAOC,OAAOD,MAAQ,GAM1B,SAASE,oBACR,IAAIC,EAAI,+BACPC,EAAIC,SACJC,EAAIF,EAAEG,cAAe,UACrBC,EAAIJ,EAAEK,qBAAsB,QAAU,GACvCT,KAAKU,KAAM,CAAE,gBAAiBP,EAAI,cAClCH,KAAKU,KAAM,CAAE,YAAa,OAC1BJ,EAAEK,IAAMR,EAAI,WACZG,EAAEM,OAAQ,EACVN,EAAEO,OAAQ,EACVL,EAAEM,YAAaR,GAfhBN,KAAKU,KAAM,CAAE,aAAc,CAAE,6BAC7BV,KAAKU,KAAM,CAAE,kBACbV,KAAKU,KAAM,CAAE,uBAgBRT,OAAOc,iBACXd,OAAOc,iBAAkB,OAAQb,mBAAmB,GAEpDA"} \ No newline at end of file diff --git a/js/src/matomo-tracking.js b/js/src/matomo-tracking.js index 5e56955a..d402107a 100644 --- a/js/src/matomo-tracking.js +++ b/js/src/matomo-tracking.js @@ -25,8 +25,6 @@ function embedTrackingCode() { if ( window.addEventListener ) { window.addEventListener( 'load', embedTrackingCode, false ); -} else if ( window.attachEvent ) { /* Support for IE8 */ - window.attachEvent( 'onload', embedTrackingCode ); } else { embedTrackingCode(); }