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

标签 metadata

我怎么也想不出这家公司是如何将这些元数据添加到他们的 Google 搜索中的。 有谁知道如何添加如下图所示的数据和预订链接?

谢谢

enter image description here

最佳答案

您在这些搜索结果中看到的是 Google 定义的“丰富结果”,更多信息可以在 Google 的 Structured Data 文档中查看。具体来说,Edgewater 医疗中心正在利用 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

根据谷歌文档,为了实现这一点,您必须遵循几个步骤:

  • 确保 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>

关于metadata - 将预订元数据添加到 Google 搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63609364/

相关文章:

java - Java 中的元数据如何帮助防止段错误?

oracle - 查找 Oracle 中的列是否具有序列

android - 尝试从远程 MP3 文件 Android 检索元数据时出错

facebook - 无法使用 Facebook 页面的 ID 作为 fb :admins when adding insights for website 的值

java - Hibernate 5.2 从元模型中获取自然 id 属性

sql-server - 授予对 INFORMATION_SCHEMA 的访问权限

php - 在 woocommerce 3 中获取订单项的元数据

html - 如何使用 pandoc 从 markdown 生成自定义元数据 html 标签

python - 在 Python 中编辑类文件对象上的 MP3 元数据?

php - 如何存储有关表的元数据?