Piwik install issue under Freenas 9.10 jail and Nextcloud 12

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?

Are you using Marketplace ?
It seems like it hasn’t been updated for quite some time. I am not sure if it is still working.

Or do you mean this app: Piwik Tracking - Apps - App Store - Nextcloud

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.

I have used the link: https://apps.nextcloud.com/apps/piwik
but nothing relevant so I dug deeper and went on the Piwik.org page instead.

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?

Hi, to install Piwik just just set it up like any other PHP/MySQL-based app or use the hosted instance by innocraft.

Piwik Tracking - Apps - App Store - Nextcloud is just a client that sends the visitor data of nextcloud users to your piwik instance.