Support » Plugin: Header and Footer Scripts » Adsense script not working

  • Resolved contactjtradio


    I created adsense account for my online radio station site. Google has sent me the adsense code. I installed this plugged and copied that codes exactly as such in header section. But i keep getting error code missing. Please help. What is wrong?

    <script async src=”//”></script>
    (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: “ca-xxx-xxxxxxxxxxxx”,
    enable_page_level_ads: true

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Anand Kumar


    I don’t think you need a plugin to add AdSense script. Just use a text widget or HTML widget for this purpose at desired location.

    Please elabaorate. I am new to this.. Google adsense informed that I need to add it in header. So i added a “header and footer script” plugin. then copied the code into the header section. Is this wrong way to do?

    Plugin Author Anand Kumar


    Yes. You need the plugin.

    I forget to check if it is page level ads. Make sure to clear cache from plugin WP Fastest Cache and also browser cache. In less a likely situation Cloudflare might be caching the webpage.

    I hope it will start working by simply clearing plugin cache. Let me know for further help.

    Perfect Anandkumar.. It worked… Thanks a ton…

    Hello i need a help. From last month my ads were showing properly and now all of sudden its not showing ads. Recently i have installed e plugin. W3 total cache, get social and smush. I think it was due to w3 total cache. I deleted this plugin but still my ads are not showing. Please help.

    Plugin Author Anand Kumar


    Hello @thesailingsoul you should create a new topic for new issue or different question. I will try to resolve your issue if a new topic is created.

    @anand_kumar I need help adding the AdSense tag to mine, too. I’ve tried the header plugin, the CSS editor, and a CSS plugin. Not sure what to do. I’ve watched a ton of youtube videos as well as articles and nothing appears to be working.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.