上一篇我們提到: 網站優化就是對網頁的程序、內容、版塊、布局進行優化調整,使之適合搜索引擎檢索,滿足搜索引擎排名的指標,從而提高搜索引擎檢索的排名和搜索引擎營銷的有效性。影響力。網站優化除了網站安全維護和內容更新,還要掌握很多技巧和思路。成都網站優化公司如何優化一個網站? 網站優化注意事項1.日常網站外鏈建設2.統計工具分
接下來我們進入今天的正文:在SEO中,最重要的第一個關鍵點是meta tag,就是告訴搜索引擎和社交網站,你的博客或網站的主題是什么,作者是誰,你分享的縮略圖是什么.和其他我們認為理所當然的信息。畢竟這些搜索引擎和社交網站的人工智能還是分不清你的網站和我的網站的重點,所以我們還得靠這些meta或者結構化的材料itemprop來告訴他們。 本文主要介紹如何正確設置分享到google plus和facebook的文章的標題、縮略圖和摘要。因為有了這些正確的設置,分享到社交網站時,莫名其妙的縮略圖就不會跳出來了。同時,在谷歌搜索時,也會顯示作者的頭像和姓名。這些都是吸引更多用戶瀏覽的好方法。 這是添加在我的網站標題中的meta標簽:
1
2
3
4
5
6
7
8
9
10
11
12
|
< 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確認這個網頁的作者是你)
1
2
3
|
< 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 上頭,就會正確顯示
1
2
3
|
< meta itemprop = "name" content = "網站名稱或標題" >
< meta itemprop = "image" content = "要顯示的縮圖網址" >
< meta itemprop = "description" content = "網頁描述" >
|
而這四行是寫給facebook看的,分享到facebook上頭,就會正確顯示,如果發現都已經照著設定了,分享時仍有問題,可以點選Facebook Debugger進行查詢和重新設定,完成后再次分享應該就不會有問題啰!
1
2
3
4
|
< 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 標簽語法,如果有需要也可以都加進自己的網站喔!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<!-- 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" />
|
掃一掃,瀏覽關注本文
掃碼訪問手機網站
版權所有 Copyright ? 2007-2022 四川冠辰科技開發有限公司 川公安網備案:51010602001006號
地址:四川省成都市金牛區五福橋東路229號龍湖北城天街28棟903 蜀ICP備11012605號-1
始于2007年,十五年品牌網站建設,值得信賴!