Search code examples
seogoogle-searchgoogle-search-console

Why does Live Test in Google Search Console return content that is not viewable in the browser?


According to Google Search Console Live Test on https://www.energycouncil.com.au/ returns text that does not exist on the viewable website.

enter image description here

enter image description here

Why is completely different source returned when using the Google Search Console with a Live Test?


Solution

  • I worked it out.

    Code had been injected into a source code file that redirects the site if it is a website indexer. Ingeniously, this code did not do anything for over a year so I didn't see the issue as no files appeared to be recently modified.

    To find the issue, download the live site and search it for "redirect"