Redirects in SERPs
Redirecting pages which had impressions in Google Organic SERPs.
Priority: Low
Impact: Negative
What issues it may cause
There could be a valid reason for setting up redirects for pages that are indexed by search engines, such as when migrating to new URLs or domain. If this is the case and the redirects are set up correctly these pages should be re-indexed and disappear from this report over time.
How do you fix it
Investigate these pages to check that they are redirecting to relevant pages and are using the correct HTTP status code.
Check if you used the correct HTTP status code for these redirects (e.g. 302 redirects are considered to be temporary, therefore it may take longer for Google to update these URLs in the index).
What is the positive impact
Setting up correct redirections when migrating a website or indivual pages is absolutely critical to preserve traffic and conversions that they drive.
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
- Variables
- cURL
query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
url
redirectChain
redirectedToUrl
foundAtUrl
searchConsoleTotalImpressions
searchConsoleTotalClicks
httpStatusCode
redirectedToStatusCode
isRedirectLoop
redirectCount
metaRedirect
indexable
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirecting_pages_in_serp"}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) { getCrawl(id: $crawlId) { reportsByCode( input: { reportTypeCodes: Basic reportTemplateCodes: [$reportTemplateCode] } ) { rows { nodes { ... on CrawlUrls { url redirectChain redirectedToUrl foundAtUrl searchConsoleTotalImpressions searchConsoleTotalClicks httpStatusCode redirectedToStatusCode isRedirectLoop redirectCount metaRedirect indexable foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirecting_pages_in_serp"}}' https://api.lumar.io/graphql