• Resolved snoringdragon

    (@snoringdragon)


    Hello,
    As you already know Adsense give you a code to insert into head tag when applying for adsense. My site is using WordPress CMS. I tried using two plugins to do it, Header And Footer Insert Plugin and then Advanced Ads.

    In case of Header And Footer Insert Plugin, you need to manually put the code.

    I pasted the code into the plugin which Adsense gave.

    ​<script data-ad-client=”ca-pub-*************” async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>

    However, when I checked the code through the inspect option of chrome browser, it has addition text into it. It looked like

    ​<script data-ad-client=”ca-pub–*************” ” async=”” src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js” data-checked-head=”true”></script>

    As you see data-checked-head=”true is additional in the code.

    I also tried Advanced Ads plugin, it’s also showing same. Is it normal?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support schmidt25

    (@schmidt25)

    Hi snoringdragon,

    Thanks for reaching out.

    How did you integrate the code with Advanced Ads?

    I recommend connecting your installation with your AdSense account (Advanced Ads > Settings > AdSense) and enabling the auto ads and verification code checkbox on this page.

    Best regards,
    Joachim

    Thread Starter snoringdragon

    (@snoringdragon)

    I followed same process as you mentioned.

    Plugin Support schmidt25

    (@schmidt25)

    Hi,

    I checked your source code.

    The auto ads/verification code looks fine:

    <script data-ad-client="ca-pub-yourID-" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">

    Best regards,
    Joachim

    Thread Starter snoringdragon

    (@snoringdragon)

    It isn’t showing like

    <script data-ad-client=”ca-pub-yourID-” async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”&gt;

    but

    ​<script data-ad-client=”ca-pub–ca-pub-yourID” async=”” src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js” data-checked-head=”true”></script>

    I just checked again.
    Verified it from two browsers too.

    Plugin Support schmidt25

    (@schmidt25)

    Hi,

    This additional code only appears in the browser code, not in the source code.

    Apparently, AdSense rewrites the code dynamically when loading. This should not be a problem.

    Best regards,
    Joachim

    Thread Starter snoringdragon

    (@snoringdragon)

    Thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adsense code is not properly adding to the head tag.’ is closed to new replies.