DrMurx / cloud_piwik

Track @Nextcloud users with @matomo-org (formerly Piwik)

Home Page:http://sualko.github.io/cloud_piwik/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Piwik/Matomo for your Cloud

GitHub All Releases GitHub license

Track Nextcloud users with Piwik/Matomo.

Requirements

  • Nextcloud >= 11
  • Working Piwik/Matomo installation (tested with 2.14.3)
  • Empty custom variable slots on index 1, 2 and 3

What will be tracked?

  • Normal Piwik/Matomo 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

Installation

  • Download and extract to CLOUD_DIR/apps/piwik/
  • Enable app
  • If needed create a new site in your Piwik/Matomo installation
  • Insert Piwik/Matomo site id and url on the cloud admin page (e.g. site id: 1, url: //domain.tld/piwik/)
  • If Piwik/Matomo is hosted under a different domain as your cloud you maybe need to use one of two possible proxy methods:
  • Add RewriteRule "^piwik/(.*)$" "http://piwik.tld/$1" [P] to your .htaccess
  • a2enmod proxy
  • Add ProxyPass /piwik/ http://piwik.tld/ to your apache VirtualHost section

About

Track @Nextcloud users with @matomo-org (formerly Piwik)

http://sualko.github.io/cloud_piwik/

License:MIT License


Languages

Language:PHP 62.0%Language:JavaScript 35.0%Language:CSS 3.0%