No doubt inserts Google AdSense code into the WordPress site is an easy task. Different plugins are available; in which we can insert Google AdSense code in WordPress.
But here we discussed how to insert Google AdSense code in WordPress manually. We won’t use any plugin to insert Google AdSense code in the WordPress header.
According to Google AdSense requirements, we have to insert code in the WordPress site header when applying for Google AdSense approval. After the approval, we also have to fix some errors such as “Earnings at risk Problem”.
Insert Google AdSense Code in WordPress site
Follow the instructions that are mentioned below then you will be able to successfully insert Google AdSense code in the WordPress site header:
- Copy the Google AdSense code
- Go into the dashboard of the WordPress site
- Click on “Appearance”
- Go into the “Theme Editor”
- Find the “Header.php”
- Paste the Google AdSense code in the head section.
Copy the Google AdSense code from the Google AdSense dashboard. Open the WordPress site dashboard and click on “Appearance” then go into the “Theme Editor”.
You have to find the “header.php” on the right side. You have to find the head section and paste the Google AdSense code. Make sure you inserted Google AdSense code between the head section.
Hope so your code successfully inserts but in some cases, Google bots have difficulty finding the code so you need to clear all caches as well as “delete cache and Minified CSS/JS”. For this purpose, install the “WP-Rocket” plugin.
If you don’t want to insert Google AdSense code manually then you can use WordPress Plugins. Go into the plugins and search “Insert header and footer”, the plugin will show. Just install and active it.
Open the “Insert header and footer” plugin and paste the Google AdSense code in the header section. Further, there are many plugins that allow you to add codes in the header and footer section so we recommend you use this plugin.
Insert Google AdSense code with the help of a Plugin is an easy task but we recommend you to use the manual method. Because plugins can affect website speed. Make sure you installed plugins that your site has really needs.