Do you want to add Google AdSense to your WordPress site? Google AdSense is a free, simple way to earn money from your website by displaying targeted Google Ads on your site.
In this article, we’ll show you how to properly add Google AdSense to your WordPress site along with a quick guide on how to track the performance of your ads with Google Analytics.
What is Google AdSense?
Google AdSense is a popular advertising network run by Google that allows you to easily add Google advertisements to make money from your website. It’s a cost-per-click (CPC) program in which you’ll get paid for every click users make on your site’s ads.
Google AdSense provides the easiest way to monetize your site; you just need to insert a small code snippet on your site, and Google will do the rest.
First, AdSense spiders will crawl your site to detect what your site content is about and then they’ll put related ads onto the ad blocks on your site. When people start to click on the ads, you’ll start making money.
The process of getting payments is hassle-free because you don’t need to deal with advertisers. Google deals with the advertisers, collects payment from them, and sends you a percentage of the collected money. Google takes a small percentage of the money as their management fee.
Now, let’s see how to add Google AdSense to your WordPress site in 3 easy steps.
Step 1: Create a Google AdSense Account and Connect It with WordPress
First, you’ll need to sign up for a Google AdSense account by going to the Google AdSense website. Click the Sign Up Now button to start the signup process.
On the next page, you’ll need to enter your website URL and email address. Then, choose whether you want to get helpful AdSense info to your email address by selecting your preferred option and click the Save and Continue button.
Next, you’ll need to choose your home country and check the Terms and Conditions box to proceed. Finally, click the Create Account button.
If you can see your Google AdSense homepage that means you’ve created your AdSense account. After this, the next step is to activate your account.
On your AdSense homepage, you’ll find 2 tasks to complete to activate your AdSense account:
- First, you’ll need to provide your payment address.
- Second, you’ll need to connect your WordPress site to AdSense.
To connect your site to AdSense, you’ll need to add a piece of HTML code to your WordPress site’s header. You’ll find this code on your AdSense homepage. Copy the code.
To add the code, you’ll need to log into your WordPress dashboard and install the Insert Headers and Footers plugin. The plugin lets you insert code into your theme’s header and footers safely, without having to edit your theme’s file.
After you install the plugin, you can go to Settings » Insert Headers and Footers and paste the HTML code into the header field.
Now that you’ve added the code to your site’s header, return to your Google AdSense account homepage and click the I’ve pasted the code into my site box. Then, click the Done button.
Next, you’ll see a short notice from Google AdSense that they’re reviewing your site. This is perfectly normal, but it does mean you’ll have to wait. Usually, it takes a day to complete the activation process. But it can take up to a couple of weeks for some sites.
Note: Sometimes, Google can’t activate your account if your site fails to comply with the AdSense program policies.
Step 2: Let AdSense Add Auto-Ads in WordPress
AdSense has introduced a new feature where it automatically adds AdSense ads on your website. By adding this code, AdSense figures out the best location, ad size, and type to use on your WordPress site.
Now, this is helpful for beginners who don’t have the time or expertise to add individual ads to their website. But the downside of this method is that you’ll have less control over where the ads appear on your site.
That said, you can get started by logging into your AdSense account. Then click on the Ads tab and you’ll then see a Get code option.
Next, AdSense will generate a code for your website. You can copy this code, as you’ll have to add it to your website.
Now, to add this code, you can again use Insert Headers and Footers plugin. Simply go to Settings » Insert Headers and Footers and paste the code in the header section.
You could also add this code manually into the header section of your WordPress theme. But if you update or change your theme in the future, your AdSense code will disappear and you’ll have to add it again.
On the other hand, what if you want to create an ad of your own choice and place it on your website? Continue reading to find out…
Step 3: Manually Add Google AdSense Ads to WordPress
To create an ad in Google AdSense, you’ll need to go to Ads » Overview and then click on By ad unit.
Next, you’ll have to Create new ad unit. You can choose from different ad types, such as display, in-feed, or in-article.
Display ads are the recommended choice and if you’re unsure which type to select, then go with display ads.
Next, you’ll need to give a name to your ad unit and select the ad size you prefer. There are different options like square, horizontal, or vertical.
And as for Ad Size, you can select Responsive or Fixed. We recommend that you choose Responsive as it will ensure that your ads work properly on any type of device.
Once you’re satisfied with your settings, click Create.
AdSense will then generate a code that you can then add to your WordPress website.
Now copy the ad code or save it somewhere safe.
Next, you’ll have to decide on a place where you’d want the ad to appear.
Advertisements are commonly displayed in the sidebars and other widget areas like your site’s footer. You can easily add the Google ad code to your site’s sidebars and other widget areas using the Custom HTML widget.
First, log into your WordPress site. Then, navigate to your Appearance » Widgets page from the dashboard. Next, drag and drop the Custom HTML widget to your selected widget area, like your Right Sidebar. Paste the Google AdSense code that you copied in the earlier step into the box. Don’t forget to click the Save button.
That’s it! Now you can visit your website’s front-end and check out how the ad looks.
We hope this article helped you to learn how to add Google AdSense ads to your WordPress site. You may also like to read our post on the most important Google Analytics metrics every business should track.