Difference between revisions of "Piwik"
Jump to navigation
Jump to search
m (New page: ==Installation== cf http://piwik.org/ apt-get install php5-gd /etc/init.d/apache2 restart wget http://piwik.org/last.zip Unzip it under e.g. <your website>/piwik <br>And prepare a Mysq ...) |
m (→Installation) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
mysql> GRANT ALL ON piwik.* TO piwik@localhost IDENTIFIED BY 'piwikpassword'; |
mysql> GRANT ALL ON piwik.* TO piwik@localhost IDENTIFIED BY 'piwikpassword'; |
||
Query OK, 0 rows affected (0.00 sec) |
Query OK, 0 rows affected (0.00 sec) |
||
+ | Piwik needs write access to some parts of the install in piwik/: |
||
+ | mkdir tmp |
||
+ | chown www-data:www-data config tmp |
||
Now you can visit http://<your website>/piwik and follow instructions to add the first site. |
Now you can visit http://<your website>/piwik and follow instructions to add the first site. |
||
<br>For more than one site, log in and check admin/sites |
<br>For more than one site, log in and check admin/sites |
||
+ | |||
+ | ==Documentation== |
||
+ | * http://piwik.org/javascript-tag-documentation/ |
||
+ | |||
==Injection== |
==Injection== |
||
of the javascript code into |
of the javascript code into |
||
===Mediawiki=== |
===Mediawiki=== |
||
+ | See [[MediaWiki#Piwik|here]] |
||
− | Edit the wiki page called [[MediaWiki:Common.js]] and copy/paste the Piwik Javascript code. |
||
+ | |||
===Gallery2=== |
===Gallery2=== |
||
+ | See [[Gallery#Piwik|here]] |
||
− | cf http://codex.gallery2.org/Gallery2:How_To_Add_Google_Analytics_to_my_Gallery_2 |
||
+ | ===Wordpress=== |
||
− | Create directory /usr/share/gallery2/themes/<mytheme>/templates/local |
||
+ | See [[Wordpress#Piwik|here]] |
||
− | <br>Copy /usr/share/gallery2/themes/<mytheme>/templates/theme.tpl to /usr/share/gallery2/themes/<mytheme>/templates/local/theme.tpl, edit that copy and add just above the </body> tag the Piwik javascript |
Latest revision as of 10:32, 28 October 2008
Installation
apt-get install php5-gd /etc/init.d/apache2 restart wget http://piwik.org/last.zip
Unzip it under e.g. <your website>/piwik
And prepare a Mysq database:
mysql> create database piwik; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL ON piwik.* TO piwik@localhost IDENTIFIED BY 'piwikpassword'; Query OK, 0 rows affected (0.00 sec)
Piwik needs write access to some parts of the install in piwik/:
mkdir tmp chown www-data:www-data config tmp
Now you can visit http://<your website>/piwik and follow instructions to add the first site.
For more than one site, log in and check admin/sites
Documentation
Injection
of the javascript code into
Mediawiki
See here
Gallery2
See here
Wordpress
See here