Title: AMP header scripts not getting inserted
Last modified: May 6, 2022

---

# AMP header scripts not getting inserted

 *  Resolved [newbiedev](https://wordpress.org/support/users/newbiedev/)
 * (@newbiedev)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/amp-header-scripts-not-getting-inserted/)
 * Hi,
    I’m trying to incorporate a couple of header scripts on AMP pages for my
   website. I’ve followed the details mention on [https://adinserter.pro/documentation/amp-pages](https://adinserter.pro/documentation/amp-pages)
   for inserting the header scripts for AMP pages.
 * But it seems, the script is not getting inserted. Please see this image for the
   current header settings of the plugin: [https://ibb.co/WFtrqv3](https://ibb.co/WFtrqv3)
 * Please help as to how can I solve this issue, as I’m not able to insert scripts
   from my adnetwork on AMP pages.
 * For reference, I’m using “Reader mode” with “AMP Legacy” theme on AMP plugin.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-header-scripts-not-getting-inserted%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/amp-header-scripts-not-getting-inserted/#post-15623049)
 * Hello,
 * Ad Inserter inserts the codes as configured.
    Howerver, the AMP plugin may strip
   some code. Maybe the code can’t be inserted because of limitations of AMP pages:
   [https://amp-wp.org/documentation/how-the-plugin-works/amp-and-css/](https://amp-wp.org/documentation/how-the-plugin-works/amp-and-css/)
 * Remote debugging doesn’t seem to be enabled so I can’t check.
 *  Thread Starter [newbiedev](https://wordpress.org/support/users/newbiedev/)
 * (@newbiedev)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/amp-header-scripts-not-getting-inserted/#post-15623113)
 * If I enable remote debugging, would my existing Ads would break?
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/amp-header-scripts-not-getting-inserted/#post-15623137)
 * No.
    [https://wordpress.org/support/topic/ad-inserter-support-forum-before-you-ask-for-help/](https://wordpress.org/support/topic/ad-inserter-support-forum-before-you-ask-for-help/)
 * [https://adinserter.pro/documentation/debugging](https://adinserter.pro/documentation/debugging)

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

The topic ‘AMP header scripts not getting inserted’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/amp-header-scripts-not-getting-inserted/#post-15623137)
 * Status: resolved