问题描述
我一辈子都想不通这家公司如何将元数据添加到他们的Google搜索中。 有谁知道如何添加数据和预订链接,如下图所示?
谢谢
解决方法
您在这些搜索结果中所看到的就是Google定义的“丰富结果”,您可以在Google的Structured Data文档中查看更多信息。特别是Edgewater Medical中心正在利用event functionality来定义时间和日期。
可以通过将页面的源代码粘贴到Rich Results Test tool中来进行验证,可以在以下页面查看该页面的结果
根据Google文档,要实现此目的,您必须执行一些步骤:
- 确保Googlebot可以抓取您的事件页面(即您的页面) 不受robots.txt文件或robots元标记的保护。
- 确保服务器可以处理提高的爬网速度。
- 确保您遵循Google guidelines。
- 将structured data添加到活动页面。目前,Google上的活动体验仅支持专注于单个活动的页面。我们建议着重在事件发布页面上添加标记,而不是列出日程表或多个事件的页面。
标准事件的此类“结构化数据”示例如下所示:
<html>
<head>
<title>The Adventures of Kira and Morrison</title>
<script type="application/ld+json">
{
"@context": "https://schema.org","@type": "Event","name": "The Adventures of Kira and Morrison","startDate": "2025-07-21T19:00-05:00","endDate": "2025-07-21T23:00-05:00","eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode","eventStatus": "https://schema.org/EventScheduled","location": {
"@type": "Place","name": "Snickerpark Stadium","address": {
"@type": "PostalAddress","streetAddress": "100 West Snickerpark Dr","addressLocality": "Snickertown","postalCode": "19019","addressRegion": "PA","addressCountry": "US"
}
},"image": [
"https://example.com/photos/1x1/photo.jpg","https://example.com/photos/4x3/photo.jpg","https://example.com/photos/16x9/photo.jpg"
],"description": "The Adventures of Kira and Morrison is coming to Snickertown in a can’t miss performance.","offers": {
"@type": "Offer","url": "https://www.example.com/event_offer/12345_201803180430","price": "30","priceCurrency": "USD","availability": "https://schema.org/InStock","validFrom": "2024-05-21T12:00"
},"performer": {
"@type": "PerformingGroup","name": "Kira and Morrison"
},"organizer": {
"@type": "Organization","name": "Kira and Morrison Music","url": "https://kiraandmorrisonmusic.com"
}
}
</script>
</head>
<body>
</body>
</html>