How to Properly Add Google AdSense to Your WordPress Site

On This Page,You can easily know about How To Properly Add Google AdSense to Your WordPress Site.

It allows you to automatically sell your website’s ad space to advertisers and get paid. AdSense is one of the best way to start making money online with your website. In this article, we’ll show you how to add Google AdSense in WordPress along with some best practices and tips to increase your earnings.

What is Google AdSense?

Google AdSense is an advertising network run by Google that allows bloggers and website owners an opportunity to earn money by showing text, image, video, and other interactive advertisement on their websites. These ads are targeted by site content and audience, so they’re highly relevant. Google AdSense is hassle-free because you don’t have to deal with advertisers or worry about collecting money. Google administers and maintains relationships with advertisers. They collect the payment, take their management fee, and send the rest of the money to you.

AdSense offers cost-per-click ads (CPC) which means that you earn money whenever a user clicks on the ad on your website. the amount received per click varies based on a variety of factors.

Getting Started with AdSense

First thing you need to do is check in for a Google AdSense account. If you have a Gmail account, then you’ll use your existing account to check in . Once you’ve submitted your application, you’ll need to wait for the Google AdSense team to review it. this may take a few hours to a few weeks for some publishers.

Once it’s approved, then you’ll log in to your AdSense account and get your ad code. this is the code that you need to place on your website to display ads.

1. Manually Place Google AdSense Ad Code in WordPress

You’ll start by clicking on the Ads menu in the left column and then switching to the ‘By ad unit’ tab. From here you need to click on ‘Create New Ad’.

You will be asked to choose an ad type. you’ll select from ‘Display ads’, ‘In-feed ads’, and ‘In-article ads’. If you’re unsure, then start with the display ads.
Next, you need to provide a name for this ad unit and select the ad size and type.

google adsense ad code

Next, click on the Create button to continue. AdSense will now generate the ad code for you. It contains the unique ad unit ID and your publisher ID. If your website has a Google AMP version, then you can also copy the code for your AMP pages.

Simply copy your ad code and paste it in a plain text editor like Notepad or TextEdit. You will need it in the next step.

Adding Google AdSense in WordPress

You need to determine where you want to show the ad on your website. Ads are most commonly displayed in the sidebar. you’ll add Google Adsense in your sidebar by using WordPress widgets.

Simply go to Appearance » Widgets page in your WordPress admin area. Next, drag & drop the ‘Custom HTML’ widget to the appropriate widget area and paste your Google AdSense code in there.

adsense in wordpress

2. Add Auto-Ads AdSense Code in WordPress

Adding individual ads to different areas of your website takes a lot of time. Most beginners struggle to find the best locations to display ads on their sites. To solve this, Google has introduced auto-ads. this allows you to easily add one code snippet to your site and let Google AdSense find out the highest paying location, ad-size, and type.

The disadvantage of this method is that you have less control over ad placement on your website. If you want to add use auto-ads feature, then this is how you’ll add Google AdSense to your website. First login to your Google AdSense account and click on the Ads tab. Next, you need to click on the Get Code button to generate the auto-ads code.

Auto-Ad code in WordPress

AdSense will now generate a code snippet with your publisher ID and show it on the screen. You can now copy and paste this code in a text editor.

Text editor in wordpress

Adding AdSense Auto-Ads Code in WordPress

The auto-ads code uses the single code snippet to generate ads everywhere on your WordPress website. this means you would like to add the code to all the pages where you want to display the ad. One way to do this is by adding the code in your WordPress theme’s header.php file. However, the disadvantage of this method is that your ad code will disappear if you update or change your theme.

The best way to add any site-wide code to your website is by using a plugin like Insert Headers and Footers. First, you need to install and activate the Insert Headers and Footers plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to the Settings » Insert Headers and Footers page. From here, you would like to paste your Google AdSense code in the header section.

insert heders and footers in adsense

Don’t forget to click on the ‘Save’ button to store your changes. The plugin will now add the ad code on all pages of your website. it may take Google AdSense sometime to start showing ads.

Tracking Your AdSense Banner Ads in Google Analytics

Using Google AdSense, you’ll make decent earnings without fixing much effort. So, a touch extra effort in improving the way you display ads can really boost your earning potential. Tracking the performance of your AdSense ads gives you comprehensive data on how your site’s visitors interact with your ads. Using this data, you’ll improve your ad strategies and increase your earnings. To properly track your Google AdSense ads, we recommend you use the MonsterInsights plugin.

MonsterInsights is the best and most beginner-friendly powerful Google Analytics plugin for WordPress available on the market. It comes with a powerful Ads Tracking addon to help you track the performance of your AdSense ads properly.

With MonsterInsights ads tracking, you’ll track click-through rates to see how many clicks each banner ad is receiving. Then, you’ll identify the most effective placements on your website. To be ready to track your AdSense ads, you’ll got to set up Google Analytics in WordPress using MonsterInsights. Then, you’ll need to install the Ads Tracking addon and enable Google AdSense tracking. to do that, go to Insights » Addon » Ads and click on Install.

monster insights addons in website

After installing and activating the addon, you can enable AdSense tracking by going to Insights » Settings » Publisher and then click on Enable Google Adsense tracking under Ads Tracking.

monster insights settings in website

For detailed instructions, check out our step-by-step guide on how to track AdSense in Google Analytics. After you’ve set up ads tracking in WordPress, you’ll view your AdSense performance reports in Google Analytics.

Leave a Reply