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.
Keep up the good work , I read few posts on this website and I think that your blog is really interesting and has got lots of good info .
piwik.js is hard coded in 55 files
piwik.php is hard coded in 60 files
some of then php files laying in core folder
so, i doubt very much that your method is succefull
It is very OK to be doubtful. But why don’t you just try it out and see what happens.
It worked like a charm for me.