Do you want to learn how to prevent invalid AdSense clicks in WordPress?
Invalid AdSense clicks are the result of clicks and impressions that are typically generated by bots or spammers. High number of invalid clicks can get your AdSense account suspended.
In this article, weβll show you how to prevent invalid AdSense clicks in WordPress, so you can keep your account in good standing.
What are Invalid Adsense Clicks?
Invalid AdSense clicks are any clicks to your ads that occur from invalid traffic.
What does Google consider invalid traffic?
- Clicks or impressions from website owners clicking their ads
- Repeated ad clicks or impressions from one or more users
- Website owners who are manipulating users to accidentally click their ads
- Automated tools like bots and robots to manipulate impressions and clicks
If youβre getting real people viewing and clicking your ads, then youβre fine.
But, sometimes, youβll have traffic coming to your website from low-quality sources. One form of this is bot traffic that clicks on display ads.
Does Google AdSense Detect Invalid Clicks?
Yes, Google has a very sophisticated platform that will automatically detect all invalid clicks.
Usually, Google will not take action against accounts unless high levels of invalid traffic and clicks have occurred.
Having small amounts of bot and crawler traffic, double ad clicks, and other errors are common, so they tend to ignore it.
However, Google will automatically adjust your account earnings to take out bot traffic and fake clicks. These adjustments happen both in real-time and at the end of the month.
The best way to avoid an account penalty is to stop invalid traffic from reaching your site in the first place. You can report invalid clicks to the Google Adsense team, but this doesnβt free your account from the responsibility.
How to Protect AdSense from Invalid Clicks in WordPress
Invalid clicks are a threat to your WordPress blog and ability to make money online, especially if itβs an ongoing problem.
There are three things you can do to help keep your Google AdSense account in good standing:
- Monitor your traffic and identify any invalid sources
- Make sure your ad placements are in alignment with AdSense guidelines
- Use an AdSense protection WordPress plugin to block invalid traffic and clicks
Understand Your Ad Traffic and WordPress Visitors
The root problem of invalid AdSense clicks is your traffic.
As a WordPress website owner, you are responsible for the traffic your website receives. Thatβs why itβs extremely important to understand how people find and use your website.
The easiest way to monitor your website traffic and analytics is with MonsterInsights. Itβs the best analytics solution for WordPress and is used by over 2 million website owners like you.
Thereβs also a free version of MonsterInsights that gives you access to your most important analytics data.
For more details, see our guide on how to install Google Analytics in WordPress.
Once youβve set up the plugin, you can view your Google Analytics reports within your WordPress dashboard. Simply go to Insights Β» Reports to get a quick overview of your traffic.
You can compare your Google Analytics and Google AdSense data to see if any traffic sources are the cause of invalid clicks.
Maybe youβve found that a single low-quality referring website is sending spam traffic your way?
Or, when you post in a certain Facebook group, the traffic back to your website is mostly bot traffic?
Avoid Accidental Visitor Clicks in WordPress
You could be getting invalid clicks from your visitors accidentally clicking on ads.
Suppose your ads are too similar to the rest of your content, or your ads are in positions that make your site hard to use. In that case, your visitors could be clicking on your ads by mistake.
For example, if you have an ad directly below a drop-down menu, this could cause visitors to click that ad on accident.
Another common mistake is using ad units that look like your content and navigation links. If a user clicks the ad, thinking theyβre navigating around your website, this could lead to accidental clicks.
For more details on AdSense ad placement, see our step by step guide on how to optimize your AdSense revenue in WordPress.
Block Invalid Traffic Sources With a WordPress Plugin
If your ads are correctly set up, but youβre still getting a warning from Google, then youβll want to block invalid traffic sources with a WordPress plugin.
To do this, we recommend using the AdSense Invalid Click Protector plugin. Itβs highly customizable so that you can block traffic and users according to your needs.
With this plugin, you can block entire countries, set a maximum number of ad clicks per user, block visitors when they hit your ad limit, block IP addresses, and more.
The first thing youβll need to do is install the AdSense Invalid Click Protector plugin. For more details on installing a plugin, see our step by step guide on how to install a WordPress plugin.
After the plugin is installed and activated, youβll have a new navigation option in your WordPress dashboard called βAdSense Invalid Click Protectorβ.
Next, youβll need to configure the plugin settings. To do this, navigate to Adsense Invalid Click Protector Β» General Settings.
On this screen, youβll set the conditions for the kind of behavior and traffic you want to block.
Weβre going to set the βAd Click Limitβ to 2, so a visitor can only click on an ad twice before it stops displaying.
Next, weβll set the βClick Counter Cookie Expiration Timeβ to 5 hours. This means that after 5 hours, your ads will display again for that user.
After that, weβll leave the βVisitor Ban Durationβ at the default 7 days. This will stop your ads from being shown to banned visitors for 7 days.
To block ads from showing for specific countries, set the βDo you want to block showing ads for some specific countries?β checkbox to βYesβ. Or, leave as βNoβ if you donβt want to block specific countries.
Then, enter the country code for the country you want to block.
Make sure to click βSave Changesβ before exiting the screen.
After youβve set up your block settings, youβll need to add the plugin code to your existing AdSense ad units.
Where you add the code depends on how youβve added your Google AdSense code to WordPress.
If you manually added your AdSense code to WordPress, then youβll need to locate every instance of the code across your site.
If youβre using a plugin to manage your ads, then navigate to the plugin and open up your AdSense code block. Itβll look similar to the code below.
Once youβve done that, youβll need to add the following code before your AdSense ad code block:
1 | if ( aicp_can_see_ads() ) { /* Your AdSense code goes here */ } |
Then, wrap your ad code in a simple div tag:
1 | < div class = "aicp" >...your ad code goes here...</ div > |
Your final ad code will look something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | if ( aicp_can_see_ads() ) { <div class = "aicp" > <script async src= "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" ></script> <!-- AdSense Responsive Ad Code --> <ins class = "adsbygoogle" style= "display:block" data-ad-client= "ca-pub-1234567890" data-ad-slot= "0123456789" data-ad-format= "auto" > </ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> } |
After you add the plugin code to your Google AdSense ads, your ads will display based on the block settings you assigned earlier.
If you prefer a hands-off solution, then there is a premium plugin called WP Advanced Ads Pro that has click fraud protection built-in.
You can enable click fraud protection directly from the plugin settings. There is no additional code you need to add to your site.
We hoped this article helped you prevent invalid AdSense clicks in WordPress. You may also want to see our collection of the best WordPress ad management plugins and solutions, and our expert pick of 24 must have WordPress plugins for businesses.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.