結構化資料應用使用JSON / LD【地點應用】
隨著Google及越來越多的企業嘗試以新的格式,讓用戶在行動裝置、桌上型電腦的搜尋引擎的結果更為精準,導入結構化資料的必要性不可言喻。
如果不清楚什麼是結構化資料,可以看看以下兩篇文章的介紹與基礎應用:
Scheme.Org 提供各類組織,讓許多企業可直接相容並使用,一但有客戶需要在本地或跨境執行搜尋引擎優化時,我們須仰賴一個用於組織化搜尋的Parent Organization,同時擁有標記個別位置數據能力來進行在地搜尋引擎優化。對於一個大型個體來說,維繫位置與總公司之間的明確關係非常重要!
我們首先建立一套明確的階級制度,用以定義parentOrganization大於LocalBusiness。接著便可以在優化目標頁的同時,為更大的組織、首頁來下定義。下面的例子即是以JSON-LD來呈現ParentOrganization和 Local Listing!
情境假設:
-
定義企業總部、各辦公室及服務地點
-
同時擁有線上購物平台及實體店面之企業
首頁:
以下script 用來簡化且呈現傘型結構的相關資訊:
<script type="application/ld+json">{ "@context": "http://schema.org", "@type": "Organization", "name": "Your Parent Company Name", "logo": "https://yourParentCompany.com/LOGO.png", "url": "https://yourParentCompany.com", "sameAs": [ "https://www.facebook.com/yourParentCompany/", “https://www.twitter.com/yourParentCompany/” ], "contactPoint": { "@type": "ContactPoint", "telephone": "+1-800-111-1111", "contactType": "Sales", "email": "[email protected]", "contactOption": "TollFree", "areaServed": "United States", "availableLanguage": "English" }, "address": { "@type": "PostalAddress", "addressCountry": "United States", "addressLocality": "Los Angeles", "addressRegion": "CA", "postalCode": "90230", "streetAddress": "1025 mainOffice Street" } }</script>
Location Pages:
藉由建立parentOrganization的子類型(LocalBusiness),即可在毋須捨棄parent organization的狀況下來標記位置數據
<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "LocalBusiness", "@id": "https://yourParentCompany.com/location-1/", "name": "Your Company Name - Location Number 1", "description": "Your Company Location Number 1, Providing the best goods and or services to the area since mid-March of 1699 BC.", "image": [ "https://yourParentCompany.com/LOGO.png" ], "areaServed": "serviceArea", "url": "https://yourParentCompany.com", "telephone": "+1-650-801-3333", "address": { "@type": "PostalAddress", "streetAddress": "123 localBusiness Street", "addressLocality": "San Francisco", "addressRegion": "CA", "postalCode": "94117", "addressCountry": "US" }, "parentOrganization": { "@type": "Organization", "@id": "https://yourParentCompany.com", "name": "Your Parent Company Name", "description": "Your Parent Company Name: Providing local and international services since Mid January of 1699 BC.", "image": [ "https://yourParentCompany.com/LOGO.png" ], "url": "https://yourParentCompany.com/", "telephone": "+1-800-111-1111" } } </script>
上面的code對於透過JSON-LD的應用來說只個起點,JSON-LD還可應用在其他頁面,比如說SERP(Search Engine Results Pages),將每一個地點呈現在該頁面。如果你正好在使用結構化資料,那便其用在localbusiness JSON的最佳時機!
一但將這些數據添加完成之後,別忘了利用Google自家的結構化測試資料工具來檢查輸入的值是否都正確喔!
別忘幫我們的Facebook粉絲專頁按讚,以及訂閱歐斯瑞電子報唷!
我要留言