2 Simple Ways to Add Google Adsense Verification Code to WordPress

Option 1: The Simplest Way - using a Free Plugin

  1. Search for the Plugin: Insert Headers and Footers
  2. Add the Plugin and Activate
  3. Click Configure
  4. Add the Code into the Section called Header
  5. Click Save

Voila!

Option 2:

  1. Go to your WP Dashboard
  2. Click on Appearance to expose the Drop Down Menu
  3. Click on Editor
  4. Go to Theme Header - header.php
  5. Search for </head>
  6. Paste the code right after it
  7. Click update file

Note the slight twist?

Adsense said to Add the code after <head> and before </head>

This training specifies that you must add it after </head>

Go figure...

Don't forget to go back to your Adsense Page and Tick Done (I have added the code to my site).



Join the Discussion
Write something…
Recent messages
markr0675 Premium
Thanks Lauren, it's good to have the step by step. I'm not techie either.
Thanks
Reply
IlonaL Premium
Thank you Lauren! I also didn`t find any tutorial about that. So I am so happy that YOU wrote this tutorial here. I made that now and wait for google adsens replay...is it ready now or what? Hope everything went right :)
Reply
laurenjean Premium
HI Ilona, I am also still waiting for approval. We wait together. :)
Reply
Loes Premium
Why is it you overrule the request from Amazon? To place it behind the /head? Just curious
Reply
laurenjean Premium
Hi Loes, because when I did that it didn't work. Adsense didn't pick up that I had added the code.
Reply
Loes Premium
And beneath the head tag it did pick you up, thanks, nice to know
Reply
laurenjean Premium
Oops! Sorry Loes, I cannot verify that just yet. My sincere apologies, I have jumped the gun by adding this training before I could verify that these methods actually work. However, I am testing both methods. Option 1 on Inspiring Mompreneurs and Option 2 on Happy Human Pacifier, so should be able to confirm in 3 days.
Reply
DawnaL Premium
Great post, but I can't access editor on here. WA restricts me to do so and It's been over a week since AdSense has responded to me so I don't know if they are going to approve my site or not. How did you manage to access editor?
Reply
laurenjean Premium
Hi Dawn, the beauty of the plugin is there's no need to access editor at all. I found that method way simpler and less scary because you're not messing around with code.
I had no problem accessing the editor on my WA site. As far as I know, WA allows access to editor.
Perhaps the issue is your theme?
Have you asked Site Support to check why your editor is not working?
Reply
DawnaL Premium
Thanks for the quick reply! I just thought it was standard saying we are restricted to it because people can really mess up their site. I know a bit of HTML and have edited PHP files outside of WA so I would like access to editor. I will get in touch with support. Thanks!
Reply
MAstick Premium
Thank you for sharing
Reply
laurenjean Premium
Shoo, that was fast! Thanks for liking and commenting, Mark.
Reply
Top