活动 (Event) 结构化数据

您可以利用 Google 上的活动搜索服务,让用户可通过 Google 搜索结果和其他 Google 产品(如 Google 地图)找到并参加这些活动。该服务的优势如下:

搜索结果中的活动示例

根据您对内容的标记方式,您的活动可能还符合以下活动增强功能的使用条件:

活动增强功能

居家活动:帮助用户找到可在家中进行的活动。当用户搜索可在家中进行的活动时,相关视频和线上活动便会显示在沉浸式富媒体搜索结果中。添加 Event 结构化数据后,您的线上活动可能已能够显示为这种富媒体搜索结果,而无需再执行其他步骤。

如需详细了解功能可用性、指南和示例,请参阅居家活动

搜索结果中的居家活动

您可以通过以下三种方式让活动显示在 Google 上:

  • 如果您通过第三方网站(例如票务网站或社交平台)发布活动,请检查活动发布商是否已参与了 Google 的活动搜索服务。如果活动发布商已经与 Google 集成,那么您可以继续在第三方网站上发布活动,无需再继续阅读下文。
  • 如果您使用 CMS(如 WordPress)且无权修改 HTML,请查看该 CMS 是否有可向您的网站添加结构化数据的插件。 或者,您也可以使用数据标注工具在不修改网站 HTML 的情况下将活动信息提供给 Google。
  • 如果您有能力修改 HTML,可以使用结构化数据直接与 Google 集成。您将需要修改活动网页的 HTML。

如何添加结构化数据

结构化数据是一种提供网页相关信息并对网页内容进行分类的标准化格式。如果您不熟悉结构化数据,可以详细了解结构化数据的运作方式

下面概述了如何构建、测试和发布结构化数据。

  1. 确保 Googlebot 可以抓取活动网页(也就是说,这些网页不受 robots.txt 文件或 robots meta 标记的保护)。
  2. 确保服务器能够应对更快的抓取速度
  3. 确保遵循我们的指南
  4. 如果同一条活动信息在您的网站上有多个副本且对应的网址不同,那么请在所有副本中添加规范网址
  5. 结构化数据添加到活动网页中。目前,Google 上的活动搜索服务仅支持侧重于单个活动的网页。我们建议您重点为活动信息网页(而非列有日程表或多个活动的网页)添加标记。
  6. 测试并预览您的结构化数据
  7. 通过使用 Search Console 中的网址检查工具,检查网址的索引状态并请求抓取您的网址。要确认抓取工具能否访问您网页上的结构化数据,请使用“测试实际版本”功能。
  8. 告知 Google 新的活动网页或对现有活动网页所做的更改。

示例

标准活动

下面是一个 JSON-LD 格式的标准 Event 示例。标准活动表示活动仅在实地按计划举办。您也可以使用微数据或 RDFa 语法。

<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_202403180430",
        "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>

线上活动

下面是一个线上举办的活动示例。

<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:00-05:00",
      "endDate": "2025-07-21T23:00-05:00",
      "eventStatus": "https://schema.org/EventScheduled",
      "eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
      "location": {
        "@type": "VirtualLocation",
        "url": "https://operaonline.stream5.com/"
        },
      "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_202403180430",
        "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>

线上和线下混合举办的活动

下面是一个部分在线上举办、部分在实地举办的活动示例。

