知識庫

嘗試連線至 Google Analytics 收到錯誤 "Missing required context variable"


發佈時間 : 24 Feb 2016
上次修改日期 : 01 Aug 2023

問題

嘗試從 Tableau Desktop 連線至 Google Analytics 時,您可能會收到以下錯誤訊息:
 
"Missing required context variable"(缺少所需的內容變數)

環境

  • Tableau Desktop 
  • Google Analytics

解決方法

若您不是使用 Google Analytics 4: 
  • 檢查您的 Google Analytics 帳戶中是否有空帳戶,也就是說帳戶在「屬性」「檢視」中沒有任何資訊。
若您使用 Google Analytics 4:
  • 設定一個同時執行 Universal Analytics 和 GA4 的新站台。 

原因

此問題可能有以下原因:
  • 由於有空帳戶,缺少「屬性」或「檢視」欄位。
  • 目前不支援 Google Analytics 版本 4 屬性。
這篇文章是否解決了問題?