[Support request] Google adsense verification code

Home Forums Support [Support request] Google adsense verification code

Home Forums Support Google adsense verification code

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #850992
    Ruchik

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: “cx-pub-0xxxxxxxx”,
    enable_page_level_ads: true
    });
    </script>

    Hell,i want to verify my site for google adsense.

    I have used hook element and add code inside the Header section of the site.

    Please see the screenshot – https://www.screencast.com/t/wLqGIcaCXtmH

    Have I done this correctly?Do I need to make any change for the verification process?

    Thank you

    #851126
    David
    Staff
    Customer Support

    Hi there,

    the Hook Element is the correct place, but use the WP_Head hook instead of the Header. And make sure you have set the Display Rules in the Element.

    #851133
    Ruchik

    Hey David, Thanks for the advice.

    I will correct it.

    #851150
    David
    Staff
    Customer Support

    You’re welcome

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