]> git.mxchange.org Git - friendica-addons.git/blob - piwik/README
d5060d0b0e7d73171d8154fb5153e37c90cfd504
[friendica-addons.git] / piwik / README
1 ____ Piwik Plugin ____
2 by Tobias Diekershoff
3    tobias.diekershoff(at)gmx.net
4
5 This addon allows you to embed the code necessary for the FLOSS webanalytics
6 tool piwik into the Friendica pages.
7
8 Online version of this Document: http://ur1.ca/35m2x
9
10 ___ Requirements ___
11
12 To use this plugin you need a "piwik":http://piwik.org installation.
13
14 ___ Where to find ___
15
16 In the Friendica git repository @/addon/piwik/piwik.php@ and a CSS file for
17 styling the opt-out notice.
18
19 ___ Configuration ___
20
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:
24
25 $a->config['piwik']['baseurl'] = 'example.com/piwik/';
26 $a->config['piwik']['sideid'] = '1';
27 $a->config['piwik']['optout'] = true;
28
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 Friendica 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 Friendica 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.
37
38 Currently the optional notice states the following:
39
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).
43