• Resolved wn nj

    (@waseemnaikgmailcom)


    Hello, long time user of your plugin; thanks

    I have added AMP and using Twenty Twenty theme;

    1. I a getting following error from AMP:

    Error code
    DISALLOWED_TAG
    Invalid markup
    <script>
    Element name
    script
    Parent element
    head
    Text content

    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
    new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
    https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,’script’,’dataLayer’,’GTM-WLC5B79′);

    Sources
    #1 Type: Plugin
    Name: Head, Footer and Post Injections (header-footer)
    Function: hefo_wp_head_post()
    Action: wp_head (priority 11)
    Location: plugin.php:158

    2. I have copied the code for Google Tags from Header section to AMP section of your H&F and I my Google Tags are not being acknowledged by Google Tags Assistant.

    Kindly advise.

    TIA

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wn nj

    (@waseemnaikgmailcom)

    does the developer reply to this group?

    thanks

    Thread Starter wn nj

    (@waseemnaikgmailcom)

    does anyone monitor or respond to this support?

    TIA

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, you cannot add generic javascript in your AMP pages, only allowed code is specialized javascript. That is not a problem of the plugin but a problem of the code you added to the AMP injection section.

    Stefano.

    Thread Starter wn nj

    (@waseemnaikgmailcom)

    understood

    learning the crazy world of amp;

    I have uninstalled your plugin because it seems everything is now under control of amp and amp compliant plugins / scripts;

    thanks for your help;

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘H&F with AMP’ is closed to new replies.