MediaWiki:Common.js: Difference between revisions

Replacing OWA tracking code with Matomo tracking code
No edit summary
(Replacing OWA tracking code with Matomo tracking code)
Line 43: Line 43:
   }*/
   }*/
}
}
// OWA tracking code
//<![CDATA[
var owa_baseUrl = 'https://wittgensteinproject.org/owa/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', 'bd120a39d70dcd053c008f7d31d981ae']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
(function() {
    var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
    owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
    _owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
    var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
//]]>


//script per customizzare il testo in Special:Search
//script per customizzare il testo in Special:Search
Line 121: Line 105:
  }
  }
}
}
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//wittgensteinproject.org/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();