Jump to content

MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 83: Line 83:


function CustomizeModificationsOfSidebar() {
function CustomizeModificationsOfSidebar() {
ModifySidebar( 'remove', 'toolbox', '<span>Related changes</span>', '' );
ModifySidebar( 'remove', 'toolbox', 'Related changes', '' );
     ModifySidebar( 'remove', 'toolbox', '<span>Printable version</span>', '' );
     ModifySidebar( 'remove', 'toolbox', 'Printable version', '' );
}
}


Line 90: Line 90:


/* ====== Matomo ====== */
/* ====== Matomo ====== */
  var _paq = window._paq = window._paq || [];
var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
_paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
_paq.push(['enableLinkTracking']);
  (function() {
(function() {
    var u="//wittgensteinproject.org/matomo/";
var u="//wittgensteinproject.org/matomo/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '2']);
_paq.push(['setSiteId', '2']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
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);
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
})();