remotestorage/website

(Re-)Add Piwik codes

raucao opened this issue · 3 comments

  • Main site
  • Forums
  • Wiki
  <script type="text/javascript">
    var _paq = _paq || [];
    _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
    _paq.push(["setCookieDomain", "*.remotestorage.io"]);
    _paq.push(["setDomains", ["*.remotestorage.io"]]);
    _paq.push(["disableCookies"]);
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
      var u="//analytics.5apps.com/";
      _paq.push(['setTrackerUrl', u+'piwik.php']);
      _paq.push(['setSiteId', '5']);
      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>

@gregkare What's the preferred way to add changes for wiki templates now?

It's still messy right now for the RS wiki, I'll do it myself on the server and push the skin to a repo. I'll catch Jan at Congress and get him to change the wiki's IP to a Digital Ocean floating IP so I can migrate the server to a newly created server from a fresh chef repo

I have added the Piwik snippet to Mediawiki skin on the remoteStorage wiki server