INT 21h

Hi, I am Vladimir Smagin, SysAdmin, DevOps and barely good guy. Telegram Email / GIT / Микроблог / Thingiverse / GPG

War of analytics: Matomo (former Piwik) vs AdBlock

№ 10144 В разделе "Администрирование" от 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:

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 *


Микроблог перейти

# 2019-11-20 13:13:54

Говорят вещь хорошая, надо будет поковырять на днях #kubernetes #devops

# 2019-11-16 02:02:31

Хорошая шпаргалка по пластикам для печати В принципе, данные практически сходятся с моими

# 2019-11-14 15:29:01

Код quay теперь открыт #devops #kubernetes

© Vladimir Smagin, 2005-2019. Копирование материалов без разрешения запрещено. GPG DA4CD0F5E222EA727D6A40C413BCE12E5618F071 *

Fortune cookie: "Virgins give birth all the time! Yeah. They just don't tip the stork." [Robert Curry]