跳到内容
请注意::本文仅为方便您阅读而提供。本文由翻译软件自动翻译,可能未经校对。本文的英文版应被视为官方版本,您可在此找到最新信息。您可以在此处访问。

高级电子商务报告

上次更新时间: 2025年11月17日

可与以下任何订阅一起使用,除非另有说明:

通过使用HubSpot的报告和数据工具,深入洞察您的电子商务客户。本文将详细说明如何创建并运用数据集自定义属性模块,从而更好地理解客户行为、细分受众群体、追踪购买历史,并优化销售与营销策略。

本文将通过分步指南,指导您设置忠诚度评分、分析购买模式及监控物流流程,同时配置数据集 和自定义报告。借助这些工具,您可实现联系人细分、营销个性化及生成可操作报告。

开始前准备

在设置用例前, 在交易对象上 创建包含以下阶段的电商销售漏斗

  • 待结算
  • 结账放弃
  • 结账完成
  • 已发货
  • 订单取消

需要订阅 创建数据集需要Data Hub Enterprise订阅。

需要权限 创建或编辑数据集需要超级管理员权限或Data Studio 的编辑权限

需要权限 需要超级管理员权限或Data Studio 的同步权限才能同步数据集。

某些功能需要 HubSpot 点数 需要 HubSpot 积分才能同步和导出数据集。

需要权限 创建属性需要超级管理员权限或编辑属性设置权限

客户忠诚度评级

使用数据集计算客户忠诚度评分,并通过进一步筛选评分将客户划分为不同层级(例如:最忠诚客户归入第一层级)。利用评分和层级构建报告 与细分群体,从而针对不同客户定制销售和营销策略

您可自定义忠诚度评分阈值,示例中的评分计算方式如下:

  • 若联系人名下有在过去60天内成交的交易,则赋予5分。
  • 若联系人总收入超过100美元,则赋值10分。
  • 若联系人平均页面浏览量超过3次,则计10分。
  • 若联系人访问您网站的次数超过8次,则赋予5分。

分层公式计算方式如下:

  • 忠诚度评分达15分及以上的联系人归入第一层级。
  • 忠诚度评分介于9至14的联系人归入第二层级。
  • 忠诚度评分低于9分的联系人归为第三层级。

通过数据集设置忠诚度与分层评分

通过数据集设置忠诚度与分层评分:

  1. 在你的 HubSpot 帐户中,导航到数据管理 > Data Studio
  2. 在右上角点击创建数据集。若需将此字段添加至现有数据集,请在顶部点击数据集选项卡,然后选择现有数据集
  3. 选择"联系人"作为主对象,点击"继续"

    Screenshot of creating a new dataset, selecting 'Contacts' as the primary object from the data source menu.
  4. 在右侧面板中,点击+ 添加来源

    Screenshot highlighting the '+ Add source' button in the dataset creation tool to add a secondary object.
  5. 选择交易并点击继续
  6. 在右侧面板中点击“列”,然后点击“+ 创建新列”

    Screenshot showing the 'Columns' tab open and the '+ Create new column' button highlighted for dataset customization.
  7. 点击公式以折叠公式菜单,然后点击构建自定义公式(高级)

    Screenshot highlighting the 'Build custom formula (Advanced)' option under the Formulas menu for creating a custom metric.
  8. 在底部“列名称”字段中输入“忠诚度评分”
  9. 在编辑框中输入以下内容:
    IF(DATEDIFF("DAY",[CONTACT.recent_deal_close_date], NOW())<60,5,0)+
    IF([CONTACT.total_revenue]>100, 10,0)+
    IF([CONTACT.hs_analytics_average_page_views]>3,10,0)+
    IF([CONTACT.hs_analytics_num_visits]>8,5,0)
  10. 在公式窗口右上角点击保存

    The formula editor in a HubSpot dataset, showing the completed custom formula for the 'Loyalty score' column and the 'Save' button.
  11. 点击+ 创建新列
  12. 点击公式以折叠公式菜单,然后点击构建自定义公式(高级)
  13. 在底部列名称字段中输入"忠诚度等级"。
  14. 在编辑框中输入以下内容:
    IF(
    [Loyalty score] >= 15,
    "Tier 1",
    IF([Loyalty score] >= 9, "Tier 2", "Tier 3"))
  15. 在公式窗口右上角,点击保存
  16. 右上角点击保存以保存数据集。

    Screenshot highlighting the 'Save' button in the upper right corner to finalize the new dataset configuration.
  17. 输入名称描述,然后点击保存
  18. 使用数据集时,请在右上角点击“在 downCarat 中使用”,并选择相应选项

