Skip to content

arawa/cloud_matomo

 
 

Matomo for your Nextcloud

GitHub All Releases GitHub license

Track Nextcloud users with Matomo.

Requirements

  • Nextcloud >= 29
  • Working Matomo installation (tested with 4.13.3)
  • Empty custom variable slots on index 1, 2 and 3

What will be tracked?

  • Normal Matomo stuff (url, page title, browser, ...)
  • User ID aka Nextcloud 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/matomo/
  • Enable app
  • If needed create a new site in your Matomo installation
  • Insert Matomo site id and url on the cloud admin page (e.g. site id: 1, url: //domain.tld/matomo/)
  • If Matomo is hosted under a different domain as your cloud you maybe need to use one of two possible proxy methods:
  • Add RewriteRule "^matomo/(.*)$" "http://matomo.tld/$1" [P] to your .htaccess
  • a2enmod proxy
  • Add ProxyPass /matomo/ http://matomo.tld/ to your apache VirtualHost section

Publishing a new version

  1. bump version in package.json
  2. yarn release:build
  3. yarn release:sign
  4. yarn release:publish

About

Track @nextcloud users with @matomo-org (formerly Matomo)

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 57.0%
  • PHP 40.9%
  • CSS 2.1%