Tagged: google adsense, header
Hi
I would like to connect google adsense with my site and I think I add it to the theme header php file? The code is
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: “xxxxxxxxxxxxx”,
enable_page_level_ads: true
});
</script>
Is there any where in particular I should add it to the file please.
Thanks
Hi Please could someone respond thanks
okay I have solved it I think I have used a plugin called insert header and footer and added the script to the header box.
Hi!
Glad you figured it out!
You can also refer to this post – http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/ and add a widget area to your header and display your ads there
Let us know if you have any other questions or issues!
Cheers!
Yigit