Matomo plugin problems
Thanks for implementing the plugin. I feel silly but I'm a bit confused how to install this and the readme does not say. Just installing it from PeerTube's /admin/plugins/list-installed?pluginType=1 menu didn't seem to work with my settings as:
Matomo Url: https://mysite.com/matomo/index.php (edit: also tried https://mysite.com/matomo/piwik.php) Site id: 1
So then I searched how to install plugins and found https://docs.joinpeertube.org/#/contribute-plugins which states:
Then, you can install or reinstall your local plugin/theme by running: $ node ./dist/server/tools/peertube.js plugins install --path /your/absolute/plugin-or-theme/path
However, I don't think this is correct as there is no
./dist/server/tools/peertube.js. (You might want to update.) I did find
./dist/scripts/plugin/install.js so I manually added a directory, FTPed the plugin, and used that:
node ./dist/scripts/plugin/install.js "--plugin-path" "/home/peertube/public_html/versions/peertube-v1.4.1/plugins/peertube-plugin-matomo"
...which gave me:
[mysite.com:443] 2019-10-09 13:41:38.861 info: Installing plugin /home/peertube/public_html/versions/peertube-v1.4.1/plugins/peertube-plugin-matomo. [mysite.com:443] 2019-10-09 13:41:40.419 info: Successful installation of plugin /home/peertube/public_html/versions/peertube-v1.4.1/plugins/peertube-plugin-matomo. [mysite.com:443] 2019-10-09 13:41:40.422 info: Registering plugin or theme peertube-plugin-matomo. [mysite.com:443] 2019-10-09 13:41:40.427 info: Add plugin peertube-plugin-matomo CSS to global file. [mysite.com:443] 2019-10-09 13:41:40.428 info: Cleaning HTML cache.
However, even doing
systemctl restart peertube did not seem to get the plugin to work. Can you suggest what I'm doing wrong please? Thanks
Also, I found the directions to install plugins at https://docs.joinpeertube.org/#/maintain-tools?id=plugin-installuninstall but this plugin still does not work (and I do not see any references to matomo in the HTML/JS page sources). I also updated the Matomo Url to https://mysite.com/matomo/.