律師事務所架構化標記:完整 JSON-LD 指南 (2026)
我在過去幾年已在數十個律師事務所網站上實施架構化標記,模式總是一樣的:事務所的開發人員(或更糟的是,他們的「SEO 人員」)要麼什麼都沒做,要麼貼上某個自動生成的 Yoast 架構,堪堪只是皮毛。同時,街道對面的競爭對手律師事務所卻在獲取常見問題豐富結果、知識面板資料,並被 AI 搜尋工具引用——這一切只因為他們花時間編寫了正確的 JSON-LD。
這份指南是我希望開始時就存在的指南。我們將涵蓋對律師事務所重要的每一種架構類型——LegalService、Attorney、FAQPage、Organization,以及它們如何連接——並提供真實的、可直接部署的生產環境 JSON-LD。
目錄
- 為什麼架構化標記在 2026 年對律師事務所很重要
- JSON-LD 與微數據:選擇正確格式
- LegalService 架構:基礎
- 具有 Person 標記的 Attorney 架構
- 執業領域的 FAQPage 架構
- Organization 架構:將所有內容整合在一起
- 構建連接的架構圖
- 在您的範本中放置 JSON-LD 的位置
- 驗證和測試
- 破壞豐富結果的常見錯誤
- 常見問題

為什麼架構化標記在 2026 年對律師事務所很重要
讓我們直言不諱:架構化標記不會神奇地對您的網站進行排名。從傳統意義上講,它不是排名因素。但它做三件隨著時間推移而複合的事情:
**SERP 中的豐富結果。**常見問題下拉菜單、星級評分、業務詳情——這些佔用更多螢幕空間並提高點擊率。2025 年 Milestone Research 研究的數據表明,包含結構化數據的頁面的點擊率比沒有的頁面高 40-50%。
AI 搜尋引用。 Google 的 AI Overviews、Bing Copilot、Perplexity 和 ChatGPT 搜尋都會解析結構化數據以理解實體。如果您想在有人詢問「奧斯汀最佳人身傷害律師」時被引用,架構化標記幫助這些系統了解您是誰、您做什麼以及您的位置。
知識面板資格。 Google 的知識圖譜大量提取結構化數據。具有一致
sameAs連結的正確標記的律師事務所更有可能觸發品牌知識面板。
對於律師事務所特別是,風險很高。法律關鍵詞是付費搜尋中成本最高的(競爭激烈的執業領域每次點擊 $50-150 以上)。任何您可以做的以改善有機可見度的事情都值得工程時間。
JSON-LD 與微數據:選擇正確格式
簡短回答:使用 JSON-LD。總是。
Google 明確推薦 JSON-LD。它更容易維護,不會污染您的 HTML 標記,並且可以通過 <script> 標籤動態注入。微數據要求您直接向 HTML 元素添加屬性,這很快就會變得混亂——特別是如果您使用 Sanity、Contentful 或 Storyblok 等無頭 CMS,其中內容和呈現是分離的。
| 特性 | JSON-LD | 微數據 | RDFa |
|---|---|---|---|
| Google 推薦 | ✅ 是 | ⚠️ 支援 | ⚠️ 支援 |
| 與 HTML 分離 | ✅ 是 | ❌ 否 | ❌ 否 |
| 易於維護 | ✅ 是 | ❌ 混亂 | ❌ 混亂 |
| 與無頭 CMS 配合使用 | ✅ 完美契合 | ⚠️ 可能 | ⚠️ 可能 |
| AI 搜尋兼容性 | ✅ 優異 | ✅ 良好 | ✅ 良好 |
| 動態注入 | ✅ 簡單 | ❌ 需要 DOM 更改 | ❌ 需要 DOM 更改 |
如果您使用 Next.js 或 Astro 構建(我們在 Social Animal 做很多——參見我們的 Next.js 開發 和 Astro 開發 功能),JSON-LD 特別簡潔。您將其生成為 JavaScript 物件並將其放入 <head> 中的 <script type="application/ld+json"> 標籤。
LegalService 架構:基礎
LegalService 是專門為律師事務所和法律實踐設計的 schema.org 類型。它是 LocalBusiness 的子類型,這意味著它繼承所有本地業務屬性——地址、電話、營業時間——加上您可以指定法律特定的詳細資訊。
以下是生產環境就緒的範例:
{
"@context": "https://schema.org",
"@type": "LegalService",
"@id": "https://www.smithlawfirm.com/#organization",
"name": "Smith & Associates Law Firm",
"alternateName": "Smith Law",
"url": "https://www.smithlawfirm.com",
"logo": {
"@type": "ImageObject",
"url": "https://www.smithlawfirm.com/images/logo.png",
"width": 600,
"height": 200
},
"image": "https://www.smithlawfirm.com/images/office-exterior.jpg",
"description": "Smith & Associates provides personal injury, family law, and estate planning legal services in Austin, Texas.",
"telephone": "+1-512-555-0199",
"email": "contact@smithlawfirm.com",
"address": {
"@type": "PostalAddress",
"streetAddress": "456 Congress Avenue, Suite 300",
"addressLocality": "Austin",
"addressRegion": "TX",
"postalCode": "78701",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 30.2672,
"longitude": -97.7431
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "18:00"
}
],
"priceRange": "$$",
"areaServed": {
"@type": "City",
"name": "Austin",
"sameAs": "https://en.wikipedia.org/wiki/Austin,_Texas"
},
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Legal Services",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Personal Injury Representation",
"description": "Legal representation for car accidents, slip and fall, and workplace injuries."
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Family Law",
"description": "Divorce, child custody, and prenuptial agreement services."
}
}
]
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"reviewCount": "127",
"bestRating": "5"
},
"sameAs": [
"https://www.facebook.com/SmithLawAustin",
"https://www.linkedin.com/company/smith-law-austin",
"https://www.avvo.com/attorneys/smith-associates.html"
]
}
您不應該跳過的關鍵屬性
@id:這對於連接架構至關重要。將其視為唯一識別碼,其他架構塊可以引用。geo:Google 使用它來進行本地包結果。不要跳過。areaServed:如果您服務多個城市或縣,列出它們全部。使用GeoCircle用於基於半徑的服務區域。hasOfferCatalog:這是您將執業領域列舉為服務的方式。理想情況下,每個執業領域頁面應該也有自己的Service架構。sameAs:包括您的 Avvo、Justia、FindLaw、LinkedIn、Facebook——任何權威檔案。這幫助 Google 連接知識面板的點。aggregateRating:僅當您從合法第一方評論中提取時才包括此項。Google 的指南在這裡很嚴格——不要編造評分。

