JuanMa
November 10, 2020, 1:11pm
1
Hello!
Is it possible to customize the error message that appears on matomo when you call directly to matomo.php? I got the following message which I would like to customize:
" This resource is part of Matomo. Keep full control of your data with the leading free and open source web analytics & conversion optimisation platform ."
Thank you in advance,
Best regards
Lukas
(Lukas Winkler)
November 10, 2020, 1:24pm
2
Hi,
This message is defined here:
Common::printDebug("Empty request => Matomo page");
echo "This resource is part of Matomo. Keep full control of your data with the leading free and open source <a href='https://matomo.org' target='_blank' rel='noopener noreferrer nofollow'>web analytics & conversion optimisation platform</a>.<br>\n";
echo "This file is the endpoint for the Matomo tracking API. If you want to access the Matomo UI or use the Reporting API, please use <a href='index.php'>index.php</a> instead.";
So if you edit the core/Tracker/Response.php
the message will change.
Just keep in mind that the integrity checker will complain and the next update will overwrite your modifications.