> For the complete documentation index, see [llms.txt](https://www.oddle.me/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.oddle.me/docs/help-center/help-center-zh/oddle-shang-dian/how-do-i-set-up-analytics-and-tracking.md).

# 如何設定分析與追蹤？

Oddle Shop 內建與 Google Analytics 4 和 Facebook Pixel 的整合。你可以在商家管理後台中直接連結其中一個或兩個——無需自訂指令碼。

***

## Google Analytics 4

### 開始之前

* [建立一個 Google Analytics 4 資源](https://support.google.com/analytics/answer/9304153?hl=en) 如果你還沒有的話。
* 請從你的商店中移除任何現有的 Google Analytics 指令碼。執行超過一個實例會導致追蹤不準確。
* 找出你的衡量 ID：在 Google Analytics 中，前往 **管理 > 資料串流**，選取你的網頁串流，並複製 ID。它以 `G-`.

### 新增你的衡量 ID

1. 在 Merchant Admin 中，前往 **線上點餐 > 設定**.
2. 在 **購物車追蹤**，找到 **Google Analytics 追蹤 ID** 並貼上你的衡量 ID。
3. 點擊 **儲存**.

{% hint style="info" %}
連結後，資料最多可能需要 24 小時才會顯示在你的 Google Analytics 儀表板中。
{% endhint %}

### 自動追蹤的事件

Oddle 會將以下事件傳送至 Google Analytics 4：

| 事件               | 觸發時機       |
| ---------------- | ---------- |
| `page_view`      | 顧客瀏覽頁面     |
| `view_item`      | 顧客開啟商品頁面   |
| `add_to_cart`    | 顧客將商品加入購物車 |
| `view_cart`      | 顧客開啟購物車    |
| `login`          | 顧客登入       |
| `begin_checkout` | 顧客進入結帳     |
| `purchase`       | 顧客完成訂單     |

### 為什麼數字可能與 Oddle 的分析資料不同？

Google Analytics 4 和 Oddle 使用不同的計算方式。常見造成差異的原因如下：

* 顧客使用廣告封鎖工具或停用 Cookie
* Google Analytics 會過濾掉機器人和網路爬蟲，而 Oddle 可能以不同方式計算

***

## Facebook Pixel

Facebook Pixel 可讓你建立廣告受眾，並衡量廣告如何為你的商店帶來訂單。

### 開始之前

1. 設定一個 [Facebook Ads Manager 帳戶](https://www.facebook.com/ads/manage) 如果你還沒有的話。
2. 在 Ads Manager 中建立一個 Pixel，或使用現有的 Pixel。請參閱 [Facebook 的說明文件](https://www.facebook.com/business/help/314143995668266) 以取得協助。
3. 找出你的 Pixel ID：在 Ads Manager 中，開啟 **事件管理工具** 並複製顯示在你的網站名稱下方的 ID。

![](/files/db2fdab097c557975dc94402f82b1eda8ae18af5)

### 新增你的 Pixel ID

1. 在 Merchant Admin 中，前往 **線上點餐 > 設定**.
2. 在 **購物車追蹤**，找到 **Facebook Pixel ID** 並貼上你的 Pixel ID。
3. 點擊 **儲存**.

![](/files/30595414146d5b890bb87436c61193a2e292deb4)

{% hint style="info" %}
一旦你的 Pixel ID 儲存在這裡，Oddle 就會自動處理所有事件追蹤。你不需要再加入任何額外的事件指令碼。
{% endhint %}

當顧客與你的商店互動時，Oddle 會自動傳送 6 種標準的 Facebook Pixel 事件：

![](/files/7a483f47f990c26ad8024c761bdfe21907b0cbd0)

***

## 商家管理後台中的商店分析

除了第三方工具外，商家管理後台也內建了分析模組。你可以在 **分析** 從主選單中存取。

### 概覽

概覽頁面會顯示各商店的摘要：

* **總銷售額** — 折扣後的營收，包含運費與稅金
* **訪客** — 進入你商店的唯一使用者（與工作階段不同）
* **訂單** — 收到的訂單總數

使用 **資料類型** 和 **日期範圍** 篩選以依送達日期或提交日期查看資料。

![](/files/5c53dae1429e588edc4a4c6ca90747ea8f558979)

### 訪客來源

查看流量來自哪裡——依轉介來源拆分（社群、直接、搜尋等）。

* **流量隨時間變化** 會顯示所有來源合併後的堆疊視圖。
* **個別組成項目檢視** 會分別顯示每個來源，適合用來衡量特定活動的成效。

轉換漏斗會顯示從進入你的商店到完成購買，每個步驟的流失情況，以工作階段計算。

![](/files/547ddedbe17d0f782767fbb46d5b62a8b20c83fb)

### 銷售額

銷售報表會將各商店的營收拆分如下：

* **總銷售額** — 所有訂單的小計
* **折扣** — 促銷所套用的金額（不含免費商品）
* **運費** — 顧客支付的費用
* **稅金** — 顧客支付的稅金與費用

你也可以依商品、類別和促銷檢視銷售，看看哪些商品與活動帶來最多營收。

### 庫存

庫存報表會顯示已確認訂單的逐項明細，適合用於每日備料規劃。只有處於 **已確認** 狀態的訂單會顯示——待處理和已送達的訂單會被排除。

### 依銷售的顧客

此報表會顯示你帳戶中的所有顧客及其購買紀錄：

* **距離上次購買天數**
* **訂單數量**
* **總消費金額** （包含運費與稅金）

### 下載報表

* 若要匯出為 PDF 或 PNG：請點選 **匯出** 任何報表右上角的按鈕。
* 若要匯出為 Excel 或 CSV：請點選右上角的 **齒輪** 圖示，然後選擇你的格式。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.oddle.me/docs/help-center/help-center-zh/oddle-shang-dian/how-do-i-set-up-analytics-and-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
