Mobile app version of vmapp.org
Login or Join
Courtney195

: Can Googlebot see pagination meta tags created with JavaScript? I would like to render meta pagination links (<link rel="prev"../> <link rel="next"../>) with JavaScript. As Google Search

@Courtney195

Posted in: #Googlebot #Javascript #Pagination #Rel

I would like to render meta pagination links (<link rel="prev"../> <link rel="next"../>) with JavaScript.

As Google Search Console does not show rendered meta data is there any other way to check if Google bot sees those links or not?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

Google can probably interpret these tags correctly when they are set by JavaScript. In 2014 Google announced that it executes JavaScript before indexing pages.

I don't know a good way of testing these tags specifically, however I've seen some testing that indicates Googlebot pays attention to other meta tags when inserted dynamically by JavaScript.

We Tested How Googlebot Crawls Javascript And Here’s What We Learned


We dynamically inserted in the DOM various tags that are critical for SEO:


Title elements
Meta descriptions
Meta robots
Canonical tags


Result: In all cases the tags were crawled respected, behaving exactly as HTML elements in source code should.


Dynamically Added Meta Data Indexed By Google Crawlers


The Meta Description in the SERP result above has been injected with Google Tag Manager. So it IS true:

Google’s crawlers index dynamically injected meta data as well.


I don't see any reason that Googlebot would treat link meta elements for pagination any differently than other dynamically generated meta elements that have been tested.

10% popularity Vote Up Vote Down


 

@Sarah324

Your question confuse me.


Can Googlebot see pagination meta tags created with JavaScript?


Google is pretty smart to execute Javascript from a long time. The best way to know is, test the specific webpage like example.com/article.html?p=2 to fetch and render tools and click on fetch option (by clicking on complete option), then see the source code and see how Googlebot view your content. If there is pagination meta tags then it means Google executing your javascript very well.

Checkout source code of how Googlebot view your page.




Is there any other way to check if Google bot sees those links or not?


If you mean by rel or next links, then Go to Search apperence and see HTML improvement option. Google will return duplicate error when two URL display same title for example,
example.com/page1/ - Hell World - My domain name example.com/page2/ - Hello World - My domain name


So if you have implement pagination correctly then Google will not display the duplicate title error, because pagination pages always have same title across all the pages like
example.com/article.html?p=1 - Hell World - My domain name example.com/article.html?p=2 - Hell World - My domain name

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme