会员回馈活动 (MemberProgram) 结构化数据

搜索结果中包含会员价的购物知识面板

许多商家都有会员回馈活动,可为会员提供特殊福利,例如特殊价格和积分。向网站添加 MemberProgram 结构化数据后,Google 搜索可以使用这些信息在搜索结果中显示您的商品和知识面板的会员福利。

您可以使用嵌套在 Organization 结构化数据类型下的 MemberProgram 结构化数据类型来指定为商家提供的会员回馈活动。 如需为个别商品指定会员回馈福利(例如会员价格和获得的积分),请按照商家信息中所述,在 Offer 结构化数据标记下单独添加 UnitPriceSpecification 标记。

功能可用性

在澳大利亚、巴西、加拿大、法国、德国、墨西哥、英国和美国,无论是桌面设备还是移动设备,Google 搜索结果中均会显示会员回馈活动信息。

How to add structured data

Structured data is a standardized format for providing information about a page and classifying the page content. If you're new to structured data, you can learn more about how structured data works.

Here's an overview of how to build, test, and release structured data.

  1. Add the required properties. Based on the format you're using, learn where to insert structured data on the page.
  2. Follow the guidelines.
  3. Validate your code using the Rich Results Test and fix any critical errors. Consider also fixing any non-critical issues that may be flagged in the tool, as they can help improve the quality of your structured data (however, this isn't necessary to be eligible for rich results).
  4. Deploy a few pages that include your structured data and use the URL Inspection tool to test how Google sees the page. Be sure that your page is accessible to Google and not blocked by a robots.txt file, the noindex tag, or login requirements. If the page looks okay, you can ask Google to recrawl your URLs.
  5. To keep Google informed of future changes, we recommend that you submit a sitemap. You can automate this with the Search Console Sitemap API.

示例

下面是一个会员回馈活动 MemberProgram 结构化数据标记示例,其中有两个会员等级。

<html>
  <head>
    <title>About Us</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "OnlineStore",
      "hasMemberProgram": {
        "@type": "MemberProgram",
        "name": "Membership Plus",
        "description": "For frequent shoppers this is our top-rated loyalty program",
        "url": "https://www.example.com/membership-plus",
        "hasTiers": [
          {
            "@type": "MemberProgramTier",
            "@id": "#plus-tier-silver",
            "name": "silver",
            "url": "https://www.example.com/membership-plus-silver",
            "hasTierBenefit": [
              "https://schema.org/TierBenefitLoyaltyPoints"
            ],
            "membershipPointsEarned": 5
          },
          {
            "@type": "MemberProgramTier",
            "@id": "#plus-tier-gold",
            "name": "gold",
            "url": "https://www.example.com/membership-plus-gold",
            "hasTierRequirement":
            {
              "@type": "CreditCard",
              "name": "Example platinum card plus"
            },
            "hasTierBenefit": [
              "https://schema.org/TierBenefitLoyaltyPrice",
              "https://schema.org/TierBenefitLoyaltyPoints"
            ],
            "membershipPointsEarned": 10
          }
        ]
      }
      // Other Organization-level properties
      // ...
    }
    </script>
  </head>
  <body>
  </body>
</html>

指南

为了让您的会员回馈活动标记能够在 Google 搜索中使用,您必须遵循以下指南:

技术指南

  • MemberProgram 标记嵌套在网页上指定商家管理详细信息和政策的 Organization 类型下。 如需了解详情,请参阅组织标记文档。
  • 如需为个别商品指定会员回馈福利(例如会员价格和获得的积分),请添加为商家信息定义的 UnitPriceSpecification 标记。 您为商家定义的 MemberProgram 标记与 validForMemberTierMembershipPointsEarned 结构化数据配合使用,可为购买您商品的客户定义会员福利。

结构化数据类型定义

您必须为结构化数据添加必需的属性,才能在 Google 搜索中使用这些数据。您还可添加建议的属性,以便添加与您的会员回馈活动相关的更多信息,进而提供更好的用户体验。

MemberProgram

使用以下属性可为您的商家描述一个或多个会员回馈活动,以及每个会员回馈活动的一个或多个等级。如需了解 MemberProgram 的完整定义,请访问 schema.org/MemberProgram

必要属性
description

Text

会员回馈活动的说明,其中介绍了会员的主要福利。

hasTiers

重复 MemberProgramTier

定义会员回馈活动中的等级。会员回馈活动必须至少包含一个会员等级。 请参阅 Google 支持的 MemberProgramTier 属性列表。

name

Text

会员回馈活动的名称。

建议属性
url

URL

购物者可在上面注册该会员回馈活动的网页网址。 请勿提供多个网址。如果未提供该网址,系统会假定包含 MemberProgram 结构化数据的网页的网址就是该网址。

MemberProgramTier

MemberProgramTier 用于定义 MemberProgram 下的等级。 一个会员回馈活动可以包含多个等级。例如,青铜、白银和黄金。

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

必要属性
hasTierBenefit

重复 TierBenefitEnumeration

此会员等级的会员可享受的福利。会员等级可以有多个福利。系统也支持不带网址前缀的简称(例如 TierBenefitLoyaltyPoints)。

  • https://schema.org/TierBenefitLoyaltyPoints:福利是赚取积分。还要指定 membershipPointsEarned
  • https://schema.org/TierBenefitLoyaltyPrice:福利是会员专享的价格。
name

Text

会员等级的名称。

建议属性
hasTierRequirement

CreditCardMonetaryAmountUnitPriceSpecificationText

加入会员等级的要求。如果未指定,则任何人都可以免费加入该等级。对于非免费等级,请指定表示加入该等级所需条件的类型值。

  • https://schema.org/CreditCard:指定用户需要注册才能加入该等级的信用卡。 例如:
      "hasTierRequirement": {
        "@type": "CreditCard",
        "name": "Capital Two cashback rewards platinum card"
      }
  • https://schema.org/MonetaryAmount:指定加入该等级所需的最低支出金额。 例如,如需设置支出下限为 250 美元的条件,请指定:
      "hasTierRequirement": {
        "@type": "MonetaryAmount",
        "value": 250,
        "currency": "USD"
      }
  • https://schema.org/UnitPriceSpecification:指定消费者需要为该等级的会员资格支付的定期费用。 例如,如果会员资格为 12 个月,每月结算一次,金额为 9.99 欧元,请指定:
      "hasTierRequirement": {
        "@type": "UnitPriceSpecification",
        "price": 9.99,
        "priceCurrency": "EUR",
        "billingDuration": 12,
        "billingIncrement": 1,
        "unitCode": "MON"
      }
  • https://schema.org/Text:说明加入该等级的任何其他要求。例如:
    "hasTierRequirement": "Purchase a share in our coop and volunteer a minimum of 1 day a month to keep operating costs low."
membershipPointsEarned

QuantitativeValue

hasTierBenefit 等于 https://schema.org/TierBenefitLoyaltyPoints 时,消费者每消费 1 个货币单位可获得的积分数。

url

URL

购物者可在上面注册该会员等级的网页网址。 请勿提供多个网址。

使用 Merchant Center 通过 Google 配置会员回馈活动

会员回馈活动可能难以配置,并且很难通过标记保持最新状态。如果您有 Google Merchant Center 账号,则可以考虑直接在 Google Merchant Center 中配置会员回馈活动,而不是使用标记。如需了解详情,请参阅商家帮助中心内关于会员回馈活动的文章

如果您同时提供标记和 Merchant Center 会员回馈活动,Google 将使用 Merchant Center 设置。

问题排查

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