piwik_noad

Component ID

2638698

Component name

piwik_noad

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module is a clone from https://www.drupal.org/project/piwik and contain a fix to hide piwik from add blockers.

It uses the mechanism explained here:
https://github.com/piwik/piwik/blob/master/js/README.md

To get it working, follow the installation instruction on the piwik project.
For apache add the following code to your virtualhost definition:

### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
ProxyPassMatch ^/pi/(.*.php(/.*)?)$ fcgi://localhost:9000/usr/local/www/piwik/$1

Alias /pi /usr/local/www/piwik/
AcceptPathInfo On
<Directory /usr/local/www/piwik>
   AllowOverride None
   Options Indexes FollowSymLinks
   # Apache 2.4 no longer accepts "Order" or "Allow from ..."
   Require all granted
</Directory>

In the drupal module configuration enter as Piwik HTTP URL simply: http://yourdomain/pi/

In the lines "Piwik javascript tracking file" and "Piwik PHP tracking file" just type "js/".

If you would like to change the URL simply adapt the apache configuration and the part in the piwik settings accordingly.