Track owncloud users with Piwik.
- Owncloud >= 8
- Working piwik installation (tested with 2.14.3)
- Empty custom variable slots on index 1, 2 and 3
- Normal piwik stuff (url, page title, browser, ...)
- User ID aka Owncloud user
- App in first custom variable
- Share ID in second custom variable (
index.php/s/SHARE_ID
) - Share ID + folder or file name in third custom variable
- Download
- Outlink
- File directory
- Download and extract to
OWNCLOUD_DIR/apps/piwik/
- Enable app
- If needed create a new site in your piwik installation
- Insert piwik site id and url on the owncloud admin page (e.g. site id:
1
, url://domain.tld/piwik/
) - If you are using owncloud 8 and piwik is hosted under a different domain as owncloud you need to use one of two possible proxy methods:
- Add
RewriteRule "^piwik/(.*)$" "http://piwik.tld/$1" [P]
to your.htaccess
- Add
ProxyPass /piwik/ http://piwik.tld/
to your apache VirtualHost section