Hi, I’m new in piwik.
I’m having a problem loading the piwik.js, it is slow.
in your opinion is it possible to copy the piwik.js on the monitored website?
and then modify the tracking code in this way?
adding var u_local
...
function embedPiwik() {
var u_local="/system/modules/resources/js/";
var u="//piwik.domain/piwik/";
....
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
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_local+'piwik.js'; s.parentNode.insertBefore(g,s);
}
...
.