Title: AMP Custom JavaScript is not allowed
Last modified: September 14, 2019

---

# AMP Custom JavaScript is not allowed

 *  Resolved [rossbeechphotography](https://wordpress.org/support/users/rossbeechphotography/)
 * (@rossbeechphotography)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed/)
 * hi, I have errors on my amp page that I cant seem to fix.
 * Custom JavaScript is not allowed
 * it is affecting my pages not being found on google so I was wondering if anyone
   can help.
 * here is the error
 * <script>(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){(
   i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,
   m)})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);
   ga(‘create’, ‘UA-88565102-1’); ga(‘send’, ‘pageview’); </script>
 * any help would be brilliant. I’m using elementor so not sure how to delete the
   error

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed/#post-11932385)
 * Please share the URL of the AMP page in question.
 * Which mode are you using? Standard, Transitional, or Reader?
 *  Thread Starter [rossbeechphotography](https://wordpress.org/support/users/rossbeechphotography/)
 * (@rossbeechphotography)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed/#post-11932428)
 * Hi there here is one of the pages that has the error I have the same error on
   six pages
 * [https://www.rossbeechphotography.co.uk/](https://www.rossbeechphotography.co.uk/)
 * Many thanks
 * Ross
 *  Thread Starter [rossbeechphotography](https://wordpress.org/support/users/rossbeechphotography/)
 * (@rossbeechphotography)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed/#post-11932577)
 * As for the reader I’m not sure what you mean. I have found the errors on my search
   console
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed/#post-11937650)
 * [@rossbeechphotography](https://wordpress.org/support/users/rossbeechphotography/)
   You are using a different AMP plugin, this is the incorrect support forum. And
   the error on your site relates to custom JavaScript, which is not support in 
   AMP (without using the amp-script component). This error could be coming from
   an additional plugin you have active.
 * You can raise a support topic in your active plugins [support forum](https://wordpress.org/support/plugin/accelerated-mobile-pages/).

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

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

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [amp error](https://wordpress.org/support/topic-tag/amp-error/)

 * 4 replies
 * 3 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed/#post-11937650)
 * Status: resolved