UserProvidedDataSettings

設定「收集使用者提供的資料」功能。這是 Google Analytics 資源的單例資源。

JSON 表示法
{
  "name": string,
  "userProvidedDataCollectionEnabled": boolean,
  "automaticallyDetectedDataCollectionEnabled": boolean
}
欄位
name

string

ID。這項設定的資源名稱。格式:properties/{property}/userProvidedDataSettings。範例:「properties/1000/userProvidedDataSettings」

userProvidedDataCollectionEnabled

boolean

(選用步驟) 這項資源是否接受傳送給它的使用者提供的資料。

automaticallyDetectedDataCollectionEnabled

boolean

(選用步驟) 這個資源是否允許 Google 代碼自動收集網站上的使用者提供資料。只有在 userProvidedDataCollectionEnabled 也設為 True 時,這項設定才會生效。