<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/MixedEventAttendanceMode",
      "eventStatus": "https://schema.org/EventScheduled",
      "location": [{
        "@type": "VirtualLocation",
        "url": "https://operaonline.stream5.com/"
      },
      {
        "@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_202403180430",
        "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>

状态更新的活动

设置活动状态的方法有多种。下面是一些状态更新的活动的常见示例。有关详情,请参阅 eventStatus 属性。

已取消

下面是一个已取消的活动示例。


<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",
      "eventStatus": "https://schema.org/EventCancelled",
      "eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
      "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_202403180430",
        "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>

已重新安排

下面是一个已重新安排的活动示例。


<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",
      "eventStatus": "https://schema.org/EventRescheduled",
      "eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
      "previousStartDate": "2025-03-21T19:00-05:00",
      "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_202403180430",
        "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>

已转至线上并重新安排

下面是一个已重新安排并转至线上的活动示例。


<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/OnlineEventAttendanceMode",
      "eventStatus": [
        "https://schema.org/EventRescheduled",
        "https://schema.org/EventMovedOnline"
        ],
      "previousStartDate": "2025-03-21T19:00-05:00",
      "location": {
        "@type": "VirtualLocation",
        "url": "https://operaonline.stream5.com/"
      },
      "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_202403180430",
        "price": "30",
        "priceCurrency": "USD",
        "availability": "https://schema.org/InStock",
        "validFrom": "2024-05-21T12:00-05: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>

推出地区和支持的语言

我们非常高兴能够面向全球更多地区推出 Google 上的活动搜索服务。目前,我们已在以下地区推出该服务,并在右侧列出了支持的语言。

地区 支持的语言
澳大利亚 英语
巴西 葡萄牙语
加拿大 英语
德国 德语
印度 英语
拉丁美洲 西班牙语
西班牙 西班牙语
英国 英语
美国 英语

指南

您的活动必须遵循以下指南,才能显示在 Google 上的活动搜索服务中。

技术指南

  • 目标网页必须包含 schema.org 上活动类型的结构化数据项。
  • 每个活动都必须具有唯一的网址(叶级页)并对该网址添加标记。
  • 目前,Google 上的活动搜索服务仅支持侧重于单个活动的网页。我们建议您重点为活动信息网页(而非列有日程表或多个活动的网页)添加标记。

内容指南

  • 每个活动都必须准确地描述活动名称、开始日期和举办地点。
  • 避免将非活动内容标记为活动
    • 不要将非活动产品或服务(例如“旅行套餐:圣地亚哥/洛杉矶之旅,7 晚”)作为活动宣传。
    • 不要添加短期折扣或购买机会,例如:“音乐会 - 立即订票”或“音乐会 - 周六前订票可享受五折优惠”。
    • 不要将营业时间标记为活动,例如:“冒险乐园上午 8 点至下午 5 点开放”。
    • 不要将优惠券或代金券标记为活动,例如:“首次订购可享受九五折优惠”。
  • 正确标记举办多日的活动
    • 如果您的活动信息或门票信息针对的是一个举办时间为几天的活动,请指定该活动的开始日期和结束日期。
    • 如果在不同的几天里有几场不同的表演,并且每场表演有单独的门票,请为每场表演添加一个单独的 Event 元素。

日期和时间指南

在实施 startDateendDatepreviousStartDate 属性时,请遵循以下日期和时间指南。

如何指定时区

通过添加 UTC 或 GMT 时区设定来指定时区。如果活动于 9 月 5 日晚上 7 点在纽约开始,在采用标准时间期间 startDate 值为 GMT/UTC-5;在采用夏令时期间为 GMT/UTC-4。如果采用标准时间,startDate 值分别为 "2019-09-05T19:00:00-05:00""2019-09-05T19:00:00-04:00"。如果未提供时区,Google 会使用 location 中指定的活动地点的时区。对于线上活动,时区为必填项,因为没有可供 Google 了解活动开始时间的位置信息。

最佳做法

  • 活动持续一段日期:如果活动持续多天,请同时指明开始日期和结束日期。如果您不知道时间,请不要指明时间。

    建议

    "startDate": "2019-07-01T10:00:00-05:00",
    "endDate": "2019-07-26T17:00:00-05:00"

    建议

    "startDate": "2019-07-01",
    "endDate": "2019-07-26"

    不建议

    "startDate": "2019-07-01T00:00:00+00:00",
    "endDate": "2019-07-26T23:59:59+00:00"
  • 活动从特定时间开始:如果活动从特定时间开始,例如本地下午 5 点,请使用 2019-07-20T17:00:00。添加相应的 UTC 时差(例如,如果活动在加利福尼亚州发生,请使用 2019-07-20T17:00:00-07:00)。
  • 活动持续一整天:如果活动全天发生,请不要指定开始日期的具体时间。例如,您可以使用 2019-08-15 同时作为持续一整天活动的 startDateendDate
  • 活动开始时间未知:如果您不知道活动的开始时间,请不要指定具体时间。例如,您可以使用 2019-08-15 同时作为活动的 startDateendDate

    建议"startDate": "2025-07-21"

    不建议"startDate": "2019-08-15T00:00:00+00:00"

    不建议"startDate": "2019-07-20T00:00:00"

Google 如何解读日期的示例

下面是一些说明 Google 如何解读开始日期和时间的示例:

开始日期和时间解读
2019-08-15T00:00:00+00:00 Google 将 startTime 解读为 2019-08-14T17:00:00-07:00(如果 location 设为加利福尼亚州)或 2019-08-15T09:00:00(如果 location 设为韩国)。
2019-08-15T23:59:59+00:00 除非活动发生在 GMT 时区,否则这并不意味着 2019-08-15 的结束。Google 将 startTime 解读为 2019-08-15T16:59:59-07:00(如果 location 设为加利福尼亚州)或 2019-08-16T08:59:59(如果 location 设为韩国)。
2019-07-10 这表示日期,不考虑时区。在 startDate 中使用时,表示活动从当天的某个时间在 location 开始。在 endDate 中使用时,表示活动在当天的某个时间在 location 结束。
2019-07-20T00:00:00 这表示活动发生的时区的 2019-07-20 午夜。除非活动原定于午夜开始,否则该时间也可能是错误的。

结构化数据类型定义

如需了解 Event 的完整定义,请访问 schema.org/Event

若要让您的内容显示在增强的搜索结果中,必须添加必需的属性。您还可添加建议的属性,以便添加与您的内容相关的更多信息,进而提供更好的用户体验。

必要属性
location

PlaceVirtualLocation

活动的地点。要求可能会有所不同,具体取决于活动是在线上举办还是在实地举办:

  • 实地:如果活动是在实地举办,请将 @type 设置为 Place,并添加 location.addresslocation.name 属性。
  • 线上活动:如果活动是在线上举办,请将 @type 设置为 VirtualLocation,添加 location.url 属性。
  • 线上和实地混合举办的活动:如果某项活动是在线上和实地混合举办的,请在嵌套数组中同时添加线上和实地嵌套地点属性。例如:
    "location": [{
      "@type": "VirtualLocation",
      "url": "https://operaonline.stream5.com/"
    },
    {
      "@type": "Place",
      "name": "Snickerpark Stadium",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "100 West Snickerpark Dr",
        "addressLocality": "Snickertown",
        "postalCode": "19019",
        "addressRegion": "PA",
        "addressCountry": "US"
      }
    }]
location.address

PostalAddress

举办场所的详细街道地址。仅当活动是在实地举办时,此属性才是必要属性。

不建议:北京

建议:中国北京朝阳区朝外大街 20 号

美国示例

"location": {
  "@type": "Place",
  "name": "Snickerpark Stadium",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "100 West Snickerpark Dr",
    "addressLocality": "Snickertown",
    "postalCode": "19019",
    "addressRegion": "PA",
    "addressCountry": "US"
  }
}

