網站結構化meta與link標籤SEO方法
網站SEO較深度層面都會進行頭部協議的優化,用意是建立網站和外部平臺的互通互鏈,通過meta和link標籤協議讓搜索引擎和社交媒體網站能準確知曉我們網站的服務項目、內容領域、作者是誰等等,讓全網用戶能直觀的查覺到我們的信息。
而我們常用的og網絡協議和頭部其他協議都需用到meta標籤,如果你的網站需要對國外開發內容,可以參考以下加入的meta和link標籤:
<meta name="author" content="作者名稱">
<meta name="copyright" content="版權所有人名稱">
<link rel="author" href="google plus 個人頁網址/posts">
<link rel="publisher" href="google plus 個人頁網址">
<meta name="description" content="網頁描述">
<meta itemprop="name" content="網站名稱或標題">
<meta itemprop="image" content="要顯示的縮圖網址">
<meta itemprop="description" content="網頁描述">
<meta property="og:title" content="網站名稱或標題" >
<meta property="og:url" content="網址">
<meta property="og:image" content="要顯示的縮圖網址">
<meta property="og:description" content="網頁描述" >
其中以下這三行,是寫給搜尋引擎看的(特別是google ),當中最重要的,就是rel="author"這一句,有寫這一段,接下來我們就可以去去google plus進行互相認證的作業(也就是要讓google plus確認這個網頁的作者是你)
<link rel="author" href="google plus 個人頁網址/posts">
<link rel="publisher" href="google plus 個人頁網址">
<meta name="description" content="網頁描述">
而認證的過程,可以點選google結構化資料測試工具連結,進行相關的認證作業,認證的過程其實也很簡單,就是進入google plus的個人頁面,點選「帳戶」,點選「編輯個人資料」,接着將「連結」裡頭的「作品刊載於」,新增目前的網站,接着google plus就會去查詢你的網站是否有放上rel=“author”,如果有,就完成囉!
而這三行是寫給google plus 看的,分享到google plus 上頭,就會正確顯示
<meta itemprop="name" content="網站名稱或標題">
<meta itemprop="image" content="要顯示的縮圖網址">
<meta itemprop="description" content="網頁描述">
而這四行是寫給facebook看的,分享到facebook上頭,就會正確顯示,如果發現都已經照着設定了,分享時仍有問題,可以點選Facebook Debugger進行查詢和重新設定,完成後再次分享應該就不會有問題囉!
<meta property="og:title" content="網站名稱或標題" >
<meta property="og:url" content="網址">
<meta property="og:image" content="要顯示的縮圖網址">
<meta property="og:description" content="網頁描述" >
當然meta 標籤絕對不止這一些,因為除了facebook 和google plus,還有一個世界前三大的社群平臺twitter,以下列出在這些平臺上完整的meta 標籤語法,如果有需要也可以都加進自己的網站喔!
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
<html itemscope itemtype="http://schema.org/Article">
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Google Authorship and Publisher Markup -->
<link rel="author" href=" https://plus.google.com/[Google+_Profile]/posts"/>
<link rel="publisher" href=” https://plus.google.com/[Google+_Page_Profile]"/>
<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="The Name or Title Here">
<meta itemprop="description" content="This is the page description">
<meta itemprop="image" content=" http://www.example.com/image.jpg">
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description less than 200 characters">
<meta name="twitter:creator" content="@author_handle">
<!-- Twitter summary card with large image must be at least 280x150px -->
<meta name="twitter:image:src" content=" http://www.example.com/image.html">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content=" http://www.example.com/" />
<meta property="og:image" content=" http://example.com/image.jpg" />
<meta property="og:description" content="Description Here" />
<meta property="og:site_name" content="Site Name, i.e. Moz" />
<meta property="article:published_time" content="2013-09-17T05:59:00+01:00" />
<meta property="article:modified_time" content="2013-09-16T19:08:47+01:00" />
<meta property="article:section" content="Article Section" />
<meta property="article:tag" content="Article Tag" />
<meta property="fb:admins" content="Facebook numberic ID" />
國內搜索引擎大多數都支持以上協議,建議你的網站最少用上og網絡協議,以360搜索智能摘要為例,採用的就是og網絡協議。
link標籤rel=alternate和rel=canonical優化技巧方法