broken app package. The moment your endpoint js/
-
There are several reasons why your endpoint should not be matomo.php or piwik.php. That's why I tried the endpoint "js/".
Steps to reproduce:
choose tag manager
Click on manage containers and install code from the default container
Copy the code
You only need the matomo endpoint. In my case
https://matomo-js-instance.luckow.org/js/
Open a new browser tab and open the url.
In a second tab, open the log file of the matomo app on Cloudron.Look for errors like:
In my case, I fixed a lot of open stream errors.
in /app/data
PHP Warning: include(../piwik.php)
ln -s /app/code/piwik.php .PHP Warning: require_once(../libs/upgradephp/upgrade.php)
ln -s /app/code/libs .PHP Warning: require(../../../autoload.php)
solution is more complex, because there is no easy ln -s for that.
open file manager and edit js/tracker.php
in line 44 change PIWIK_INCLUDE_PATH . '/../..') to PIWIK_INCLUDE_PATH . '/vendor')Attention: My changes in 44 worked for a moment. I'll have to check it a second time.
-
that works as expected. Ok. Next two steps. Edit you container. Switch to Manage Variables. Create new variable. Choose Matomo Configuration. Go down to Tracking Request Target Path and switch from piwik.php to js/
The idea behind containers: Insert the matomo Tag Manager code into your website only once. If you work with a matamo expert, they can configure matomo without having to change the code on the live website. The container changes every time you change the configuration.
You can change the endpoint in the variables. The moment we switch from piwik.php to js/ your website sends data to matomo.example.com/js/ instead of matomo.example.com/piwik.php
If you use the file manager from App settings and open js/index.php you see
If you open tracker.php you find the require once which throws errors in the logfile.
-
-
-