Can Google Index JavaScript Rendered Links, Before Screenshots?

Can Google Index JavaScript Rendered Links, Before Screenshots?

A combination of 3 before screenshots showing the basic setup for a JavaScript SEO link test to prove Google indexes JavaScript rendered links.

Screenshot 1 is a Google “exact match” search (surrounded by “speech marks”) for a phrase with NO results on the Internet on January 30th 2020.

This text is used as standard body text as part of a JavaScript SEO Link Test.

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 with NO results on the Internet on January 30th 2020.

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 replaces the content of the element with a text link with highly unique anchor text.

So we have a webpage with a unique piece of body content like this:

<strong class="reptests">If Elephants Could Time Travel, Would They Own Google?</strong>

This is replaced by the JavaScript code with a text link with equally unique anchor text like this:

<strong class="reptests"><a href="https://s4scoding.com/" rel="noopener noreferrer" target="_blank" title="This is Unique and Added via JS">When the Mongoose Lands on the Moon will it be Another Google Hoax Hit?</a></strong>

Note: I can’t use the test phrase here, it will break the SEO test.

After Google indexes and ranks the new test webpage it’s a simple case of performing two “exact match” Google searches.

If I used the two example phrases above I’d search Google (include the “speech marks”) for:

“If Elephants Could Time Travel, Would They Own Google?”

and

“When the Mongoose Lands on the Moon will it be Another Google Hoax Hit?”

Since Google can index/rank JavaScript rendered content, the first “exact match” search phrase should have NO results and the second “exact match” search phrase should have at least ONE result, the test webpage should be the only result found on this website, the linked to URL might also be ranked due to the links anchor text: Google passes SEO ranking value via a links anchor text.

Screenshot 3 shows a small section of the test webpage showing the JavaScript rendered test text link with the JavaScript rendered anchor text etc…

Results are in, see the JavaScript Link SEO Test Results.

Continue Reading SEO JavaScript Links Tests