matomo is blocked by easylist: the name matomo.js/.php, AND the GET variable ?action_name=
note that if the action_name= variable is not the first one getting called, it is not blocked.
The solution is to create symbolic links of matomo.(php|js) files and to put another variable before the “action_name” in the URL:
sed -i -e ‘s/action_name=/a=b&action_name=/g’ matomo.js
this will call matomo with:
?a=b&action_name= …
this pass easylist filters.
however the matomo.js seems to be auto-updated very frequently and is overwriting the modification. Anyone has a solution to stop the file from being overwritten ? I’ve though about changing file’s permissions but I’d prefer a more indirect way.
– I wanted to reach the same goal (bypass ads blockers) and you can do this by using setCustomRequestProcessing in the JS tracker code present in your pages :
var _paq = window._paq = window._paq || [];
_paq.push(['setCustomRequestProcessing', function(request) {
/* modify request content to your needs */
request = "a=b&"+request;
return request;
}]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
/* other lines to load the Matomo code */
– To bypass ads blockers, I use https://github.com/matomo-org/tracker-proxy
Following instructions, you get matomo.php, piwik.php, proxy.php and matomo-proxy.php and place them in your root directory.
I renamed matomo.php to m.php otherwise the name matomo is blocked by Ublock origin.
I added to m.php this code to accept alternative GET params name (action_name and idsite are blocked by ads blockers) :