日本示例

您可以通过其他方式写日本地址,Google 仍可理解该地址。下面是一个在不同字段中显示街道地址、市行政区和国家/地区的示例。

"location": {
  "@type": "Place",
  "name": "ダイバーシティ東京",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "江東区青海1-10",
    "addressLocality": "東京",
    "addressCountry": "日本"
  }
}

下面是一个在不同字段中显示街道地址和地址国家/地区的示例。

"location": {
  "@type": "Place",
  "name": "ダイバーシティ東京",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "東京都江東区青海1-10",
    "addressCountry": "日本"
  }
}

下面是一个在一行中显示整个地址的示例。

"location": {
  "@type": "Place",
  "name": "ダイバーシティ東京",
  "address": {
    "@type": "PostalAddress",
    "name": "東京都江東区青海 1-1-10 ダイバーシティ東京プラザ"
   }
}

地址最佳做法

  • 如果活动是在多条街道举办,请定义一个起始地点,并在说明中提供详细的信息。
  • 如果举办的活动没有明确定义的地点,请使用城市名称或最具代表性的地点。
  • 如果同时在多个地点举办活动,请为每个地点创建自己的活动对象。
location.url

URL

用户参加线上活动要访问的网址。仅当活动是在线上举办时,此属性才是必要属性。如果只有在报名之后才能访问参加活动的网址,请提供报名网址,使用户能够执行后续步骤以参加活动。

