how to hide piwik.js and piwik.php from adblocker?

Let me tell you how to hide piwik.js and piwik.php from ad blocker in a easy way.

Adblockers are a really nice thing in this web full of popups, guilt reaper and attention seeker. Me myself – I get quite quickly annoyed by ads who want to have my attention and try to piss me off by being a wrong download button.


Anyone of you who is having some websites, maintaining some or creating some, will most probably want to know its traffic. Most of the admins prefer doing it with google analytics – I rather have it all on my machine.

So – adblocker are being fed by lists. Theses lists contain strings, URLs and regular expressions of things that should be blocked. And there you will also find a entry of piwik.js. So the adblocker blocks every URL that contains the piwik.js file.

So what you want to do, is make a copy of your piwik.js and piwik.php file and rename it. Just something like abc.js and abc.php.

Next you login to the websites and change the tracking code you’ve placed in it. Change the piwik.js and piwik.php to abc.js and abc.php, save the file and reload. You will find in the source code that abc.js and abc.php has been loaded and when you check your piwik dashboard you will find yourself there as a new visitor.

Related Articles
This tutorial is mainly written to help enthusiasts in Kenya to setup their own web server with Digital Ocean and host a WordPress blog on Read more
Firefox's tracking protection is, by default, only enabled in "Private Browsing". But there is a switch that allows you to enable Tracking Protection permanently. Just Read more
Block out strange visitors IP addresses with a Apache2 Blacklist. Sometimes one find's some strange visitors coming to their websites. These strange visitors may or Read more
Just an idea how you could create SSL certificates using Let's Encrypt for your clients mail domains in ISPConfig and have it being delivered via Read more
In case you, for some reason, have troubles getting SSL certificates for your site in ISPConfig, then the reason for this problem is might not Read more

4 Replies to “how to hide piwik.js and piwik.php from adblocker?”

Leave a Reply

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