如何为Google Merchant Center配置custom_label_0至custom_label_5?
适配Google Merchant Center的custom_label实现方案
Google Merchant Center不识别Meta的product:custom_label属性,要让它抓取到custom_label_0至custom_label_5,需采用Schema.org结构化数据实现,以下是两种可行方案:
1. JSON-LD格式(优先推荐)
在产品页面的<head>或<body>中嵌入JSON-LD脚本,将custom_label按顺序放入customLabel数组——数组索引对应label编号(第一个元素对应custom_label_0,以此类推):
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Product", "name": "你的产品名称", "sku": "产品SKU", "customLabel": [ "custom_label_0内容", "custom_label_1内容", "custom_label_2内容", "custom_label_3内容", "custom_label_4内容", "custom_label_5内容" ] } </script>
- 不需要的标签可留空字符串,或直接省略对应数组元素,保持顺序对应即可。
2. Microdata格式
若网站已使用Microdata标记产品,直接在产品节点下添加多个带itemprop="customLabel"的元素,顺序对应custom_label_0到5:
<div itemscope itemtype="https://schema.org/Product"> <h1 itemprop="name">你的产品名称</h1> <span itemprop="customLabel">custom_label_0内容</span> <span itemprop="customLabel">custom_label_1内容</span> <!-- 依次添加custom_label_2至5的元素 --> </div>
验证方法
用Google结构化数据测试工具检查标记是否生效,确保customLabel字段被正确识别。同时可保留原Meta标签,两种标记互不冲突,能同时支持Meta和Google的抓取需求。
内容的提问来源于stack exchange,提问作者E. Barly
相关产品推荐
相关产品推荐

