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 GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlUrls(after: $after, reportType: Basic) {
nodes {
url
redirectChain
redirectedToUrl
foundAtUrl
searchConsoleTotalImpressions
searchConsoleTotalClicks
httpStatusCode
redirectedToStatusCode
isRedirectLoop
redirectCount
metaRedirect
indexable
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}
{"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 GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlUrls(after: $after, reportType: Basic) { nodes { url redirectChain redirectedToUrl foundAtUrl searchConsoleTotalImpressions searchConsoleTotalClicks httpStatusCode redirectedToStatusCode isRedirectLoop redirectCount metaRedirect indexable foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } totalCount pageInfo { endCursor hasNextPage } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirecting_pages_in_serp"}}' https://api.lumar.io/graphql