购买历史

使用自定义属性数据集生成联系人购买历史报告。报告内容包括:

  • 按购物篮规模划分的平均订单总额。
  • 自上次购买以来的天数。
  • 重复购买者与单次购买者。
  • 按原始来源划分的平均购买金额。

按购物车规模划分的平均订单总额

通过平均订单总额分析,探索通过向上销售或交叉销售提升平均订单价值的途径。

本示例中,创建两个自定义属性以计算平均购买金额和购买商品数量。随后创建报告,根据订单规模(购买商品数量)查看联系人的平均购买金额。

  1. 创建平均购买金额的汇总属性,包含以下属性:
    • 对象类型: 联系人
    • 字段类型: 汇总
    • 汇总类型: 平均值
    • 数字格式 货币
    • 关联记录类型: 交易
    • 关联记录属性: 金额
  2. 创建采购订单规模的汇总属性,具有以下属性:
    • 对象类型: 交易
    • 字段类型: 汇总
    • 汇总类型: 计数
    • 数字格式 格式化或 未格式化数字
    • 关联记录类型: 明细行
    • 关联记录属性: 数量
  3. 创建具有以下属性的自定义报告
    • 主数据源: 联系人
    • 附加数据源: 交易
    • Y轴属性: 平均采购金额
    • X轴属性: 采购订单规模

Custom report showing the average purchase amount broken down by purchase order size, with a high order size yielding a higher average purchase amount.

上次购买天数

利用数据集按上次购买后天数对联系人进行分组。您可在分组邮件营销及其他营销渠道中运用这些数据,持续维系已购买客户的互动。

  1. 在你的 HubSpot 帐户中,导航到数据管理 > Data Studio
  2. 在右上角点击创建数据集。若需将此字段添加至现有数据集,请在顶部点击数据集选项卡,然后选择现有数据集
  3. 选择"联系人"作为主对象并点击"继续"

    Screenshot of creating a new dataset, selecting 'Contacts' as the primary object from the data source menu.
  4. 在右侧面板中,点击+ 添加数据源

    Screenshot highlighting the '+ Add source' button in the dataset creation tool to add a secondary object.
  5. 选择“交易”并点击“继续”
  6. 在右侧面板点击,然后点击+创建新列

    Screenshot showing the 'Columns' tab open and the '+ Create new column' button highlighted for dataset customization.
  7. 点击公式以折叠公式菜单,然后点击构建自定义公式(高级)

    Screenshot highlighting the 'Build custom formula (Advanced)' option under the Formulas menu for creating a custom metric.
  8. 在底部“列名称”字段中输入“上次购买后经过的时间”。
  9. 在编辑框中输入以下内容:
    DATEDIFF("DAY", [CONTACT.recent_deal_close_date], NOW())
  10. 在公式窗口右上角点击保存

    The formula editor showing the DATEDIFF formula used to calculate the 'Time since last purchase' in a HubSpot dataset.
  11. 右上角点击保存以保存数据集。

    Screenshot highlighting the 'Save' button in the upper right corner to finalize the new dataset configuration.
  12. 输入名称描述,然后点击保存
  13. 要使用该数据集,请在右上角点击 downCarat 中使用,并选择相应选项

重复购买者