"location": {
  "@type": "VirtualLocation",
  "url": "https://operaonline.stream5.com/"
}
name

Text

活动的全称。

不建议:北京

不建议:**限时销售 - 王菲演唱会 - 500 元**

建议:王菲“幻乐一场”上海演唱会

建议:王菲见面会

最佳做法

  • 请勿将活动类型用作活动名称。例如,“音乐会”不是活动的描述性名称。
  • 请勿添加网址、价格或表演者等无关信息,而应在相应的属性中添加这些值。
  • 在标题中突出活动的独特方面。这有助于用户更快地做出决定(例如,“艺术家专题问答”)。
  • 不要添加短期宣传(例如,“立即订票”)。
startDate

DateTime

活动的开始日期和开始时间,采用 ISO-8601 格式。 请同时添加日期和时间,以便用户更轻松地找到适合其时间安排的活动。对于线上活动,您必须通过添加 UTC 或 GMT 时区设定来指定时区。

"startDate": "2025-07-21T19:00"
建议属性
description

Text

活动的说明。对活动的所有详情加以说明,以便用户更容易了解和参加活动。

最佳做法

  • 为具体活动添加简明扼要的说明。
  • 重点说明活动详情,而不是网站的功能。
  • 不要重复日期和地点等其他信息;请改为将这些信息添加到相应的属性中。
"description": "The Adventures of Kira and Morrison is coming to Snickertown in a can't miss performance."
endDate

DateTime

活动的结束日期和结束时间,采用 ISO-8601 格式。格式与 startDate 相同。请同时添加日期和时间,以便用户更轻松地找到适合其时间安排的活动。对于线上活动,您必须通过添加 UTC 或 GMT 时区设定来指定时区。

"endDate": "2025-07-21T23:00"
eventAttendanceMode

EventAttendanceModeEnumeration

指明活动是在线上、线下实地、还是线上和线下混合举办。如果您未添加此属性,Google 会将活动模式理解为 OfflineEventAttendanceMode,这意味着 Google 会认为该活动是在实地举办。请使用以下某个值:

下面是一个仅在线上举办的活动示例:

{
"@context": "https://schema.org",
"@type": "Event",
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"location": {
  "@type":"VirtualLocation",
  "url": "https://operaonline.stream5.com/"
  }
}

下面是一个部分在线上、部分在线下举办的活动示例:

{
"@context": "https://schema.org",
"@type": "Event",
"eventAttendanceMode": "https://schema.org/MixedEventAttendanceMode",
"location": {
  "@type": "VirtualLocation",
  "url": "https://operaonline.stream5.com/"
},
{
  "@type": "Place",
  "name": "Snickerpark Stadium",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "100 West Snickerpark Dr",
    "addressLocality": "Snickertown",
    "postalCode": "19019",
    "addressRegion": "PA",
    "addressCountry": "US"
    }
  }
}
eventStatus EventStatusType

