Support » Plugin: AMP for WP - Accelerated Mobile Pages » Custom JavaScript is not allowed

  • Resolved Kingsley Felix

    (@iamkingsleyf)


    Hello;

    I am having the following error Custom JavaScript is not allowed. on AMP pages.

    below is the code Google are marking bad

    <script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div> <amp-pixel src="https://pixel.wp.com/g.gif?v=ext&j=1%3A6.8.1&blog=137951207&post=13718&tz=1&srv=thegloor.com&host=thegloor.com&rand=RANDOM&ref=DOCUMENT_REFERRER"></amp-pixel> <script type="application/ld+json">{"@context":"http:\/\/schema.org","@type":"BlogPosting","mainEntityOfPage":"https:\/\/thegloor.com\/y-combinator-is-investing-in-nigerian-saving-startup-cowrywise\/","publisher":{"@type":"Organization","name":"Thegloor","logo":{"@type":"ImageObject","url":"https:\/\/thegloor.com\/wp-content\/uploads\/2017\/11\/TheGloor-favicon.png","height":"60","width":"600"}},"headline":"Y Combinator Is Investing In Nigerian Saving StartUp, CowryWise","datePublished":"2018-07-22T14:35:31+00:00","dateModified":"2018-07-22T14:35:31+00:00","author":{"@type":"Person","name":"Ini Laurence Inyang"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/thegloor.com\/wp-content\/uploads\/2018\/07\/CowryWise.png?fit=954%2C581&ssl=1","width":954,"height":581}}</script> <amp-analytics type="googleanalytics" id="analytics1"> <script type="application/json">{"vars":{"account":"UA-109157879-1","anonymizeIP":"set"},"triggers":{"trackPageview":{"on":"visible","request":"pageview"}}} </script> </amp-analytics> </body> </html>

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

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom JavaScript is not allowed’ is closed to new replies.