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.

However.

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.

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

Leave a Reply to Dimitri Enns Cancel reply

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

*