活动的状态。如果您不使用此字段,Google 会将 eventStatus 理解为 EventScheduled。下面列出了一些支持的值。如果适用的话,您可以使用多种状态(例如,如果某项活动既重新安排又转到了线上)。

EventCancelled

活动已取消。

{
  "@context": "https://schema.org",
  "@type": "Event",
  "eventStatus": "https://schema.org/EventCancelled",
  "startDate": "2020-07-21T19:00"
}
EventMovedOnline

活动已从现场参加转为线上参加。

{
  "@context": "https://schema.org",
  "@type": "Event",
  "eventStatus": "https://schema.org/EventMovedOnline",
  "eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
  "location": {
    "@type":"VirtualLocation",
    "url": "https://operaonline.stream5.com/"
  },
  "startDate": "2020-07-21T19:00"
}
EventPostponed

活动已推迟到未来的某个日期,但具体日期未知。保留活动的 startDate 中的原定日期,直到您知道活动的举办时间时再更改。获知新的日期信息后,请将 eventStatus 更改为 EventRescheduled,并根据新的日期信息更新 startDateendDate

{
  "@context": "https://schema.org",
  "@type": "Event",
  "eventStatus": "https://schema.org/EventPostponed",
  "startDate": "2020-07-21T19:00"
}
EventRescheduled

活动已重新安排到未来的某个日期。使用相关的新日期更新 startDateendDate。您也可以将 eventStatus 字段标记为已重新安排并添加 previousStartDate

{
  "@context": "https://schema.org",
  "@type": "Event",
  "eventStatus": "https://schema.org/EventRescheduled",
  "startDate": "2020-07-21T19:00",
  "endDate": "2025-07-21T23:00",
  "previousStartDate": "2025-03-21T19:00"
}
EventScheduled

活动按计划举办。此值是活动的默认状态。如果您未设置 eventStatus,Google 会认为该活动将按计划举办。

{
  "@context": "https://schema.org",
  "@type": "Event",
  "eventStatus": "https://schema.org/EventScheduled",
  "startDate": "2020-07-21T19:00"
}
image

重复的 ImageObjectURL

活动或巡演的图片或徽标网址。添加图片有助于用户了解您的活动并与之互动。建议的图片宽度为 1920 像素(最小宽度为 720 像素)。

其他的图片指南:

  • 图片网址必须可抓取且可编入索引。如需检查 Google 能否访问您的网址,请使用网址检查工具
  • 图片必须代表标记的内容。
  • 图片必须采用受 Google 图片支持的文件格式。
  • 为取得最佳效果,建议您提供具有以下宽高比的多个高分辨率图片(宽度乘以高度至少为 50K 像素):16x9、4x3 和 1x1。

例如:

"image": [
  "https://example.com/photos/1x1/photo.jpg",
  "https://example.com/photos/4x3/photo.jpg",
  "https://example.com/photos/16x9/photo.jpg"
]
location.name

Text

活动举办地点或场地的详细名称。仅当活动是在实地举办时,此属性才是建议的属性。

不建议:北京

建议:人民艺术剧院

最佳做法

  • 除非是全市范围的活动,否则请勿添加城市名称。
  • location.name 属性必须是举办场地或地点的名称,不能与活动标题重复。如果您不知道举办地点的名称,请勿使用此属性。
offers

Offer

嵌套的 Offer,每种门票类型分别对应一个。
"offers": {
  "@type": "Offer"
}
offers.availability

Text

以下某一项:

"offers": {
  "@type": "Offer",
  "availability": "https://schema.org/InStock"
}
offers.price

Number

门票的最低价格,包括服务费和手续费。当价格发生变动或门票售罄时,请务必更新此值。

如果活动免费、无需手续费或服务费,请将 price 设置为 0

"offers": {
  "@type": "Offer",
  "price": "30"
}
offers.priceCurrency

Text

