Blogger - Protect Adsense from Invalid Clicks

Blogger - Protect Adsense from Invalid Clicks

Most of the newcomers who start blogging opt in to use Blogger or WordPress as they are pretty straight forward to start with. You can easily monetize on both of the platforms. This specific tutorial is for Blogger. However, it can also be used for WordPress with minimal changes.

Let's use some code and edit the template to prevent bad or invalid clicks as they are harmful to your Adsense account. These will disable or even close your account. 

We don't guarantee the code works but it's tested thoroughly by the developer. 

Before you proceed any further, please don't fill up your entire page with ADs that's a bad practice.

There's just one step and that's:

Step 1: Paste this in the body section. Find </body> and paste it.

<script type='text/javascript'>
function downloadJSAtOnload(){var e=document.createElement("script");e.src="",document.body.appendChild(e)}window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;

Here, the AD will be shown three times and no more. It will be shown every 23000 milliseconds. You can change the values as per your liking if you want. Just the click and interval variables.

If the visitor is coming from the same IP address the script will not show more than three ADs for that user. 

That's all there is to it. Enjoy.

Post a Comment