Title: Custom JavaScript is not allowed
Last modified: July 6, 2019

---

# Custom JavaScript is not allowed

 *  Resolved [jconnor](https://wordpress.org/support/users/jconnor/)
 * (@jconnor)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-9/)
 * Hello, I would like to get help relatively, to the following error that appears
   in the Google search console “Smartphone Tracking Engine (AMP)”:
 * Custom JavaScript is not allowed
 * At the moment I have 75 pages with this error!
 * Thank you very much
 * Rui
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-javascript-is-not-allowed-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-9/#post-11716813)
 * It is caused by your Ad plugin which isn’t compatible with AMP.
 * Can you tell me which AD plugin are you using?
 *  Thread Starter [jconnor](https://wordpress.org/support/users/jconnor/)
 * (@jconnor)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-9/#post-11718405)
 * Thank you so much for your answer!
    The plugin that ads I’m using is the, Ad 
   Inserter.
 * Thank you
    -  This reply was modified 6 years, 11 months ago by [jconnor](https://wordpress.org/support/users/jconnor/).
 *  [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-9/#post-11719059)
 * Hello [@jconnor](https://wordpress.org/support/users/jconnor/),
 * I’m the author of Ad Inserter and noticed this thread.
 * Ad Inserter supports ads on AMP pages:
    [https://adinserter.pro/documentation/amp-pages](https://adinserter.pro/documentation/amp-pages)
 * Of course, you need to use code for AMP ads as standard Javascript ads can’t 
   be used on AMP pages.
    For AdeSense you can use built in code generator to get
   code for AMP ads: [https://adinserter.pro/documentation/adsense-ads#amp](https://adinserter.pro/documentation/adsense-ads#amp)
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-9/#post-11721202)
 * Thank you for helping us Spacetime.
 * jconnor, was your issue resolved?
 *  Thread Starter [jconnor](https://wordpress.org/support/users/jconnor/)
 * (@jconnor)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-9/#post-11721875)
 * Yes, that’s okay!
    According to Google Search Console the error was validated.
 * I would like to thank **Ahmedkaludi** and **Spacetime** for their help and the
   excellent work they have done in creating such fantastic plugins.

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

The topic ‘Custom JavaScript is not allowed’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [jconnor](https://wordpress.org/support/users/jconnor/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-9/#post-11721875)
 * Status: resolved