A combination of 2 after screenshots showing the results for a JavaScript SEO link test to prove Google indexes JavaScript rendered links. See the before screenshots for this JavaScript SEO link test.
Screenshot 1 is a Google “exact match” search (surrounded by “speech marks”) for a phrase with still NO results on the Internet on January 31st 2020.
This text is used as standard body text as part of a JavaScript SEO Link Test, the screenshot was taken AFTER Google had spidered/indexed the JavaScript test webpage.
If Googlebot indexed the body text which Googlebot can ‘see’ via the HTML source code, this Google search would have found it. Google chose NOT to index/rank this body text which was changed (hidden) using JavaScript.
The first phrase can be seen by visiting the JavaScript SEO Test Webpage in a browser like Google Chrome and Viewing HTML Source Code (“Right Click” > “View Source”).
Search the HTML source code for “Assuming you have JavaScript enabled” and you’ll find the test phrase just before that text. You can also see the test phrase within the screenshot above (screenshot 1).
Note: I can’t use the test phrase here, it will break the SEO test.
Screenshot 2 is a Google “exact match” search (surrounded by “speech marks”) for a phrase which had NO results on the Internet on January 30th 2020 (before the SEO test went live), but after Google spidered/indexed the new SEO test webpage on January 31st 2020 there’s a positive result. The JavaScript SEO test webpage is ranked number ONE for the test phrase which was added as anchor text as part of a text link via a JavaScript js file.
This text is only found inside a JavaScript file at https://seo-gold.com/inlinks-js.js, this js file is loaded on the JavaScript SEO Test Webpage using this code:
<script src="https://seo-gold.com/inlinks-js.js"></script>
The above JavaScript file searches through the JavaScript SEO Test Webpages HTML source code for the class reptests, when an element with the reptests class is found the JavaScript code replaces the content of the element with a text link with highly unique anchor text.
Note: I can’t use the test phrase here, it will break the SEO test.
Google indexed the replacement phrase added as anchor text using JavaScript and the page ranks for that obscure phrase. This is clear proof Google indexes AND ranks text links generated using JavaScript code within an external js file.
Continue Reading SEO JavaScript Links Tests