您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
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 -->