You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 line
658B

  1. <!-- Matomo -->
  2. <script>
  3. var _paq = window._paq = window._paq || [];
  4. /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  5. _paq.push(['trackPageView']);
  6. _paq.push(['enableLinkTracking']);
  7. (function() {
  8. var u="//<?= Yii::$app->parameterBag->get('matomoUrl'); ?>/";
  9. _paq.push(['setTrackerUrl', u+'matomo.php']);
  10. _paq.push(['setSiteId', '<?= Yii::$app->parameterBag->get('matomoIdSite'); ?>']);
  11. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  12. g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  13. })();
  14. </script>
  15. <!-- End Matomo Code -->