Skip to content

Latest commit

 

History

History
executable file
·
28 lines (24 loc) · 1.15 KB

README.md

File metadata and controls

executable file
·
28 lines (24 loc) · 1.15 KB

owncloud_piwik

Track owncloud users with Piwik.

Requirements

  • Owncloud >= 8
  • Working piwik installation (tested with 2.14.3)
  • Empty custom variable slots on index 1, 2 and 3

What will be tracked?

  • 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

What will not be tracked?

  • Download
  • Outlink
  • File directory

Installation

  • 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