问题
I'm currently working at a platform that delivers banners. But these are not those annoying banners that you see on every website. They are interactive banners which expand only if you click on it. The problem is that adblock is not blocking the banner itself, it's blocking the tracking pixel that I'm injecting into the banner.
Why I want to solve this? Well, it will cost me money to deliver that banner, you'll see it and I will not be aware of that.
I'm currently trying to find a method of tracking the banners without a tracking pixel. Any good ideas for this? Thank you guys.
回答1:
Depending on how you serve your imaging pixel, One possibility is to set up a proxy in front of your images and use the logs to track the banners that you serve. Alternately, you can use the proxy to perform some logic and trigger an insert into a database of sorts (although that would likely make the proxy a bit slow).
You can also use the proxy to alias the tracking pixel's name so that it does not have the "ad" text in the filename. This may get it around the adblocker all by itself and can be done with simple pattern matching logic
You can use a proxy like nginx or HA proxy
来源:https://stackoverflow.com/questions/29889304/prevent-adblock-blocking-tracking-pixel