queue  5
support
Results 1 to 2 of 2

Thread: Connect my webpage with Google AdSense

  1. #1

    Connect my webpage with Google AdSense

    Hi,

    I would like to connect my website to Google AdSense to show ads on my website.

    The Google instructions say I should copy this code and place it between the <head> and </head> tags. But where do I find these tags in my theme? Is it in the Custom CSS or Custom JS field or somewhere else?

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

  2. #2
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    1,918
    Hi, Those instructions are for HTML websites. For a WordPress site you'll need to find a plugin to help you with this. You could try to open the header.php and paste your code in there, but that may not work properly. You're best to look for a plugin, of which there are many I'm sure.