You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the curent version of WikiJS (2.5.144), the Matomo integration constructs the tracking script Java Snippet using the variables siteId, serverHost and scriptUrl, which are supplied by the user (see definition.yml and code.yml).
I had a look at the source code in Matomo just now and saw that the scriptUrl variable is unnecessary because the tracking script URL can be constructed using just the serverHost variable.
Additionally, the option g.defer=true; was removed and the var_paq variable was changed in Matomo in July this year.
WikiJS integration
<!-- Matomo --><scripttype="text/javascript">var_paq=window._paq||[];/* tracker methods like "setCustomDimension" should be called before "trackPageView" */_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);(function(){varu="{{serverHost}}/";_paq.push(['setTrackerUrl',u+'matomo.php']);_paq.push(['setSiteId','{{siteId}}']);vard=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.type='text/javascript';g.async=true;g.defer=true;g.src='{{scriptUrl}}';s.parentNode.insertBefore(g,s);})();</script><noscript><p><imgsrc="{{serverHost}}/matomo.php?idsite={{siteId}}&rec=1" style="border:0;" alt="" /></p></noscript><!-- End Matomo Code -->
Matomo (emphasis mine)
<!-- Matomo --><scripttype="text/javascript">
# var_paq=window._paq=window._paq||[];/* tracker methods like "setCustomDimension" should be called before "trackPageView" */_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);(function(){varu="https://localhost/piwik/";_paq.push(['setTrackerUrl',u+'matomo.php']);_paq.push(['setSiteId','1']);vard=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
# g.type='text/javascript';g.async=true;g.src=u+'matomo.js';s.parentNode.insertBefore(g,s);})();</script><!-- End Matomo Code -->
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
In the curent version of WikiJS (2.5.144), the Matomo integration constructs the tracking script Java Snippet using the variables
siteId
,serverHost
andscriptUrl
, which are supplied by the user (see definition.yml and code.yml).I had a look at the source code in Matomo just now and saw that the
scriptUrl
variable is unnecessary because the tracking script URL can be constructed using just theserverHost
variable.Additionally, the option
g.defer=true;
was removed and thevar_paq
variable was changed in Matomo in July this year.WikiJS integration
Matomo (emphasis mine)
Screenshots
The text was updated successfully, but these errors were encountered: