Enter your search term

Search by title or post keyword

How to Add Google Adsense to WordPress

Our website is supported by our users. We sometimes earn affiliate links when you click through the affiliate links on our website

Contact us for Questions

If you own a WordPress website and want to earn while your sleep, Google Adsense is the easiest way to monetize a blog.

How?

Create a Google Adsense account, add Google Adsense to WordPress, create and insert ad units on your website, and viola, your passive income stream is ready to flow.

Google Adsense is the most common ad network on the internet.

The platform allows you to display targeted ads to your website visitors and get paid.

Don’t worry if you are new to this.

By the end of this tutorial, you’ll have the first display ad running on your website.

Frequently Asked Questions

Can You Add Google Adsense to WordPress for Free?

Yes. Adding Google Adsense to WordPress is free.

You only pay when you hire someone to do it.

But if you can follow the step-by-step instructions in this tutorial, you will add Google Adsense to your WordPress Website for free in a few minutes.

Where Do I Paste Adsense Code In WordPress?

You can paste Adsense code anywhere on your WordPress blog.

It all depends on where you want it.

For best results, place your Adsense code in prominent parts of your website.

The only forbidden place is in a floating widget, as that’s against Google Adsense Terms of service.

Other than that, anywhere goes.

What You’ll Need to  Add Google Adsense to WordPress

  • A Google Account: Before you can create adsense account, you need to first set up a Google account. Creating a gmail account gives you access to all Google services.
  • A Google Adsense Account: You’ll also need to set up a Google Adsense account. You’ll learn that in the next section of this tutorial.
  • WordPress Admin Access: You can only effect changes on a WordPress website with an Admin or Super Admin role. So you’ll need access to the WordPress Admin Dashboard.
  • Chrome Web Browser (optional): Chrome is the best web browser out there. It’s what we use for this tutorial. Nonetheless, you can use any secure web browser.

How to Add Google Adsense to WordPress Step-by-Step

  • Step 1: Create a Google Adsense account.
  • Step 2: Connect Your Google Adsense Account to WordPress
  • Step 3: Add Google Adsense Codes Snippets to WordPress
  • Step 4: Create Your First Adsense Ad Unit
  • Step 5: Add Your Ad Unit Code to WordPress
  • Step 6: Add Adsense Auto-Ad Codes to WordPress

Step 1: Create a Google Adsense account

To add Google Adsense to WordPress, you need to first set up your Google Adsense account and wait for your application to be approved.

This may take some days.

Before you apply, make sure you have some quality content on your website and see that your website is already getting a bit of traffic.

This will boost your application and fast-track the approval process.

Follow these steps to set up your Adsense account:

On your Chrome browser, go to the Google Adsense website and click on Get Started.

Untitled 79

If you already have a google account, your account details will appear.

So you can sign up with the account.

Otherwise, click on Use another account to create a new Google account.

Untitled 83

Once you are signed in, input your website URL and select your payment country.

Untitled 85

Scroll down to accept Google Adsense Online Terms of Service, then Click the Start using Adsense button to continue.

Untitled 87

On your Google Adsense Account Home, click Enter Information under Payment.

Untitled 88

A customer information window will appear.

Select your Account type (personal or business) and input all other necessary information.

Next, click Submit at the bottom of the page.

Untitled 89

Now you are done setting up your Google Adsense account.

The next step is to connect your Google Adsense account to your website.

Step 2: Connect Your Google Adsense Account to WordPress

On your Adsense account dashboard, select Sites on the left panel, then click on the Add site button at the top right.

Untitled 21

Enter your website URL and click on the Save and continue button.

Untitled 25

On the next page, you will see the Adsense Code Snippet to connect your site to Adsense.

Copy and save the code in your notepad.

Untitled 28

Important: You have to add the Google Adsense code to your website before clicking the Request review button.

So leave the tab open and proceed to add Adsense code to your WordPress website.

In the above page, Google tells you to place the code on every page you want to show ads.

That’s a lot of work if you will be doing it one by one, especially if your website already has hundreds of pages.

But don’t worry.

The two methods explained below will automatically add the Adsense code to all the pages on your website.

Step 3: Add Google Adsense Codes Snippets to WordPress.