使用数据集根据购买次数对联系人进行分段。您可以在细分电子邮件营销和其他营销渠道中使用这些数据,以吸引客户重复购买。

  1. 在你的 HubSpot 帐户中,导航到数据管理 > Data Studio
  2. 在右上角,点击创建数据集。若将此字段添加至现有数据集,请在顶部点击数据集选项卡,然后选择现有数据集
  3. 选择联系人作为主对象,点击继续

    Screenshot of creating a new dataset, selecting 'Contacts' as the primary object from the data source menu.
  4. 在右侧面板中,点击+ 添加数据源

    Screenshot highlighting the '+ Add source' button in the dataset creation tool to add a secondary object.
  5. 选择“交易”并点击“继续”
  6. 在右侧面板点击,然后点击+创建新列

    Screenshot showing the 'Columns' tab open and the '+ Create new column' button highlighted for dataset customization.
  7. 点击公式以折叠公式菜单,然后点击应用条件逻辑

    Screenshot highlighting the 'Apply conditional logic' option under the Formulas menu for creating a custom property.
  8. 在底部“列名称”字段中输入“重复购买者”
  9. IF:
    • 点击“选择属性或列”下拉菜单,选择“关联交易数量”。
    • 点击“=”下拉菜单 ,选择“>”( 大于)。
    • 输入值字段中输入1
  10. THEN 旁边:
    • 类型字段保留为字符串
    • 输入值字段中,输入"重复购买者"。
  11. IF THEN语句下,点击+添加else if语句
  12. IF 旁边:
    • 点击"选择属性或列"下拉菜单,选择"关联交易数量"。
    • 点击“= ”下拉菜单, 选择“=( 等于)”。
    • 输入值字段中输入1
  13. THEN 旁边:
    • 保持类型字段为字符串
    • 输入值字段中输入单一购买者
  14. 在“否则”旁边:
    1. 类型字段保持为字符串
    2. 输入值字段中,输入无购买记录

      The conditional logic interface showing the IF/THEN/OTHERWISE statements used to determine if a contact is a repeat or single purchaser.
  15. 在公式窗口右上角点击保存

    Screenshot of the conditional logic formula in the editor, with the Save button highlighted in the upper right corner.
  16. 在右上角点击保存以保存数据集。

    Screenshot highlighting the 'Save' button in the upper right corner to finalize the new dataset configuration.
  17. 输入名称描述,然后点击保存
  18. 要使用该数据集,请在右上角点击“在 downCarat 中使用”,并选择相应选项

原始来源平均购买金额

通过原始来源平均购买金额计算,分析各渠道(如直接流量、推荐流量、付费社交)的购买金额。

本示例中需创建自定义属性计算平均消费额,随后生成按原始来源分类的联系人平均消费额报告。

请注意:若您此前已为"按购物车规模计算平均订单总额"用例设置过平均购买金额的自定义属性,可直接复用该属性,无需创建新属性。

  1. 创建一个汇总属性,用于计算平均购买金额,其属性如下:
    • 对象类型: 联系人
    • 字段类型: 汇总
    • 汇总类型: 平均值
    • 数字格式 货币
    • 关联记录类型: 交易
    • 关联记录属性: 金额
  2. 创建具有以下属性的自定义报告
    • 主数据源: 联系人
    • 附加数据源: 交易
    • Y轴属性: 平均购买金额
    • X轴属性: 原始流量来源(交易属性)

advanced-commerce-average-purchase-amount-original-source

运输与物流

使用数据集报告发货时长及逾期发货订单数量。

发货时长与延迟发货

