Frank Olivo

Frank Olivo is the founder of Sagapixel. He writes on a number of topics related to digital marketing, but focuses mostly on SEO.

[VIDEO] How to Fix “Custom JavaScript is Not Allowed” Error on AMP Pages

Table of Contents

Getting “Custom JavaScript Not Allowed” Errors in Google Search Console?

Do you have a website hosted on GoDaddy that is implementing Google Accelerated Mobile Pages? If you do, you want to watch this video.

GoDaddy is Injecting Javascript into Your Website

It came to our attention earlier this week that GoDaddy has been injecting a custom JavaScript into all the sites that it hosts.

This has been causing errors within Google Search Console for websites that are trying to implement AMP, or Accelerated Mobile Pages.

This project does not allow for custom JavaScripts to be running on AMP pages. This script that GoDaddy has injected into all of its sites is causing this error.

How to Fix this and Get Your AMP Pages Up

This video’s going to show you how to check to see if you have this problem and how to fix it. It really is an easy fix if you know what you’re looking for and where you need to go to make the changes. Let’s check it out.

The first place that you’re going to check whether you actually have this problem or not is going to be in your Google Search Console. If you log in, you go down to on the left-hand side where it says Enhancement, and click on AMP.

You’ll see if there are any pages. In this case, there were some problems here. We had a number of pages that were considered to have custom JavaScript that was not allowed.

What I had to do was log into GoDaddy. We go down to the hosting. I’m actually going to do it for this one right here. We’re going to click on Manage.

Right next to this button, we have these three little dots—we’re going to click on that. Click on Help Us, and we’re going to opt out.

You see, they’re super unclear about what this actually is. Basically what they’re doing is injecting some code onto your website. They’re basically hacking your website and collecting data there that they say they’re using to improve the performance of the servers.

This is usually harmless, unless you’re trying to implement AMP, because the script that they are injecting into your AMP pages is not allowed by the AMP project.

I hope that this was helpful. If you do find that we were able to help you out with this, just leave a little mention in the comments to know if we’re able to help you out.


Schedule a call with us