跳到內容
請注意::這篇文章的翻譯只是為了方便而提供。譯文透過翻譯軟體自動建立,可能沒有經過校對。因此,這篇文章的英文版本應該是包含最新資訊的管理版本。你可以在這裡存取這些內容。

進階電子商務報告

上次更新時間: 2025年11月17日

可搭配下列任何訂閱使用,除非另有註明:

透過 HubSpot 的報表與數據工具,深入洞察您的電子商務客戶。本文將說明如何建立並運用資料集自訂屬性與 模組,以更精準掌握客戶行為、細分受眾群體、追蹤購買紀錄,進而優化銷售與行銷策略。

本文將透過逐步教學,引導您設定忠誠度評分、分析購買模式及監控物流流程,並配置資料集與 自訂報表。運用這些工具,您可進行聯絡人分群、行銷個人化,並生成可執行的行動報告。

開始前準備工作

在設定應用案例前,交易物件 建立電子商務流程,包含以下階段:

  • 結帳待處理
  • 結帳流程中斷
  • 結帳完成
  • 已出貨
  • 訂單取消

需要訂閱 建立資料集需具備Data Hub Enterprise訂閱資格。

需要權限 建立或編輯資料集需具備超級管理員權限,或Data Studio 的編輯權限

需要權限具備超級管理員權限,或Data Studio 的同步權限,方可同步資料集。

部分功能需要 HubSpot 點數 需具備HubSpot 信用點數方可同步及匯出資料集。

需要權限 建立屬性需具備超級管理員權限,或編輯屬性設定權限

客戶忠誠度評分

運用資料集計算客戶忠誠度分數,並透過分數篩選將客戶劃分為不同層級(例如:最忠誠客戶歸入第一層級)。運用分數與層級建立報表分群,為客戶量身打造銷售與行銷策略

您可自訂忠誠度評分值,範例中的計算方式如下:

  • 若聯絡人於過去 60 天內有已成交的交易,則給予 5 分。
  • 若聯絡人總營收超過 100 美元,則給予 10 分。
  • 若聯絡人平均頁面瀏覽量超過三頁,則給予 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.
    • 按區域劃分的延遲出貨報告:
      • 主要資料來源:您建立的資料
      • 圖表類型: 圓餅圖
      • 數值: 延遲出貨
      • 細分依據: 交易區域
    • 平均完成運送所需時間:
      • 主要數據來源: 您建立的資料
      • 圖表類型: 垂直條形圖
      • Y軸: 完成運送所需時間(平均值)
      • 細分依據: 交易區域

依受眾或產品細分的產品毛利分析

運用資料集按產品受眾或產品名稱進行拆解,從而掌握哪些受眾或產品帶來最佳回報。

  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 的協助