May First Piwik Admin

This page documents how May First/People Link uses a piwik installs to track use of our own internal web sites. It is not intended for broader member use.

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:

JS Tracking Code

This is a sample of JS can also be used. However the site needs to be added to Piwik and defined by the Site id # it gets when added to piwik.

<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];

  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://";
    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    _paq.push(["setSiteId", "#"]);
    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);
<!-- End Piwik Code -->

In this line replace # with the side id # _paq.push(["setSiteId", "#"]);

When a visitor has disabled JavaScript, or when JavaScript cannot be used, you can use an image tracking link to track visitors. Generate the link below and copy-paste the generated HTML in the page. If you're using this as a fallback for JavaScript tracking, you can surround it in <noscript></noscript> tags.

<!-- Piwik Image Tracker -->
<img src=";rec=1" style="border:0" alt="" />
<!-- End Piwik -->

In this case replace # with side id # on idsite=#

Last modified 7 years ago Last modified on Dec 2, 2014, 9:19:53 AM