4 ms·
Unfortunately your script still calls a third party domain, which is trivial to block using a generic AdBlock/uBlock rule. Instead, you should host the matomo s
by vntok 6y ago
Unfortunately your script still calls a third party domain, which is trivial to block using a generic AdBlock/uBlock rule. Instead, you should host the matomo script (under a different filename of course) on your own domain. That way it won't be as easily blocked.
I go as far as to send all the tracking parameters through a custom server script before they are proxied to GA and Matomo. That way, I can change the script and parameter names at will, making them much more difficult to block. For example, Matomo-related blocking rules are as follows:
/matomo-tracking.
/matomo.js$domain=~github.com
/matomo.php
/matomo/$domain=~github.com|~matomo.org|~wordpress.org
/piwik-$domain=~github.com|~matomo.org|~piwik.org|~piwik.pro|piwikpro.de
/piwik.$image,script,domain=~matomo.org|~piwik.org|~piwik.pro|piwikpro.de
/piwik./ping?
/piwik.js
/piwik.php
/piwik/*$domain=~github.com|~matomo.org|~piwik.org|~piwik.pro
/piwik1.
/piwik2.js
/piwik_
/piwikapi.js
/piwikC_
/piwikTracker.
- l1am0 6y agoIf someone decides to explicit block my Matomo tracking server I am fine with that. I experimented with tracking on the same site and the overhead is not worth it for me. Central solution for all my projects works quite reliable
- vntok 6y agoSure if someone explicitely blocks you and you alone, that's fine. The problem is you getting blocked generically, because you're using the same scripts or patterns as everyone else, such that there exists a very wide and generic block rule in uBlock Origin or some other filter that happens to apply to your own domain. That's unacceptable and worth fighting against.
- l1am0 6y agoBut that is exactly what the script is doing. It changes the structure to prevent generally being blocked