INT 21h

Select language

War of analytics: Matomo (former Piwik) vs AdBlock

№ 10144 В разделе Sysadmin от July 25th, 2019,
В подшивках: , ,

AdBlock (uBlock and others) trying to block loading of Matomo analytics scripts, so your monitoring can’t work. Now we will try to fix this problem.

PrivacyList applies 2 rules:

  • block matomo.js
  • block matomo.php?action_name=

As I found Matomo easily accepts file renaming of matomo.js. It gives to us ability just to rename file and forget about first block rule. For example, make symlink mamatomo.js -> matomo.js and rename in page script matomo.js to mamatomo.js.

But what you can with second rule? In page script just add symbol ? at the end of .php:

_paq.push(['setTrackerUrl', u+'matomo.php?']);

In adblocker log window statistic urls looks approved to load:

https://stats.blindage.org/mamatomo.js
https://stats.blindage.org/mamatomo.php?&action_name=INT%2021h%20-%20Most%20

Now you can see some additional statistics from users with adblockers.

Нет комментариев »

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Облачная платформа
Яндекс.Метрика

Fortune cookie: "To hate man and worship god seems to be the sum of all the creeds." [Robert G. Ingersoll, "Some Mistakes of Moses" 1879]