Site logo

Archived topic

Google adsense verification code

3 replies · Started by Ruchik on March 26, 2019

Viewing posts 1–4 of 4

<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

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.

Hey David, Thanks for the advice.

I will correct it.

You're welcome

This archived topic is closed to new replies.