> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.teachify.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).

# 如何設定 GA4（Google Analytics 4）數據追蹤？

Google Analytics 是網站經營者不可或缺的數據追蹤、分析工具，Google 目前已經正式宣佈 2023 年 7 月起將全面停用通用版 Google Analytics，這意味著未來關於網站、App 的數據追蹤，你一定得依靠 Google Analytics 4。

在 Teachify 安裝 GA4 的數據追蹤非常簡單，你僅需在 Teachify 學院後台，找到「**第三方整合 > Google Analytics 4** 」

填入 Google Analytics 4 所需的 Measurement ID 以及 API Secret 即可：

![](https://storage.crisp.chat/users/helpdesk/website/-/3/1/e/4/31e42744710f7a0/image_1ajagjd.png)

---

# 如何找到我的 GA4 Measurement ID 以及 API secret？

1.  在 Google Analytics 操作介面中點選左下角的「管理」
    

![](https://storage.crisp.chat/users/helpdesk/website/5b1abc2acc41c800/8fd220bf-db56-4cf6-af72-8919ba_5mr174.png)

2. 點選「資源」底下的「 **資料串流** 」

![](https://storage.crisp.chat/users/helpdesk/website/72fadaeffa611400/24718816-0b73-4998-a4b1-215210_jawzxa.png)

若是第一次建立 GA4 的追蹤資源，系統會要求先建立資料串流

![](https://storage.crisp.chat/users/helpdesk/website/7a6b315d76ede400/932c2c04-59b7-40e0-a8b7-74455f_ifo4ly.png)

![](https://storage.crisp.chat/users/helpdesk/website/bf7340353a048800/23f05f5c-c731-441f-a249-218a06_1xxbuzr.png)

一般來說僅需使用預設的選項建立資料串流即可。

建立完成後會看到以下畫面，畫面上的「評估 ID」、格式是 **G-** 開頭的字串，可將此 ID 複製貼至 Teachify 後台。

![](https://storage.crisp.chat/users/helpdesk/website/b608d0b0f232d800/8a7237f0-0ed6-4871-9a60-e3c3c5_1a7cm11.png)

接著點選 **Measurement Protocol API 密鑰**，進入以下畫面，初次建立請先同意相關的使用條款：

![](https://storage.crisp.chat/users/helpdesk/website/10e74ce5decb7500/69c4d1f2-7031-4cdb-a0f1-0a83df_1ymiuyy.png)

點選史上最不清楚的「建立」按鈕，在「建立新的 API 密鑰」畫面輸入方便識別的暱稱即可取得。

![](https://storage.crisp.chat/users/helpdesk/website/2ba6b530c8447600/8766a938-4649-4c6b-9ed8-0b9aa6_xozk54.png)

![](https://storage.crisp.chat/users/helpdesk/website/989b9076c002d000/2e0a2422-c285-41a8-a131-65c893_5tleei.png)

將此密鑰複製貼上至 Teachify 後台即可完成設定。

![](https://storage.crisp.chat/users/helpdesk/website/b38c8f190d65c000/a44942d0-24e4-4c2a-b5a5-b77e5b_1pj8cty.png)


💡 [在 Teachify 設定 GA4（Google Analytics 4）追蹤，實際上有送了哪些事件呢？
](https://help.useteachify.com/zh-tw/article/teachify-ga4google-analytics-4-1wdos9m/?bust=1691564615062)

如果以上回答都無法解決你的問題，或有任何建議，請點選右下角藍色 icon 跟我們聯絡，我們將會盡快回覆。