[Easy Steps]Where to place Adsense Code in your website(Wordpress&HTML)

optimisation du moteur de recherche
Apr
29

[Easy Steps]Where to place Adsense Code in your website(Wordpress&HTML)

04/29/2022 12:00 AM par Jim dans Adsense


Want to know where to place your adsense code on your blog to display ads?If Yes, stick around as GT SEO Tools has compiled a step by step guide on how you can do this without making any errors. But first,

What is Adsense?

Adsense is an advertising network owned by Google that links advertisers to publishers. Adsense works by displaying advertisements on publishers' sites targeting their audience and in turn the advertisers reach their desired audience. Adsense now charges the advertisers and then pays the publishers a portion of the revenue earned.

How do I make money using Adsense?

As a website owner you will earn money by displaying adsense ads on your website. The amount of money you earn depends on the type of ads you display and the geographical location of your audience. Some countries have audience that earn website owners more money than other countries. A term commonly used is Cost-per-Click(CPC) which is the amount charged by publishers to advertisers per each click on an ad. The higher the ZCPC of your target country the higher the adsense earnings. Here is a list of high CPC countries that you should target to make more money on adsense:

  1. United States
  2. Australia
  3. Canada
  4. Marshal islands
  5. United Kingdom
  6. Germany
  7. Switzerland
  8. Brazil
  9. New Zealand
  10. Italy

For more on high CPC countries and high CPC keywords checkout this post by minidea.com.

Now that you know how you can earn more on adsense ,lets show you how you can add your adsense code to your site to start displaying ads.

Where to place Adsense code

For Wordpress sites

If your website is powered by Wordpress, you can add your adsense code in two easy ways:

  • Using a plugin
  • Editing the header.php file using the theme editor.

1.Using a plugin

adsense code using a plugin

Use the following steps to add adsense code to your site:

  1. Install and activate the "Headers and Footers" plugin from the Plugins directory.
  2. Open Settings of the plugin
  3. Find the "header and footer scripts" and click.
  4. Add the code in the "Header" section.
  5. Click "Save Settings" or "Update" to save the code.

2.Editing the header.php file using theme editor

adsense code using themeeditor

Do the following if you want to manually add the adsense code to your website(Note: This is not a recommended method as you are editing your website files directly and you could mess up):

  1. Backup your website content before going to the next step.You can use the Updraftplus backup plugin to backup your data.
  2. Go to Appearance>Theme File Editor.
  3. Look for "Header.php" file on your right and click on it.
  4. Paste the adsense code between the <head></head> tags.
  5. The code should look like this:

<html>
<head>
This is the head of your page
<title>Example HTML page</title>
</head>
<body>
This is the body of your page.
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234567890123456" crossorigin="anonymous"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1234567890123456"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</body>
</html>

Word of advice: If you want to earn more on adsense , you need to ensure that your site's trafffic is mostly organic meaning alot of them come from search engines such as Google. To do this, you need to ensure your site's SEO is always high.

Here at GT SEO Tools we have over 50 free SEO Tools to help your site improve, check them out here. The free tools include Domain Authority checker to monitor your site's Domain Authority, Moz Rank checker to check your site's Moz rank among others.

Feel free to contact us if you have any queries.





Someone from Country Flag purchased !