MediaWiki: Common.js: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Admin (talk | contribs)
No edit summary
Admin (talk | contribs)
No edit summary
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. */
<!-- Matomo -->
/* Matomo */
<script>
   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" */
Line 13: Line 12:
     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);
   })();
   })();
</script>
 
<!-- End Matomo Code -->
/* End Matomo Code */

Revision as of 13:55, 2 September 2021

/* Any JavaScript here will be loaded for all users on every page load. */
/* Matomo */
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//analytics.safetyinnovation.center/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '11']);
    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);
  })();

/* End Matomo Code */