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?
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.
Sign up to join this communityGoogle 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 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.
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.
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 www.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,
www.example.com/page1/ - Hell World - My domain name
www.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
www.example.com/article.html?p=1 - Hell World - My domain name
www.example.com/article.html?p=2 - Hell World - My domain name
<div/>
s with an image like this inside: <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAAYCAIAAACDRZiQAAAAWklEQVR42u3UMQ0AAADCMPybBh+klbBjKQB3IgGAuQNg7gCYOwDmDoC5A5g7AOYOgLkDYO4AmDuAuQNg7gCYOwDmDoC5A2DuAOYOgLkDYO4AmDsA5g5g7gC8GV+jG5WskWSsAAAAAElFTkSuQmCC" alt="">
article.html?p=2
then click on fetch and render tools, then click on complete status, and finally click on fetching option, here is screenshot.
p=N
whereN
is the number of a page).www.example.com/article.html?p=2