Changes between Version 3 and Version 4 of mfpl-piwik


Ignore:
Timestamp:
May 29, 2014, 3:01:44 PM (11 years ago)
Author:
Dana
Comment:

Site ID needs to be included in scripts sample

Legend:

Unmodified
Added
Removed
Modified
  • mfpl-piwik

    v3 v4  
    2222    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.mayfirst.org/";
    2323    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    24     _paq.push(["setSiteId", "1"]);
     24    _paq.push(["setSiteId", "#"]);
    2525    var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
    2626    g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
     
    3030}}}
    3131
     32In this line replace # with the side id # {{{_paq.push(["setSiteId", "#"]);}}}
     33
    3234==== Image Tracking Link ====
    3335
     
    3638{{{
    3739<!-- Piwik Image Tracker -->
    38 <img src="http://analytics.mayfirst.org/piwik.php?idsite=1&amp;rec=1" style="border:0" alt="" />
     40<img src="http://analytics.mayfirst.org/piwik.php?idsite=#&amp;rec=1" style="border:0" alt="" />
    3941<!-- End Piwik -->
    4042}}}
    4143
     44In this case replace # with side id # on {{{idsite=#}}}