| 36 | The 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"> |
| 41 | var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.transitionnetwork.org.webarch.net/" : "http://piwik.transitionnetwork.org.webarch.net/"); |
| 42 | document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); |
| 43 | </script><script type="text/javascript"> |
| 44 | try { |
| 45 | var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); |
| 46 | piwikTracker.trackPageView(); |
| 47 | piwikTracker.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 | |
| 53 | And 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 | |
| 61 | The 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 | |