由 3 个字母表示的 ISO 4217 货币代码。

"offers": {
  "@type": "Offer",
  "priceCurrency": "USD"
}
offers.validFrom

DateTime

开始售票的日期和时间(只需为限定日期的活动指定此属性),采用 ISO-8601 格式

"offers": {
  "@type": "Offer",
  "validFrom": "2024-05-21T12:00"
}
offers.url

URL

售票网页的网址。

"offers": {
  "@type": "Offer",
  "url": "https://www.example.com/event_offer/12345_201803180430"
}

此网址必须符合以下要求:

  • 定向到一个着陆页,该页以清晰醒目的方式为公众提供购票的机会,让任何用户都有机会入场参加相应活动。
  • 是用户可以在包含相应活动的网页上点击的链接。
  • 可供 Googlebot 抓取(未被 robots.txt 屏蔽)。
organizer

OrganizationPerson

举办活动的人员或组织。这对于没有任何举办场地信息的线上活动来说尤为重要。如果您添加了 organizer,我们建议您添加以下属性:

organizer.name

Text

举办活动的人员或组织的名称。

organizer.url

URL

活动主办单位的域名网址。

performer

Person

参加活动的表演者,如音乐人和喜剧演员。请为每个表演者分别使用一个嵌套的 PerformingGroupPerson

"performer": {
  "@type": "PerformingGroup"
}
performer.name

Text

活动表演者的姓名,如音乐人和喜剧演员的姓名。

"performer": {
  "@type": "PerformingGroup",
  "name": "Kira and Morrison"
}
previousStartDate

DateTime

如果活动已重新安排,是指之前安排的活动开始日期。如果您添加了 previousStartDate,您还必须添加 eventStatus 属性,并将 eventStatus 设置为 EventRescheduled。不要使用其他活动状态。

对于线上活动,您必须通过添加 UTC 或 GMT 时区偏移来指定时区。

对于重新安排的活动,startDate 属性只能用于新安排的开始日期。在非常罕见的情形下,活动会多次推迟并重新安排,此字段可以重复添加。

{
"@context": "https://schema.org",
"@type": "Event",
"previousStartDate": ["2020-03-21T19:00-05:00", "2020-03-20T19:00-05:00", "2020-03-21T19:00-05:00"],
"eventStatus": "https://schema.org/EventRescheduled",
"startDate": "2020-07-21T19:00-05:00"
}

Monitor rich results with Search Console

Search Console is a tool that helps you monitor how your pages perform in Google Search. You don't have to sign up for Search Console to be included in Google Search results, but it can help you understand and improve how Google sees your site. We recommend checking Search Console in the following cases:

  1. After deploying structured data for the first time
  2. After releasing new templates or updating your code
  3. Analyzing traffic periodically

After deploying structured data for the first time

After Google has indexed your pages, look for issues using the relevant Rich result status report. Ideally, there will be an increase of valid items, and no increase in invalid items. If you find issues in your structured data:

  1. Fix the invalid items.
  2. Inspect a live URL to check if the issue persists.
  3. Request validation using the status report.

After releasing new templates or updating your code

When you make significant changes to your website, monitor for increases in structured data invalid items.
  • If you see an increase in invalid items, perhaps you rolled out a new template that doesn't work, or your site interacts with the existing template in a new and bad way.
  • If you see a decrease in valid items (not matched by an increase in invalid items), perhaps you are no longer embedding structured data in your pages. Use the URL Inspection tool to learn what is causing the issue.

Analyzing traffic periodically

Analyze your Google Search traffic using the Performance Report. The data will show you how often your page appears as a rich result in Search, how often users click on it and what is the average position you appear on search results. You can also automatically pull these results with the Search Console API.

问题排查

