Hey,
I found a simple solution to monetize all of your traffic - doesn't matter if your users have Adblock enabled or not. Little HTML/JavaScript/CSS knowledge is needed.
Lets look at this example:
Solution
What do you think?
Have fun
I found a simple solution to monetize all of your traffic - doesn't matter if your users have Adblock enabled or not. Little HTML/JavaScript/CSS knowledge is needed.
Lets look at this example:
- You have some cpc/cpm banner ads on your website (Adsense etc.)
- Users without adblock will see the banners, users with adblock won't.
- We want to monetize adblock users too.
Solution
- Put this simple Javascript into your pages: Google for "fuckadblock github" (I can't post links yet). This script checks if the current user has an adblocker enabled or not.
- Go and get into some affiliate program like Amazon for example. Download a banner in the same size of your cpc/cpm ads as an image and put it on your webspace.
- Put this image combined with your affiliate link below the usual tag of your cpc/cpm ad. Set its style to "display: none" and give it an ID (e.g. id="adblockAd").
- Put this code into your pages:
HTML:
// Function called if AdBlock is detected function adBlockDetected() { document.getElementById("adblockAd").style.display = "block"; } // Recommended audit because AdBlock lock the file 'fuckadblock.js' // If the file is not called, the variable does not exist 'fuckAdBlock' // This means that AdBlock is present if(typeof fuckAdBlock === 'undefined') { adBlockDetected(); } else { fuckAdBlock.onDetected(adBlockDetected); fuckAdBlock.onNotDetected(adBlockNotDetected); // and|or fuckAdBlock.on(true, adBlockDetected); fuckAdBlock.on(false, adBlockNotDetected); // and|or fuckAdBlock.on(true, adBlockDetected).onNotDetected(adBlockNotDetected); } // Change the options fuckAdBlock.setOptions('checkOnLoad', false); // and|or fuckAdBlock.setOptions({ checkOnLoad: false, resetOnEnd: false }); - Be aware that "fuckadblock.js" has to be included previous to the code above.
- If the user now has an Adblocker enabled he will see your affiliate banner instead and you can monetize 100% of your traffic.
What do you think?
Have fun