会员回馈活动 (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.
- Add the required properties. Based on the format you're using, learn where to insert structured data on the page.
- Follow the guidelines.
- 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).
- 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. - 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
标记与validForMemberTier
和MembershipPointsEarned
结构化数据配合使用,可为购买您商品的客户定义会员福利。
结构化数据类型定义
您必须为结构化数据添加必需的属性,才能在 Google 搜索中使用这些数据。您还可添加建议的属性,以便添加与您的会员回馈活动相关的更多信息,进而提供更好的用户体验。
MemberProgram
使用以下属性可为您的商家描述一个或多个会员回馈活动,以及每个会员回馈活动的一个或多个等级。如需了解 MemberProgram
的完整定义,请访问 schema.org/MemberProgram。
必要属性 | |
---|---|
description |
会员回馈活动的说明,其中介绍了会员的主要福利。 |
hasTiers |
定义会员回馈活动中的等级。会员回馈活动必须至少包含一个会员等级。
请参阅 Google 支持的 |
name |
会员回馈活动的名称。 |
建议属性 | |
---|---|
url |
购物者可在上面注册该会员回馈活动的网页网址。
请勿提供多个网址。如果未提供该网址,系统会假定包含 |
MemberProgramTier
MemberProgramTier
用于定义 MemberProgram
下的等级。
一个会员回馈活动可以包含多个等级。例如,青铜、白银和黄金。
如需了解 MemberProgramTier
的完整定义,请访问 schema.org/MemberProgramTier。
必要属性 | |
---|---|
hasTierBenefit |
此会员等级的会员可享受的福利。会员等级可以有多个福利。系统也支持不带网址前缀的简称(例如
|
name |
会员等级的名称。 |
建议属性 | |
---|---|
hasTierRequirement |
加入会员等级的要求。如果未指定,则任何人都可以免费加入该等级。对于非免费等级,请指定表示加入该等级所需条件的类型值。
|
membershipPointsEarned |
当 |
url |
购物者可在上面注册该会员等级的网页网址。 请勿提供多个网址。 |
使用 Merchant Center 通过 Google 配置会员回馈活动
会员回馈活动可能难以配置,并且很难通过标记保持最新状态。如果您有 Google Merchant Center 账号,则可以考虑直接在 Google Merchant Center 中配置会员回馈活动,而不是使用标记。如需了解详情,请参阅商家帮助中心内关于会员回馈活动的文章。
如果您同时提供标记和 Merchant Center 会员回馈活动,Google 将使用 Merchant Center 设置。
问题排查
如果您在实施或调试结构化数据时遇到问题,请查看下面列出的一些实用资源。
- 如果您使用了内容管理系统 (CMS) 或其他人负责管理您的网站,请向其寻求帮助。请务必向其转发列明问题细节的任何 Search Console 消息。
- Google 不能保证使用结构化数据的功能一定会显示在搜索结果中。如需查看导致 Google 无法将您的内容显示为富媒体搜索结果的各种常见原因,请参阅结构化数据常规指南。
- 您的结构化数据可能存在错误。请查看结构化数据错误列表和“无法解析的结构化数据”报告。
- 如果您的网页受到结构化数据手动操作的影响,其中的结构化数据将会被忽略(但该网页仍可能会出现在 Google 搜索结果中)。如需修正结构化数据问题,请使用“人工处置措施”报告。
- 再次查看相关指南,确认您的内容是否未遵循指南。问题可能是因为出现垃圾内容或使用垃圾标记导致的。不过,问题可能不是语法问题,因此富媒体搜索结果测试无法识别这些问题。
- 针对富媒体搜索结果缺失/富媒体搜索结果总数下降进行问题排查。
- 请等待一段时间,以便 Google 重新抓取您的网页并重新将其编入索引。请注意,网页发布后,Google 可能需要几天时间才会找到和抓取该网页。有关抓取和索引编制的常见问题,请参阅 Google 搜索抓取和索引编制常见问题解答。
- 在 Google 搜索中心论坛中发帖提问。