Difference between revisions of "MediaWiki:Mobile.js"
(Add Google Analytics) |
|||
Line 1: | Line 1: | ||
<script> | <script> | ||
− | + | 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); | |
− | + | })(); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</script> | </script> |
Revision as of 06:27, 29 March 2023
<script> 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); })(); </script>