Change to matomo.js

This commit is contained in:
YuCheng Hu 2020-05-20 16:29:33 -04:00
parent bbd0dcb82d
commit 758d48ec96
1 changed files with 2 additions and 2 deletions

View File

@ -15,10 +15,10 @@
if (!_paq_loaded) {
var u = `//${settings.host_url}/`;
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', settings.website_id]);
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);
_paq_loaded = true;
}