Pull in the external piwik.js manually

This commit is contained in:
Jonny Barnes 2017-03-07 20:07:46 +00:00
parent a7e66e4600
commit 005e373043
5 changed files with 7 additions and 8 deletions

View file

@ -4,10 +4,5 @@ var _paq = _paq || [];
// tracker methods like "setCustomDimension" should be called before "trackPageView"
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.jmb.lv/";
_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+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
_paq.push(['setTrackerUrl', 'https://analytics.jmb.lv/piwik.php']);
_paq.push(['setSiteId', '1']);