There are two ways to add Google Adsense Code to WordPress.

  • Method 1: Add Google Adsense Code to WordPress Manually
  • Method 2: Use a Plugin to Add Google Adsense Code WordPress

We’ll walk you through each of these methods.

Method 1: Add Google Adsense Code to WordPress Manually

Log in to your WordPress admin dashboard.

Go to Appearance and select Theme File Editor from the menu.

Untitled 31

A Heads up dialogue will appear.

Click I understand to continue.

Untitled 35

Under Theme Files, locate and select the Theme Header (or header.php).

Untitled 38

Next, locate the opening <head> tag, paste your Adsense code under it and click Update File to save the changes.

Untitled 42

Now go back to your Adsense page and click the Request review button.

Untitled 46

That’s it.

You have just added Google Adsense code to WordPress.

The only downside to this method is that you’ll have to repeat the process every time you update your WordPress theme.

You can avoid it altogether by using a plugin.

Method 2: Use a Plugin to Add Google Adsense code to WordPress Step by step

Any header and footer plugin will allow you to paste your Google Adsense code into WordPress.

For this tutorial, we’ll be using the Head, Footer and Post Injection plugin.

Install the plugin and follow these steps after activating the plugin:

Open your WordPress admin dashboard, hover over Settings on the left pane, and select Header and Footer.

Untitled 49

Next, Paste your Adsense code in the field with the title <HEAD> PAGE SECTION INJECTION ON EVERY PAGE

Untitled 52

Scroll to the bottom to click the Save button.

Then, return to the Adsense window and click Request review.

You will see a notification with a confirmation message that your code was found.

Click Got it.

Your account is now under review.

Untitled 55

If your application is rejected, the content of the email will highlight the reasons.

Make adjustments and reapply.

Step 4: Create Your First Adsense Ad Unit

Once your account is approved, Google will not automatically show ads on your site unless you create ad units and place them on your site.

You can create as many ad units to display in different parts of your website.

Here’s how:

Open your Adsense dashboard and select Ads from the left panel.

On the ads page, switch to the By ad unit tab, and select Display ads from the options.

Untitled 58

Next, name your ad unit.

Select size and type, then click on the Create button.

Untitled 61

Your ad will be created.

Now copy your ad code and save it in a notepad.

You’ll need it in the next step.

You need to place this code where you want the ad to appear on your website.

4 6
Step 5: Add Your Ad Unit Code to WordPress

You have to determine where you want an ad to appear on your website.

For this tutorial, we’ll add Google Adsense to WordPress sidebar using the sidebar widget.

Log in to your WordPress Admin Dashboard, go to Appearance and select Widgets from the options.

Untitled 66

On the Widget page, select the sidebar position you want to insert the ad, click the + icon and select Custom HTML.

Untitled 69

Next, paste the ad unit code you copied from Google Adsense into the Write HTML field.

Then click the Update button at the top.

Untitled 72

Wait for a few minutes and check your website to see if the ad has appeared.

It might take up to a few hours.

That’s all.

Your first display ad is running.

You can use the same steps to create more ad units and place them where you want on your website.

When starting out, you may not want to go through the manual process of adding ads to different areas of your site.

That’s where Adsense auto ads come to play.

With Adsense auto-ad, Google automatically finds all the best placements to display ads on your website.

Setting up auto ads is very simple.

Step 6: Add Adsense Auto-Ad Codes to WordPress

Log in to your Adsense Account.

Click on Ads on the left pane.

Select Get code and wait for Google to generate your auto-ads code.

Untitled 74

Once the code is generated, copy and save it in your notepad.

Untitled 76

To add auto-ads code to your website, use the same method as above to place the code snippet to your Theme header or header.php file.

Alternatively, you can use a header and footer plugin.

The steps are the same.

Once done, this single code will auto-display ads on every page of your website.

More Helpful WordPress Tutorials

Wrapping up

That’s all.

Adsense is up and running on your WordPress website.

You make money every time someone clicks the ads on your website.

You can also check out Adsense alternatives to maximize your earning potentials.

You may need to play around with ad placements and formats until you find locations that work best for your site.

Once you identify them, you can maximize your earning potential.

Keep earning!

Drop us a line in the comments section if you find this tutorial helpful.  

Leave a Comment