Replace all URLs from Piwik to Matomo

This commit is contained in:
Kevin Falcoz
2020-11-02 14:24:58 +01:00
committed by GitHub
parent cfd173cf12
commit 026773b35e

View File

@@ -25,12 +25,12 @@
_paq.push(['enableLinkTracking']);
(function() {
var u="{{ $appAnalyticsPiwikUrl }}";
_paq.push(['setTrackerUrl', u+'/piwik.php']);
_paq.push(['setTrackerUrl', u+'/matomo.php']);
_paq.push(['setSiteId', {{ $appAnalyticsPiwikSiteId }}]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'/piwik.js'; s.parentNode.insertBefore(g,s);
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="{{ $appAnalyticsPiwikUrl }}/piwik.php?idsite={{ $appAnalyticsPiwikSiteId }}" style="border:0;" alt="" /></p></noscript>
<noscript><p><img src="{{ $appAnalyticsPiwikUrl }}/matomo.php?idsite={{ $appAnalyticsPiwikSiteId }}" style="border:0;" alt="" /></p></noscript>
@endif
@endif