> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 自定义XML 源数

## 自定义Shopify至GMC的数据字段映射指南

通过此功能，您可以轻松定制从Shopify同步至Google商家中心(GMC)的数据字段。以下是详细操作步骤：

### 第一步：进入XML模板设置
1. 打开需要修改的XML Feed模板
![XML模板界面](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_15xwevy.png)

### 第二步：定位需要修改的字段
在XML代码中找到需要编辑的字段标签，例如：
```xml
<g:brand>{{product_vendor}}</g:brand>
```
这表示Shopify中的"产品供应商"字段将被映射到GMC的"品牌"字段

### 第三步：选择动态值
1. 点击"选择动态值"按钮
2. 从Shopify字段列表中选择要映射的字段，例如：
* 选择`{{product_vendor}}`映射产品供应商
* 选择`{{product_product_title}}`映射产品标题
![动态值选择界面](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_11ifxzx.png)

### 第四步：替换字段值
在内容框中直接替换原有值，例如：
```xml
<!-- 修改前 -->
<g:brand>{{product_vendor}}</g:brand>

<!-- 修改后 --> 
<g:brand>{{product_product_title}}</g:brand>
```
![字段值替换示例](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_10sygbz.png)

### 第五步：预览修改
点击"预览"按钮确认修改是否正确应用
![预览界面](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1rxkjmb.png)

### 第六步：保存并生成Feed
1. 保存所有修改
2. 重新生成XML Feed
3. 复制新链接更新至GMC

[🧩了解更多产品Feed设置](https://help.omegatheme.com/en/article/product-feeds-cvy99y/)

支持的多渠道XML Feed包括：
* Google
* Bing  
* Facebook
* Klaviyo
* Pinterest
* TikTok
关注我们公众号： 

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/qrcodeforghc0a8b123aa27258_vkzllz.jpg)