如果您在实施或调试结构化数据时遇到问题,请查看下面列出的一些实用资源。

  • 如果您使用了内容管理系统 (CMS) 或其他人负责管理您的网站,请向其寻求帮助。请务必向其转发列明问题细节的任何 Search Console 消息。
  • Google 不能保证使用结构化数据的功能一定会显示在搜索结果中。如需查看导致 Google 无法将您的内容显示为富媒体搜索结果的各种常见原因,请参阅结构化数据常规指南
  • 您的结构化数据可能存在错误。请参阅结构化数据错误列表
  • 如果您的网页受到结构化数据手动操作的影响,其中的结构化数据将会被忽略(但该网页仍可能会出现在 Google 搜索结果中)。如需修正结构化数据问题,请使用“人工处置措施”报告
  • 再次查看相关指南,确认您的内容是否未遵循指南。问题可能是因为出现垃圾内容或使用垃圾标记导致的。不过,问题可能不是语法问题,因此富媒体搜索结果测试无法识别这些问题。
  • 针对富媒体搜索结果缺失/富媒体搜索结果总数下降进行问题排查
  • 请等待一段时间,以便 Google 重新抓取您的网页并重新将其编入索引。请注意,网页发布后,Google 可能需要几天时间才会找到和抓取该网页。有关抓取和索引编制的常见问题,请参阅 Google 搜索抓取和索引编制常见问题解答
  • Google 搜索中心论坛中发帖提问。

如果您的活动无法显示在 Google 上的活动搜索服务中,或者您在 Search Console 中收到关于您的网站因存在垃圾结构化标记而遭受人工处置措施的警告,请尝试解决最常见的问题并查看我们的指南。如果您仍然遇到问题,请查看活动常见问题解答或在 Google 搜索中心论坛中发帖提问。

活动地点缺失或不正确

导致问题的原因:Google 无法理解您为 eventLocationaddressLocalityaddressRegion 属性提供的值。Google 尝试将活动地点信息与实际地点进行匹配,但您没有提供活动地点或提供的活动地点不正确。

解决问题

  1. 确保结构化数据包含 eventLocationaddressLocalityaddressRegion 的值(取决于活动地点,因为并非所有活动地点属性都适用)。
  2. 检查 location.name 字段是否使用活动地点名称,或者留空(如果没有活动地点名称)。常见问题是意外地将活动名称放置在 location.name 字段中。
  3. 验证修正措施:
    1. 打开富媒体搜索结果测试
    2. 抓取网址框中输入活动信息网址。
    3. 点击验证
    4. 点击预览

      成功:富媒体搜索结果测试在 Google 搜索预览工具中显示正确的 eventLocation

      重试:富媒体搜索结果测试在 Google 搜索预览工具中针对活动地点显示“false”。确保活动地点为真实地点。

我的网站未显示为购票的选项

导致问题的原因offers.url 属性缺失或不符合网址要求

解决问题

  1. 确保您的结构化数据包含 offers.url 属性。
  2. 确保您的网址符合 offers.url网址要求
  3. 请求 Google 重新抓取您的网站
  4. 提交(重新)评估请求

时间或日期不正确

导致问题的原因:时间或日期不正确。常见错误包括未针对时区提供时差或指定错误的开始时间(例如,将午夜作为开始时间)。

解决问题

  1. 指定正确的本地时区设定。例如,如果您的活动是在纽约时间晚上 7 点 (UTC - 5) 开始,晚上 9 点结束,那么 startDate 的值为 2019-08-15T19:00:00-05:00endDate 的值为 2019-08-15T21:00:00-05:00。如果您无法填写活动的时差,请不要设定时差(例如,使用 2019-08-15T19:00:00)。
  2. 确保开始时间或结束时间准确。一个常见错误是将活动设置为从午夜开始,而实际上活动并非从午夜开始。如果活动持续一整天,或者开始时间尚未公布,则只需指定日期。例如:

    建议2019-07-20

    不建议2019-07-20T00:00:00

    不建议2019-08-15T00:00:01+00:00

    不建议2019-08-15T00:00:00+00:00