How To Fix Error When Pasting Google AdSense Verification Code On Blogger HTML.

Back in the days when pasting AdSense verification code was easier whereby you'd just copy the code right from AdSense site direct to the head tag of your blogger HTML cool right but this days there is a little error in the code whereby you have to change some things for it to work without showing error.

Most bloggers or will I say newbie bloggers don't really have this idea and I have been getting a lot of messages concerning this, so I decided to drop a post on the pasting the AdSense verification code properly without resulting into an error .

Please I have to state here that you follow this guide properly because you could tweak it anyhow and loose the identification of your site.

Steps On How To Properly Place Google AdSense Verification Code On Blogger's HTML.
Copy the AdSense verification code which would look like this

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-123456789",
enable_page_level_ads: true
});
</script>

• Change the async toasync='async' 

<script async='async' src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-123456789",
enable_page_level_ads: true
});
</script>


• Save theme and you won't get an error message.

With this bloggers can now successful place AdSense verification code without error message and don't forget the code should be added to the<html>
<head> your blogger HTML

Credits:contechsblog




No comments:

Powered by Blogger.