通知

Google Analytics (分析):GA4 設定代碼現已改稱 Google 代碼。自 9 月起,系統將自動遷移網站容器中的 GA4 設定代碼。現有的評估方式沒有任何改變,您也無須採取任何行動。瞭解詳情

Webflow:設定 Google 代碼

您可以使用 Google Analytics (分析) 和 Google Ads 評估網站上的使用行為資料。請按照本文中的步驟,使用 Webflow 設定 Google Analytics (分析) 和 Google Ads 帳戶。

事前準備

您必須擁有 Google 代碼 ID。

使用 Webflow 設定 Google 代碼的操作說明,與開頭為「AW-」的代碼 ID (通常是 Google Ads 帳戶) 和開頭為「G-」的代碼 ID (通常是 Google Analytics (分析) 資源)) 不同。

如果代碼開頭為「AW-」

注意:如要使用這個方法設定 Google 代碼,必須購買付費網站方案。請參閱這篇文章,進一步瞭解Webflow 方案與定價。
  1. 登入 Webflow 帳戶
  2. 在「Dashboard」(資訊主頁) 中找到要編輯的網站資訊卡。
  3. 點按 3 點圖示,然後點選「Settings」(設定)。
    動畫:說明如何使用 Webflow 存取設定。
  4. 在「Custom code」(自訂程式碼) 分頁下方的「Head」(標頭) 程式碼區段中加入 Google 代碼。

    <!-- Google tag (gtag.js) -->

    <script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>

    <script>

     window.dataLayer = window.dataLayer || [];

     function gtag(){dataLayer.push(arguments);}

     gtag('js', new Date());

     gtag('config', 'TAG_ID');

    </script>

  5. 按一下「Save changes」(儲存變更)。

如果代碼開頭為「G-」

  1. 登入 Webflow 帳戶
  2. 在「Dashboard」(資訊主頁) 中找到要編輯的網站資訊卡。
  3. 點按 3 點圖示,然後點選「Settings」(設定)。
    動畫:說明如何使用 Webflow 存取設定。
  4. 在「Settings」(設定) 頁面中按一下「Integrations」(整合),然後在「Google Analytics (分析)」下方的方塊中輸入代碼 ID。
    螢幕截圖:顯示 Webflow 中的 Google Analytics (分析) 部分。
  5. 按一下「儲存變更」。

這對您有幫助嗎?

我們應如何改進呢?
搜尋
清除搜尋內容
關閉搜尋
主選單
10153898808484137482
true
搜尋說明中心
true
true
true
true
true
102259
false
false