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

16 行
636B

  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->params['matomoUrl']; ?>/";
  9. _paq.push(['setTrackerUrl', u+'matomo.php']);
  10. _paq.push(['setSiteId', '<?= Yii::$app->params['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 -->