本示例中,需设置自定义属性并在工作流中使用该属性记录结账完成的时间和日期。创建数据集字段以计算完成发货所需时长,另设字段计算发货逾期时间。这些字段可用于生成报告

  1. 设置您的销售漏斗
  2. 创建具有以下属性的自定义属性
    • 标签: 结账完成时间戳
    • 对象类型: 交易
    • 字段类型: 日期时间选择器(仅显示日期和时间)且允许任何日期。

      Custom deal property creation screen showing the configuration for 'Checkout complete timestamp' as a Date and time picker.
  3. 创建包含以下触发器和操作的工作流
    • 触发器:交易处于电子商务销售漏斗中的"结账完成"阶段。
    • 操作:结账记录的时间戳属性设置为结账完成的日期。

      Workflow showing the trigger 'Deal is at the Checkout completed stage' and the action 'Set property value' for the timestamp.
  4. 在你的 HubSpot 帐户中,导航到数据管理 > Data Studio
  5. 在右上角点击创建数据集。若需将此字段添加至现有数据集,请点击顶部的数据集选项卡,然后选择现有数据集
  6. 选择"联系人"作为主对象并点击"继续"

    Screenshot of creating a new dataset, selecting 'Contacts' as the primary object from the data source menu.
  7. 在右侧面板中,点击+ 添加数据源

    Screenshot highlighting the '+ Add source' button in the dataset creation tool to add a secondary object.
  8. 选择“交易”并点击“继续”
  9. 在右侧面板点击列,然后点击edit 选择列

    Screenshot of the dataset columns tab, highlighting the button to choose which columns or properties to include.
  10. 在右侧面板中,点击“交易”以折叠交易属性,勾选 “记录ID ”和“区域”复选框。
  11. 点击公式以折叠公式菜单,然后点击构建自定义公式(高级)

    Screenshot highlighting the 'Build custom formula (Advanced)' option under the Formulas menu for creating a custom metric.
  12. 在底部列名称字段中输入“完成发货所需时长”。
  13. 在编辑框中输入以下内容:
    ABS(DATEDIFF("DAY", [DEAL.checkout_complete_timestamp], [DEAL. closedate]))
  14. 在公式窗口右上角点击保存

    Formula editor showing the ABS(DATEDIFF) calculation used to determine the 'Duration to complete shipping' for a deal.
  15. 在右侧面板中点击,然后点击+ 创建新列

    Screenshot showing the 'Columns' tab open and the '+ Create new column' button highlighted for dataset customization.
  16. 点击公式以折叠公式菜单,然后点击应用条件逻辑

    Screenshot highlighting the 'Apply conditional logic' option under the Formulas menu for creating a custom property.
  17. 在底部“列名称”字段中输入:超期发货
  18. IF:
    • 点击“选择属性或列”下拉菜单,选择“完成发货所需时长”。
    • 点击“=”下拉菜单 ,选择“>”( 大于)。
    • 输入值字段中输入7
  19. THEN 旁边:
    • 保持类型字段为字符串
    • 输入值字段中输入逾期
  20. 在“否则”旁边:
    • 类型字段保持为字符串
    • 输入值字段中输入"在范围内"。

      The conditional logic interface showing the IF/THEN/OTHERWISE statements used to determine if a deal's shipping status is 'Overdue' or 'Within range'.
  21. 在公式窗口右上角点击保存

    Screenshot of the completed conditional logic formula, with the Save button highlighted in the upper right corner of the formula editor.
  22. 在右上角点击保存以保存数据集。

    Screenshot highlighting the 'Save' button in the upper right corner to finalize the new dataset configuration.
  23. 输入名称描述,然后点击保存
  24. 要使用该数据集,请在右上角点击“在 downCarat 中使用”,并选择相应选项
  25. 随后可创建具有以下属性的自定义报告
    • 逾期发货率报告:
      • 主要数据源:您创建的数据集
      • 图表类型: 饼图
      • 数值: 交易记录ID(独立计数)
      • 按: 运输逾期

        Example pie chart report showing the breakdown of 'Shipping overdue' versus 'Within range' deals based on the custom dataset field.
    • 按区域划分的运输逾期报告:
      • 主要数据源:您创建的数据集
      • 图表类型: 饼图
      • 数值: 发货逾期情况
      • 细分维度: 交易区域
    • 平均发货完成时长:
      • 主要数据源: 您创建的数据集
      • 图表类型: 竖条形图
      • 纵坐标: 运输完成时长(平均值)
      • 按区域细分: 交易区域

按受众或产品细分的毛利润分析

使用数据集按产品受众或产品名称分解产品数据,从而识别哪些受众或产品带来最高回报。

  1. 在你的 HubSpot 帐户中,导航到数据管理 > Data Studio
  2. 在右上角点击创建数据集。若需将此字段添加至现有数据集,请在顶部点击数据集选项卡,然后选择现有数据集
  3. 选择行项目作为 主要对象,然后点击继续

    Screenshot of creating a new dataset, selecting 'Line items' as the primary object from the data source menu.
  4. 在右侧面板中,点击“+ 添加来源”。

    Screenshot highlighting the '+ Add source' button in the dataset creation tool to add a secondary object.
  5. 选择“交易”并点击“继续”
  6. 在右侧面板中,点击+ 添加来源
  7. 选择联系人并点击继续
  8. “交易阶段”列中,记录“已发货”阶段的ID编号。

    Close-up screenshot showing the 'Shipped' deal stage ID number used for the gross profit formula.
  9. 在右侧面板中点击,然后点击+ 创建新列

    Screenshot showing the 'Columns' tab open and the '+ Create new column' button highlighted for dataset customization.
  10. 点击公式以折叠公式菜单,然后点击构建自定义公式(高级)

    Screenshot highlighting the 'Build custom formula (Advanced)' option under the Formulas menu for creating a custom metric.
  11. 在底部列名称字段中输入"毛利润"。
  12. 在编辑框中输入以下内容:
    IF([Deal stage]=="Shipped ID number (e.g., 57441674)", [Unit price] - [Unit cost], null)
  13. 在公式窗口右上角点击保存

    Formula editor showing the IF logic used to calculate 'Gross profit' based on the 'Shipped' deal stage ID number.
  14. 右上角点击保存以保存数据集。

    Screenshot highlighting the 'Save' button in the upper right corner to finalize the new dataset configuration.
  15. 输入名称描述,然后点击保存
  16. 要使用该数据集,请在右上角点击 downCarat 中使用,并选择相应选项

