Difference between revisions of "MediaWiki:Common.js"
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | |||
var _paq = window._paq = window._paq || []; | var _paq = window._paq = window._paq || []; | ||
_paq.push(['trackPageView']); | _paq.push(['trackPageView']); | ||
Line 12: | Line 11: | ||
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); | ||
})(); | })(); | ||
− |
Latest revision as of 12:47, 29 March 2023
/* Any JavaScript here will be loaded for all users on every page load. */ var _paq = window._paq = window._paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//stats.routexl.com/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); })();