将预订元数据添加到 Google 搜索

Adding booking meta data to Google Search

我一辈子都弄不明白这家公司是如何将这些元数据添加到他们的 Google 搜索中的。 有谁知道如何添加如下图的数据和预订链接?

谢谢

您在这些搜索结果中看到的是 Google 定义为“富媒体搜索结果”的内容,可以在 Google 的 Structured Data documentation. Specifically Edgewater Medical center is taking advantage of the event functionality 中查看更多信息以定义时间和日期。

这可以通过将页面源代码粘贴到 Rich Results Test tool 来验证,可以在

查看该页面的结果

https://search.google.com/test/rich-results?utm_campaign=devsite&utm_medium=jsonld&utm_source=event&id=m1ZrUywePCZ_NglFJIjZfg

根据 google 文档,为了实现这一点,您必须执行以下几个步骤:

  • 确保 Googlebot 可以抓取您的活动页面(也就是说,您的页面 不受 robots.txt 文件或机器人元标记的保护。
  • 确保您的服务器能够处理更高的抓取速度。
  • 确保您遵循 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>