Support » Plugin: Ad Inserter - Ad Manager & AdSense Ads » The tag ‘amp-sticky-ad extension .js script’ appears more than once

  • Resolved kapson

    (@kapson)


    Dear Team,

    After a recent update I got this message today from google search console: “The tag ‘amp-sticky-ad extension .js script’ appears more than once in the document.” and “The tag ‘amp-auto-ads extension .js script’ appears more than once in the document.”

    I have done my setup according to this guide: https://adinserter.pro/documentation/adsense-ads#amp

    I am using “Amp auto ads” and “Amp sticky ads” through “Ad Inserter”

    Since long this setting was working fine, but don’t know how it’s getting error now.

    Kindly guide how to solve this.

    Thank you
    Best Regards
    Kapil

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Spacetime

    (@spacetime)

    Dear Team,

    I enabled remote debugging and disabled the catch plugin.

    Kindly check.

    Thank you
    Regards
    Kapil

    Plugin Author Spacetime

    (@spacetime)

    This is what you have configured for header:

    <script data-ad-client="ca-pub-3316995672032336" async src= "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"> </script>
     [ADINSERTER AMP]
     <script async custom-element="amp-auto-ads" src= "https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"></script>
    <script async custom-element="amp-sticky-ad" src= "https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"></script>

    So Ad Inserter inserts two scripts in the header on AMP pages.

    Yes,

    I use two scripts total for AMP, one for “Auto ad” and one for “sticky ad”.

    But you can see there are a total of four scripts in the header of the source. : view-source:https://www.quotespedia.org/amp/

    two scripts for “Auto ads” and two for “Sticky ads” … both the scripts generate duplicate script.

    Did I do some wrong settings?

    Kindly guide.

    Thanks
    Best Regards
    Kapil

    • This reply was modified 5 days, 22 hours ago by kapson.

    Hi,

    I solved this. Needed to remove the script from “Ad Inserter” header, due to “AMP for WP” plugin was also generating auto scripts.

    Thank you
    Regards
    Kapil

    Plugin Author Spacetime

    (@spacetime)

    Great, thank you.

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