3 tobias.diekershoff(at)gmx.net
5 This addon allows you to embed the code necessary for the FLOSS webanalytics
6 tool piwik into the Friendika pages.
8 Online version of this Document: http://ur1.ca/35m2x
12 To use this plugin you need a "piwik":http://piwik.org installation.
16 In the Friendika git repository @/addon/piwik/piwik.php@ and a CSS file for
17 styling the opt-out notice.
21 Open the .htconfig.php file and add "piwik" to the list of activated addons.
22 $a->config['system']['addon'] = "piwik, ..."
23 You have to add 3 more configuration variables for the addon:
25 $a->config['piwik']['baseurl'] = 'example.com/piwik/';
26 $a->config['piwik']['sideid'] = '1';
27 $a->config['piwik']['optout'] = true;
29 The *baseurl* points to your piwik installation. Use the absolute path,
30 remember trailing slashes but ignore the protocol (http/s) part of the URL.
31 Change the *sideid* parameter to whatever ID you want to use for tracking your
32 Friendika installation. The *optout* parameter (true|false) defines whether or
33 not a short notice about the utilization of piwik will be displayed on every
34 page of your Friendika site (at the bottom of the page with some spacing to the
35 other content). Part of the note is a link that allows the visitor to set an
36 _opt-out_ cookie which will prevent visits from that user be tracked by piwik.
38 Currently the optional notice states the following:
40 This website is tracked using the Piwik analytics tool. If you do not want
41 that your visits are logged this way you can set a cookie to prevent Piwik
42 from tracking further visits of the site (opt-out).