大网数据广告活动
网站运营与故障问答

Does Googlebot call every link separately (with a new request)?

· 52CE 我爱测

Does Googlebot call every link separately (with a new request) or does it follow all links by JavaScript (for example by click event)? I have a vue-js website which contains all the links and of course all the navigation is handl…

问题原文

原帖链接 · Maisen1886 · CC BY-SA 4.0

Does Googlebot call every link separately (with a new request) or does it follow all links by JavaScript (for example by click event)?

I have a vue-js website which contains all the links and of course all the navigation is handled by JavaScript.

But the meta tags and open graph meta tags are only generated and output directly from the server via PHP when a URL is requested. For example, when I go to my main page example.com/index, my PHP code outputs the meta tags specifically to that URL. If a visitor of the website now click on a link "contact" (example.com/contact), the meta tags are not adjusted and are still those for example.com/index.

But if I now directly open the URL example.com/contact in my browser, the correct meta tags and open meta tags are displayed by the PHP script.

Does Googlebot crawl each link individually as a new request/URL call or does the bot go to example.com/index and then execute the link calls via Javascript on the website (in this case the meta tags would be wrong and not updated).

已采纳解答

原帖链接 · Tony McCreath · CC BY-SA 4.0

Googlebot will look for any real links on the rendered page. i.e. an tag, and store the links URL for later crawling. So it crawls every link separately. When crawling it does not click on things.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2022-02-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。