Skip to main content

Broken JS

JavaScript files which return a broken page status code such as 404 or 501

Priority: Critical

Impact: Negative

What issues it may causeโ€‹

Broken JavaScript files may result in errors in the website causing a poor user experience, and may affect the indexing of the page if the rendered content is not visible to Googlebot.

How do you fix itโ€‹

Update the JavaScript link to a working JavaScript URL or remove the link.

What is the positive impactโ€‹

Users will have an improved user-experience which can help to build brand recognition and increased click-through rates from search engine results pages.

How to fetch the data for this report templateโ€‹

You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query:

query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
url
foundAtUrl
level
httpStatusCode
disallowedPage
failedReason
js
fileExtension
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}

Try in explorer