具有 Person 標記的 Attorney 架構
您事務所的每位律師應在其個人檔案頁面上有 Person 架構。這是 E-E-A-T 真正發揮作用的地方——您明確告訴搜尋引擎有關認證、執業執照認可、教育和專業知識。
{
"@context": "https://schema.org",
"@type": "Person",
"@id": "https://www.smithlawfirm.com/attorneys/jane-smith/#person",
"name": "Jane Smith",
"jobTitle": "Managing Partner",
"url": "https://www.smithlawfirm.com/attorneys/jane-smith",
"image": "https://www.smithlawfirm.com/images/attorneys/jane-smith.jpg",
"description": "Jane Smith is a personal injury attorney in Austin, TX with over 15 years of experience and a track record of $50M+ in settlements.",
"telephone": "+1-512-555-0200",
"email": "jane@smithlawfirm.com",
"worksFor": {
"@id": "https://www.smithlawfirm.com/#organization"
},
"alumniOf": [
{
"@type": "CollegeOrUniversity",
"name": "University of Texas School of Law",
"sameAs": "https://law.utexas.edu"
}
],
"hasCredential": [
{
"@type": "EducationalOccupationalCredential",
"credentialCategory": "Bar Admission",
"recognizedBy": {
"@type": "Organization",
"name": "State Bar of Texas"
}
}
],
"knowsAbout": [
"Personal Injury Law",
"Car Accident Claims",
"Wrongful Death",
"Premises Liability"
],
"sameAs": [
"https://www.linkedin.com/in/janesmith-attorney",
"https://www.avvo.com/attorneys/jane-smith.html",
"https://www.martindale.com/jane-smith"
]
}
為什麼 `worksFor` 參考很重要
看到那個 worksFor 屬性了嗎?它使用 LegalService 架構中的 @id。這就是您構建連接圖的方式——Google 理解 Jane Smith 在 Smith & Associates 工作,這是奧斯汀的法律服務提供商。這些連接加強了兩個實體。
hasCredential 屬性相對較新,但越來越重要。執業執照、執業認可、Super Lawyers 指定——標記它們全部。AI 搜尋系統喜歡這種可驗證的認證資料。
執業領域的 FAQPage 架構
FAQ 架構的歷史動盪。Google 在 2023 年 8 月減少了 FAQ 豐富結果的可見性,主要將它們限制在權威政府和健康網站。但這是事實——FAQPage 架構在 2026 年仍然重要,原因有兩個:
- AI 搜尋解析。 LLM 在生成答案時積極使用 FAQ 結構化數據。Perplexity 和 Google AI Overviews 都引用 FAQ 內容。
- Bing 和其他引擎。 Bing 比 Google 更自由地顯示 FAQ 豐富結果。
對於每個執業領域頁面,您應該有一個具有匹配架構的相關常見問題部分:
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How much does a personal injury lawyer cost in Austin?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Most personal injury attorneys in Austin work on a contingency fee basis, meaning you pay nothing upfront. The standard contingency fee ranges from 33% to 40% of the settlement or verdict amount. If you don't win, you don't pay attorney fees."
}
},
{
"@type": "Question",
"name": "What is the statute of limitations for personal injury in Texas?",
"acceptedAnswer": {
"@type": "Answer",
"text": "In Texas, you generally have two years from the date of the injury to file a personal injury lawsuit. There are exceptions for minors, government entities, and cases where the injury wasn't immediately discovered. Consulting an attorney promptly is critical to preserve your rights."
}
},
{
"@type": "Question",
"name": "How long does a personal injury case take to settle?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Most personal injury cases in Texas settle within 6 to 18 months. Simpler cases like fender-benders with clear liability may resolve in a few months. Complex cases involving catastrophic injuries or disputed fault can take 2-3 years or longer if they go to trial."
}
}
]
}
關鍵 FAQPage 規則
- 內容必須出現在頁面上。 Google 的指南很明確:您的 FAQ 標記必須與頁面上的可見內容匹配。不要為僅存在於 JSON-LD 中的問題添加 FAQ 架構。
- **保持答案簡潔。**每個答案兩到三句話表現最佳。如果您需要解釋複雜的事情,連結到專用頁面。
- **使用真實問題。**從 Google Search Console 查詢數據、「People Also Ask」框和實際客戶登記對話中提取。不要編造沒有人提問的問題。
- **限制在每頁 5-10 個。**超過這個數量,您就在稀釋相關性。
Organization 架構:將所有內容整合在一起
如果您的事務所有多個辦公室,您需要在主頁上有一個 Organization 架構,作為父實體,每個位置都有單獨的 LegalService 架構。
{
"@context": "https://schema.org",
"@type": "Organization",
"@id": "https://www.smithlawfirm.com/#organization",
"name": "Smith & Associates Law Firm",
"url": "https://www.smithlawfirm.com",
"logo": "https://www.smithlawfirm.com/images/logo.png",
"foundingDate": "2008",
"founder": {
"@id": "https://www.smithlawfirm.com/attorneys/jane-smith/#person"
},
"numberOfEmployees": {
"@type": "QuantitativeValue",
"value": 25
},
"subOrganization": [
{
"@type": "LegalService",
"name": "Smith & Associates - Austin Office",
"url": "https://www.smithlawfirm.com/locations/austin"
},
{
"@type": "LegalService",
"name": "Smith & Associates - San Antonio Office",
"url": "https://www.smithlawfirm.com/locations/san-antonio"
}
],
"sameAs": [
"https://www.facebook.com/SmithLawAustin",
"https://www.linkedin.com/company/smith-law-austin",
"https://twitter.com/SmithLawATX"
]
}
構建連接的架構圖
這是大多數律師事務所網站失敗的地方。他們有斷裂的架構塊——這裡一點 LocalBusiness,那邊一點 Person——但沒有什麼連接在一起。Google 的文件談到「實體協調」,基本上就是它如何確定所有這些資料片段都指的是相同的現實世界實體的方式。
@id 屬性是您的工具。以下是圖表應該如何連接:
| 頁面 | 架構類型 | 參考 |
|---|---|---|
| 主頁 | Organization + WebSite |
組織的 @id |
| 位置頁面 | LegalService |
parentOrganization → 組織 @id |
| 律師個人檔案 | Person |
worksFor → 組織 @id |
| 執業領域頁面 | Service + FAQPage |
provider → 組織 @id |
| 部落格文章 | Article |
author → 人員 @id,publisher → 組織 @id |
| 聯絡頁面 | ContactPoint |
在組織或 LegalService 中嵌套 |
以下是執業領域頁面如何連結回去的快速範例:
{
"@context": "https://schema.org",
"@type": "Service",
"name": "Personal Injury Representation",
"serviceType": "Personal Injury Law",
"provider": {
"@id": "https://www.smithlawfirm.com/#organization"
},
"areaServed": {
"@type": "State",
"name": "Texas"
},
"description": "Legal representation for car accidents, truck accidents, workplace injuries, and wrongful death claims throughout Texas.",
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Personal Injury Services",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Car Accident Claims"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Truck Accident Claims"
}
}
]
}
}
在您的範本中放置 JSON-LD 的位置
JSON-LD 位於 <script type="application/ld+json"> 標籤中。您可以將其放在 <head> 中或在結束 </body> 標籤之前——Google 不在乎放置位置,但我出於組織理智的目的更喜歡 <head>。
如果您使用無頭 CMS 和 Next.js 或 Astro 等框架,您需要從 CMS 數據動態生成架構。以下是簡化的 Next.js 範例:
// components/LegalServiceSchema.tsx
export function LegalServiceSchema({ firm }) {
const schema = {
"@context": "https://schema.org",
"@type": "LegalService",
"@id": `${firm.url}/#organization`,
"name": firm.name,
"url": firm.url,
"telephone": firm.phone,
"address": {
"@type": "PostalAddress",
"streetAddress": firm.address.street,
"addressLocality": firm.address.city,
"addressRegion": firm.address.state,
"postalCode": firm.address.zip,
"addressCountry": "US"
}
};
return (
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
/>
);
}
這個模式在您的內容存放在無頭 CMS 時表現完美。架構保持與您的數據同步——當電話號碼更改時無需手動更新。如果您對這種方法感興趣,我們透過我們的 headless CMS development 工作定期構建這些類型的系統。
驗證和測試
在推送任何內容前,測試它。每次都要。以下是我實際使用的工具:
| 工具 | URL | 它做什麼 |
|---|---|---|
| Google 豐富結果測試 | search.google.com/test/rich-results | 顯示您的頁面有資格獲得哪些豐富結果 |
| 架構標記驗證器 | validator.schema.org | 針對完整 schema.org 規範驗證(比 Google 更嚴格) |
| Google Search Console | search.google.com/search-console | 部署後顯示錯誤和警告 |
| Merkle 架構標記生成器 | technicalseo.com/tools/schema-markup-generator | 適合生成初始標記 |
我的工作流程:
- 手動編寫 JSON-LD 或從 CMS 數據生成它
- 首先使用 schema.org 驗證器進行驗證(捕獲結構問題)
- 使用 Google 豐富結果測試進行測試(確認 Google 將解析它)
- 部署並監視 Search Console 的「增強功能」報告 2-4 週
- 使用
site:yourdomain.com搜尋檢查豐富結果是否實際出現在 SERP 中
破壞豐富結果的常見錯誤
我已經調試了足夠多的律師事務所架構,以至於有一個常見錯誤的最高點擊列表:
**不可見的標記。**您添加了 FAQ 架構,但頁面上看不到問題和答案。Google 明確表示結構化數據必須反映可見的頁面內容。違反這一點,您面臨人工操作的風險。
**虛假或自發布評論。**添加 AggregateRating 與僅存在於您自己網站上的評論——不是從 Google Business Profile、Avvo 或其他第三方提取的——違反了 Google 的評論片段指南。他們在 2024 年對此進行了嚴厲打擊,從此沒有放鬆。
**來自插件的重複架構。**您安裝 Yoast 或 Rank Math,它自動生成 Organization 架構。然後您(或您的開發人員)也添加自定義 JSON-LD。現在 Google 看到兩個衝突的 Organization 塊。選擇一個真實來源。
**缺少 @id 參考。**沒有 @id 屬性,您的架構塊是孤島。Google 無法將您的律師連接到您的事務所,您的服務連接到您的位置。始終使用 @id 並使用 {"@id": "..."} 在相關架構中引用它。
**過時的數據。**您的辦公室六個月前搬遷,但架構仍然有舊地址。或律師離開了事務所,但他們的 Person 架構仍然是現場的。像對待代碼一樣對待架構——它需要維護。
**使用 Attorney 作為架構類型。**這是一個常見的混淆。Schema.org 沒有 Attorney 類型。沒有 @type: "Attorney"。使用 Person,其中 jobTitle 為「Attorney」,並通過 worksFor 將其連接到您的 LegalService。一些插件搞錯了這個。
常見問題
每個律師事務所網站應該有哪些架構類型?
最少,您在主頁上需要 LegalService(或具有 LegalService 子類型的 Organization),每個律師個人檔案頁面上有 Person,以及執業領域頁面上有 FAQPage。如果您發布部落格內容,請添加 Article 架構,並具有正確的 author 參考。對於多位置事務所,每個辦公室都需要自己的 LegalService 塊,包含位置特定的詳細資訊。
2026 年 FAQPage 架構仍然適用於豐富結果嗎? Google 在 2023 年 8 月顯著減少了 FAQ 豐富結果的可見性,主要為政府和衛生權威網站顯示它們。然而,FAQ 架構對於像 Google AI Overviews、Bing Copilot 和 Perplexity 這樣的 AI 搜尋系統仍然有價值,這些系統在生成答案時主動解析結構化 FAQ 數據。仍然值得實施。
架構.org 是否專門為律師定義了架構類型?
否。Schema.org 沒有定義 Attorney 類型。正確的方法是使用 Person,其屬性如 jobTitle 設定為「Attorney」或「Partner」、hasCredential 用於執業執照,以及 worksFor 參考您的事務所的 LegalService 或 Organization 架構。一些 SEO 插件不正確地使用 Attorney——避免它們或覆蓋輸出。
我如何在架構標記中處理多個執業領域?
每個執業領域頁面應該有自己的 Service 架構,其中 provider 參考返回到您事務所的 @id。在您的主頁或主要服務頁面上,使用 hasOfferCatalog 和 OfferCatalog 列出每項服務。這為各個頁面級別信號和事務所級別概述都創建了信號。
架構標記能幫助我的律師事務所出現在 Google AI Overviews 中嗎?
是的。Google 的 AI Overviews 和其他 AI 搜尋工具在為生成的答案選擇來源時使用結構化數據作為信號。一個連接良好的架構圖——具有 LegalService、Person、FAQPage 和正確的 sameAs 連結——幫助 AI 系統理解您的事務所的權威性、位置和專業化。這不是唯一的因素,但它是一個越來越重要的因素。
我應該使用架構插件還是手動編寫 JSON-LD?
這取決於您的平台和技術舒適度。對於 WordPress,Rank Math 或 Schema Pro 等插件可以處理基礎。但對於律師事務所,默認值很少足夠——您需要為 LegalService、律師認證和執業領域服務自訂輸出。如果您使用具有 Next.js 或 Astro 的無頭 CMS,從您的 CMS 數據以程式方式生成 JSON-LD 是最簡潔的方法。我們通過我們的 headless CMS development services 幫助事務所設定這個。
架構標記顯示結果需要多長時間? 部署有效結構化數據後,Google 通常在 2-4 週內處理它,儘管可能需要更長時間。您將首先在 Search Console 的增強功能報告中看到架構被檢測。豐富結果(如果符合資格)可能需要另外幾週才能出現。AI 搜尋引用改進更難測量,可能需要 1-3 個月才能變得明顯。
架構標記與 E-E-A-T 的關係是什麼?
架構標記是向搜尋引擎發信 E-E-A-T(體驗、專業知識、權威性、信任度)的最直接方式之一。具有 hasCredential 的 Person 架構展示專業知識。AggregateRating 和 Review 架構發信信任度。sameAs 連結到權威法律目錄強化權威性。Google 的品質評分指南沒有明確提及架構,但您編碼的數據直接映射到品質評分人員評估的內容。