「網站資源」集合是一組網站資源資源,每個資源都會描述已驗證使用者可用的網站資源。
如需本資源的方法清單,請見本頁結尾。
資源表示法
Analytics (分析) 網站資源的 JSON 範本。
{ "id": string, "kind": "analytics#webproperty", "selfLink": string, "accountId": string, "internalWebPropertyId": string, "name": string, "websiteUrl": string, "level": string, "profileCount": integer, "industryVertical": string, "defaultProfileId": long, "dataRetentionTtl": string, "dataRetentionResetOnNewActivity": boolean, "permissions": { "effective": [ string ] }, "created": datetime, "updated": datetime, "starred": boolean, "parentLink": { "type": "analytics#account", "href": string }, "childLink": { "type": "analytics#profiles", "href": string } }
資源名稱 | 值 | 說明 | 附註 |
---|---|---|---|
accountId |
string |
此網站資源所屬的帳戶 ID。 | |
childLink |
object |
這個網站資源的子連結。指向此網站資源的資料檢視 (設定檔) 清單。 | |
childLink.href |
string |
連結至這個網站資源的資料檢視 (設定檔) 清單。 | |
childLink.type |
string |
上層連結的類型。其值為「analytics#profiles 」。 |
|
created |
datetime |
這個網站資源的建立時間。 | |
dataRetentionResetOnNewActivity |
boolean |
如果設為 true,使用者每次產生新事件時,使用者 ID 的保留期限都會重設 (因此把到期日設為目前時間加上保留期限)。「是」是這個欄位的預設設定。 如果設為 false,即可在租期結束後自動刪除與使用者 ID 相關的資料。 無法在插入時設定這個屬性。 |
|
dataRetentionTtl |
string |
使用者和事件資料的保留時間長度。如果設定了這個欄位,正確的值如下:
無法在插入時設定這個屬性。 |
|
defaultProfileId |
long |
預設資料檢視 (設定檔) ID。 | |
id |
string |
UA-XXXXX-YY 格式的網站資源 ID。 |
|
industryVertical |
string |
為此網站資源選取的產業產業/類別。如果設定了這個欄位,正確的值如下:
|
|
internalWebPropertyId |
string |
此網站資源的內部 ID。 | |
kind |
string |
Analytics (分析) 網站資源的資源類型。 | |
level |
string |
此網站資源的層級。 | |
name |
string |
此網站資源的名稱。 | |
parentLink |
object |
這個網站資源的上層連結。指向這個網站資源所屬的帳戶。 | |
parentLink.href |
string |
連結至這個網站資源的帳戶。 | |
parentLink.type |
string |
上層連結的類型。其值為「analytics#account 」。 |
|
permissions |
object |
使用者對這個網站資源擁有的權限。 | |
permissions.effective[] |
list |
使用者對此網站資源擁有的所有權限。包括任何暗示的權限 (例如「編輯」意指「檢視」) 或繼承上層帳戶的權限。 | |
profileCount |
integer |
這個網站資源的資料檢視 (設定檔) 計數。 | |
selfLink |
string |
這個網站資源的連結。 | |
starred |
boolean |
指出此網站資源是否已加星號。 | |
updated |
datetime |
上次修改這個網站資源的時間。 | |
websiteUrl |
string |
這個網站資源的網站網址。 |