Web based family history software

Search Results (Searched for: piwik)

  • gatonero
10 Oct 2023 07:18 - 11 Oct 2023 03:20
No Matomo javascript code in header was created by gatonero
I'm trying to activate matomo in my webtree installation. Neither trying to contact my own server nor the official matomo server I don't see any matomo code in the header in the source files. My modul config is 

Code:
<script type="text/javascript">     var _paq = window._paq || ;     _paq.push(['trackPageView']);     _paq.push(['enableLinkTracking']);     (function() {         var u="https:\/\/192.168.178.200\/matomo\/";         _paq.push(['setTrackerUrl', u+'piwik.php']);         _paq.push(['setSiteId', "1"]);         _paq.push(['setUserId', "xxxxxxxx"]);         var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    
  • sharky
31 Jul 2023 11:48 - 31 Jul 2023 11:50
Replied by sharky on topic Matomo™ / Piwik™ Analytics
Hi,

New version matomo = change script
(And, i hope, piwik is dead now)

Update snippet.phtml at resources/views/modules/matomo-analytics
Code:
<script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u=<?= json_encode($MATOMO_URL ?? '', JSON_THROW_ON_ERROR) ?>; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', <?= json_encode($MATOMO_SITE_ID ?? '', JSON_THROW_ON_ERROR) ?>]); 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> <!-- End Matomo Code -->
Displaying 1 - 2 out of 2 results.
Powered by Kunena Forum
}