Changes between Version 9 and Version 10 of PiwikServer


Ignore:
Timestamp:
06/20/11 13:36:31 (5 years ago)
Author:
chris
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PiwikServer

    v9 v10  
    3434}}} 
    3535 
     36The installer suggested this JS tracking code, see the docs at http://piwik.org/docs/javascript-tracking/ : 
     37 
     38{{{ 
     39<!-- Piwik --> 
     40<script type="text/javascript"> 
     41var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.transitionnetwork.org.webarch.net/" : "http://piwik.transitionnetwork.org.webarch.net/"); 
     42document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); 
     43</script><script type="text/javascript"> 
     44try { 
     45var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); 
     46piwikTracker.trackPageView(); 
     47piwikTracker.enableLinkTracking(); 
     48} catch( err ) {} 
     49</script><noscript><p><img src="http://piwik.transitionnetwork.org.webarch.net/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript> 
     50<!-- End Piwik Tracking Code --> 
     51}}} 
     52 
     53And this image tracking code: 
     54 
     55{{{ 
     56<!-- Piwik Image Tracker --> 
     57<img src="https://piwik.transitionnetwork.org.webarch.net/piwik.php?idsite=1&rec=1" style="border:0" alt="" /> 
     58<!-- End Piwik --> 
     59}}} 
     60 
     61The following parameters can also be passed to the image URL: 
     62 
     63 *   rec - (required) The parameter &rec=1 is required to force the request to be recorded 
     64 *   idsite - (required) Defines the Website ID being tracked 
     65 *   action_name - Defines the custom Page Title for this page view 
     66 *   idgoal - The request will trigger the given Goal 
     67 *   urlref - The Referrer URL: must be set to the referrer URL used before landing on the page containing the Image tracker. For example, in PHP this value is accessible via 
     68    {{{$_SERVER['HTTP_REFERER']}}} 
     69 *   revenue - Used with idgoal, defines the custom revenue for this conversion 
     70 
    3671 
    3772