提供可檢索的連結
請使用正確的 <a>
標記以及可解析網址,這樣才能讓 Google 追蹤您的連結。說明如下:
使用適當的 <a>
標記
Google 只能追蹤 <a>
標記中含有 href
屬性的連結,但我們的檢索器不會追蹤採用其他格式的連結。Google 無法追蹤缺少 href
屬性的 <a>
連結,也無法追蹤透過指令碼事件而產生連結效用的標記。以下列舉一些 Google 可以和無法追蹤的連結:
可以追蹤:
<a href="https://example.com">
<a href="/relative/path/file">
無法追蹤:
<a routerLink="some/path">
<span href="https://example.com">
<a onclick="goto('https://example.com')">
連結至可解析網址
請確保 <a>
標記所連結的網址是 Googlebot 可傳送要求的實際網址,舉例來說:
Googlebot 能夠解析的網址:
https://example.com/stuff
/products
/products.php?id=123
Googlebot 無法解析的網址:
javascript:goTo('products')
javascript:window.location.href='/products'
#