Title: Custom JavaScript is not allowed.
Last modified: December 16, 2021

---

# Custom JavaScript is not allowed.

 *  Resolved [userpankaj](https://wordpress.org/support/users/userpankaj/)
 * (@userpankaj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/)
 * Hey,
 * Recently, I installed the Google Web stories plugin in my blog and created one
   story also which is indexed now. Today I got an error in Google Search Console
   telling me “Custom JavaScript is not allowed.” in the AMP section.
 * Please let me know how can I solve this issue?
 * Waiting for the answer.
    Thanks & Regards.

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

 *  [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * (@mxbclang)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15171033)
 * Hi [@userpankaj](https://wordpress.org/support/users/userpankaj/), happy to help
   here.
 * To help us troubleshoot, can you please share the URL of the Web Story that is
   affected by this error as well as your [Site Health information](https://i.imgur.com/Rtkmsba.png)
   privately [via this form](https://forms.gle/Vzr9yBHiEMzfBN1j8)?
 * Thank you!
 *  Thread Starter [userpankaj](https://wordpress.org/support/users/userpankaj/)
 * (@userpankaj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15171056)
 * I am unable to share the particular story link. Here is the link of the page 
   which i created for stories [link](https://celebzbiography.com/web-stories/)
 *  [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * (@mxbclang)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15171096)
 * Thank you! I see the same error that you do, and in the code there is a `data-
   minify` parameter added to the `<script>` tag, which is causing this error. This
   typically occurs when you are using a plugin that is minifying your site’s JavaScript.
 * If you can share your [Site Health information](https://i.imgur.com/Rtkmsba.png)
   using [this form](https://forms.gle/Vzr9yBHiEMzfBN1j8), I can help you identify
   which plugin could be causing this and provide instructions on how to fix. Thanks!
 *  Thread Starter [userpankaj](https://wordpress.org/support/users/userpankaj/)
 * (@userpankaj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15172749)
 * Hey,
 * I have filled the form that you have given above with all the necessary information.
 *  [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15172802)
 * [@userpankaj](https://wordpress.org/support/users/userpankaj/) thank you providing
   the Site Health that’s very helpful. I can see that you are using WP Rocket which
   does have the ability to minify JavaScript files.
 * To check this could you go to **Settings > WP Rocket > File Optimization** and
   check if the ‘Minify JavaScript files’ option is switched on. If it is could 
   you try switching this off and check once more to see if you get the error.
 *  Thread Starter [userpankaj](https://wordpress.org/support/users/userpankaj/)
 * (@userpankaj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15173018)
 * Sure, I will check it and will update you soon.
 *  [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * (@mxbclang)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15174901)
 * Sounds good! Let us know what you find.
 *  [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * (@mxbclang)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15197961)
 * [@userpankaj](https://wordpress.org/support/users/userpankaj/) Checking in here–
   were you able to get this addressed by updating your WP Rocket settings? Thanks!
 *  Thread Starter [userpankaj](https://wordpress.org/support/users/userpankaj/)
 * (@userpankaj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15198658)
 * Hey
 * Sorry, i forgot to tell you.Yes, my problem is solved now. Thanks for the support.
 *  [jerrytomar](https://wordpress.org/support/users/jerrytomar/)
 * (@jerrytomar)
 * [4 years ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15648478)
 * how to solve this error please help me
 *  [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [4 years ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15648497)
 * [@jerrytomar](https://wordpress.org/support/users/jerrytomar/) please could you
   open a new topic where we can assist you with your request individually.
 *  [jerrytomar](https://wordpress.org/support/users/jerrytomar/)
 * (@jerrytomar)
 * [4 years ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15651430)
 * Today I got an error in Google Search Console telling me “Custom JavaScript is
   not allowed.” but why
 *  [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [4 years ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15651876)
 * [@jerrytomar](https://wordpress.org/support/users/jerrytomar/) please as stated
   above open a new topic where we can assist you with your request individually.
   We cannot assist you without your own topic.

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

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

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

## Tags

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

 * 13 replies
 * 4 participants
 * Last reply from: [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-19/#post-15651876)
 * Status: resolved