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
5adc2c6e-3d39-4967-a6d4-71ddb524286b-image.png
Click on manage containers and install code from the default container
a42ac0c3-1979-4140-907b-d5ce2ae3fcbf-image.png
Copy the code
21f790e0-9761-43e9-a608-af5acff2b168-image.png
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:
PHP Warning: require_once(../libs/upgradephp/upgrade.php): Failed to open stream
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.