客户旅程与行为分析

按产品类型划分的页面浏览量

需要订阅 使用自定义事件需要企业订阅。

通过自定义事件追踪产品浏览量,并利用自定义属性进行分类。创建报告分析哪些产品类型获得最多浏览量。

  1. 创建自定义事件以追踪产品浏览量。此场景建议通过APIJavaScript创建事件。若需自定义事件配置帮助,请考虑联系HubSpot解决方案合作伙伴
  2. 创建自定义事件时,为产品类型创建自定义枚举属性

    Screenshot of the custom enumeration property configuration screen for creating the 'Product type' property for custom events.
  3. 为自定义事件创建自定义报告。在报告中,将产品类型绘制在 x 轴上,自定义事件绘制在 y 轴上。

    Example custom report displaying the total number of product views broken down by the custom 'Product type' enumeration property.

客户购买旅程

需要订阅 创建基于联系人的客户旅程报告需订阅Marketing Hub 或 Service Hub Enterprise企业版。

通过自定义事件追踪客户旅程中的触点,涵盖浏览商品、加入购物车、放弃购物车及完成购买等环节。将自定义事件添加至客户旅程报告,以追踪各事件间的转化情况。

请注意:若您此前已为"按产品类型划分的页面浏览量"用例设置过页面浏览量的自定义属性,可直接复用该属性,无需创建新属性。

  1. 创建三个自定义事件
  2. 将自定义事件作为阶段添加至客户旅程报告

    Customer journey report visualization showing stages from Product views, Cart status, Checkout page tracker, and Purchase, with conversion rates displayed.

发送购物车放弃邮件

需要订阅 使用营销邮件中的模块需订阅Marketing Hub ProfessionalEnterprise版本。

通过发送个性化的购物车放弃 邮件保持客户参与度。本示例中,在工作流中使用"结账放弃"管道阶段向购物车内含放弃商品的买家发送邮件。

  1. 设置销售管道
  2. 在设计管理器中创建模块。向模块添加以下自定义模块语法(根据需要更新标题和字体样式):

    {#{{ module.deal.id }}#}
    
    {# Get the Contact associated to the Deal #}
    {% set associated_contact = crm_associations({{ module.deal.id }}, "HUBSPOT_DEFINED", 3, "orderBy=-createdate") %}
    
    {# Get the Line_Items associated to the Deal #}
    {% set associated_line_items = crm_associations({{ module.deal.id }}, "HUBSPOT_DEFINED", 19, "orderBy=-createdate") %}
    
    <h2 style="font-family:verdana; margin-top:20px; color:#ff6347; margin-left:10px; margin-right:10dp; text-align: center;"> Hello {{ associated_contact.results[0].firstname }}, Thank you for Visiting our Store!
    </h2>
    
    <p style="margin-left:10px; margin-right:10dp; text-align: center;"> We noticed that you haven't completed your order. Here is a little reminder of what you have in your current shopping cart. Feel free to complete your purchase by clicking on the button below. </p>
    
    {# Grab the product of each line item and display the info #}
    {% for item in associated_line_items.results %}
    {% set product = crm_object("product", item.hs_product_id, "name,price,hs_url", false) %}
    <div style="text-align:center"> <img style="width: 40%" src={{ product.hs_url }} /> <p> {{ product.name }} </p> <h4 style="font-family:verdana;"> ${{ product.price }} </h4>
    </div>
    {% endfor %}
    
    
  3. 创建营销邮件并添加该模块
  4. 创建包含以下触发器和操作的工作流
    • 触发器:交易处于电商销售漏斗中的"购物车放弃"阶段。开启重新注册功能。
    • 操作:发送邮件。

      Workflow showing the trigger 'Deal is in the Abandoned cart stage' followed by the action 'Send email' for a cart recovery sequence.
这篇文章有帮助吗?
此表单仅供记载反馈。了解如何获取 HubSpot 帮助