wiki:mfpl-piwik

Version 1 (modified by Dana, 6 years ago) (diff)

--

May First Piwik Admin

We have setup a May First Piwik to use across our sites. You can access the super admin account in keyringer to create a user account for yourself, as well as, add our websites.

Piwik Integrations

Piwik has many add-ons that can be used, they are here: http://piwik.org/integrate/

JS Tracking Code

The following JS can also be used:

<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["trackPageView"]);
  _paq.push(["enableLinkTracking"]);

  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.mayfirst.org/";
    _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.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Piwik Code -->