I have Nextcloud 12 running in a jail as part of my Freenas server.
Since I have upgraded to Nextcloud 12 from Nextcloud 11, there have been an increase in new apps to be integrated into Nextcloud. Piwik is one of them.
As I am not at all familiar with Piwik, I have been trying to do some research. I have installed the app using Nextloud, but from this point forward I don’t understand which step I need to follow in order make Piwik work.
As Piwik is provided as an app within Nextcloud and because I just need to press the “Enable” button within Nextcloud, I do not know what is in effect installed and what else I have to do to make it work.
In the Piwik “How to” and “FAQ” forum, there are mention of creating a new MySQL database. I do not know if I need to do that as Nextcloud is already running with MySQL.
I have installed Nextcloud based on the following forum:
How can I find out if all the pre-requisits are met? Do I need to install other application beside Piwik?
According to the description it only adds the piwik tracking code into all nextcloud pages. You’ll still need to set up a separate Piwik instance where the app can send the data to.
On my system, the “/app/piwik” has been created and contains a few “.js”, “.php” and other files.
root@owncloud:/usr/local/www/owncloud/apps/piwik # ls -al
total 61
drwxr-xr-x 7 www www 9 Jun 1 23:42 .
drwxr-x— 80 www www 80 Jun 1 23:43 …
-rw-r–r-- 1 www www 1109 Jun 1 23:42 LICENSE
drwxr-xr-x 2 www www 3 Jun 1 23:42 ajax
drwxr-xr-x 2 www www 6 Jun 1 23:42 appinfo
drwxr-xr-x 2 www www 3 Jun 1 23:42 img
drwxr-xr-x 2 www www 8 Jun 1 23:42 js
-rw-r–r-- 1 www www 176 Jun 1 23:42 settings-admin.php
drwxr-xr-x 2 www www 3 Jun 1 23:42 templates
root@owncloud:/usr/local/www/owncloud/apps/piwik # ls -alR
total 61
drwxr-xr-x 7 www www 9 Jun 1 23:42 .
drwxr-x— 80 www www 80 Jun 1 23:43 …
-rw-r–r-- 1 www www 1109 Jun 1 23:42 LICENSE
drwxr-xr-x 2 www www 3 Jun 1 23:42 ajax
drwxr-xr-x 2 www www 6 Jun 1 23:42 appinfo
drwxr-xr-x 2 www www 3 Jun 1 23:42 img
drwxr-xr-x 2 www www 8 Jun 1 23:42 js
-rw-r–r-- 1 www www 176 Jun 1 23:42 settings-admin.php
drwxr-xr-x 2 www www 3 Jun 1 23:42 templates
./ajax:
total 23
drwxr-xr-x 2 www www 3 Jun 1 23:42 .
drwxr-xr-x 7 www www 9 Jun 1 23:42 …
-rw-r–r-- 1 www www 129 Jun 1 23:42 getPiwikSettings.php
./appinfo:
total 38
drwxr-xr-x 2 www www 6 Jun 1 23:42 .
drwxr-xr-x 7 www www 9 Jun 1 23:42 …
-rw-r–r-- 1 www www 929 Jun 1 23:42 app.php
-rw-r–r-- 1 www www 650 Jun 1 23:42 info.xml
-rw-r–r-- 1 www www 138 Jun 1 23:42 routes.php
-rw-r–r-- 1 www www 6 Jun 1 23:42 version
./img:
total 23
drwxr-xr-x 2 www www 3 Jun 1 23:42 .
drwxr-xr-x 7 www www 9 Jun 1 23:42 …
-rw-r–r-- 1 www www 4328 Jun 1 23:42 app.svg
./js:
total 74
drwxr-xr-x 2 www www 8 Jun 1 23:42 .
drwxr-xr-x 7 www www 9 Jun 1 23:42 …
-rw-r–r-- 1 www www 1688 Jun 1 23:42 settings-admin.js
-rw-r–r-- 1 www www 956 Jun 1 23:42 settings-admin.min.js
-rw-r–r-- 1 www www 1127 Jun 1 23:42 settings-admin.min.js.map
-rw-r–r-- 1 www www 3277 Jun 1 23:42 track.js
-rw-r–r-- 1 www www 1737 Jun 1 23:42 track.min.js
-rw-r–r-- 1 www www 1849 Jun 1 23:42 track.min.js.map
./templates:
total 23
drwxr-xr-x 2 www www 3 Jun 1 23:42 .
drwxr-xr-x 7 www www 9 Jun 1 23:42 …
-rw-r–r-- 1 www www 619 Jun 1 23:42 settings-admin.php
Based on the above entire folder structure, do you think what is there is incomplete.
If I need to install Piwik separetly, then what would be the proper approach?