[Tiki-devel] Removing piwik code from tiki.org sites

Bsfez Tiki via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hello,

I’m not sure where this should be recorded so it will be here. ;-)

I see we have a piwik code on tiki.org websites
Having no one using it (and it’s pretty old) I removed it.

"Custom code just before the closing </body> tag"

tiki.org
https://tiki.org/tiki-admin.php?page=look#contentadmin_look-5

{literal}
<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://piwik.tiki.org/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 10]);
    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);
  })();
</script>
<noscript><p><img src="https://piwik.tiki.org/piwik.php?idsite=10" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
{/literal}


doc.tiki.org
https://doc.tiki.org/tiki-admin.php?page=look#contentadmin_look-5

<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function (d) {
  var p = d.location.protocol || 'https:';
  var u = p + "//piwik.tiki.org/";
  _paq.push(["setTrackerUrl", u + "piwik.php"]);
  _paq.push(["setSiteId", 2]);
  var g = d.createElement("script")
  g.type = "text/javascript";
  g.async = true;
  g.defer = true;
  g.src = u + "piwik.js";
  d.body.append(g);
})(document);
</script>
<noscript><p><img src="https://piwik.tiki.org/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>

dev.tiki.org
https://dev.tiki.org/tiki-admin.php?page=look#contentadmin_look-5

{literal}
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.tiki.org/" : "http://piwik.tiki.org/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="//piwik.tiki.org/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tag -->
{/literal}

This can’t hurt speed I guess ;-)
Bernard

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.