Difference between revisions of "MediaWiki:Mobile.js"
(Add Google Analytics) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 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); | ||
+ | })(); |
Latest revision as of 12:47, 29 March 2023
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); })();