REST Resource: accounts.containers

資源:容器

代表 Google 代碼管理工具容器。

JSON 表示法
{
  "accountId": string,
  "containerId": string,
  "name": string,
  "domainName": [
    string
  ],
  "publicId": string,
  "timeZoneCountryId": string,
  "timeZoneId": string,
  "notes": string,
  "usageContext": [
    enum (UsageContext)
  ],
  "enabledBuiltInVariable": [
    enum (BuiltInVariableType)
  ],
  "fingerprint": string
}
欄位
accountId

string

GTM 帳戶 ID。

containerId

string

容器 ID 可用於識別 GTM 容器。

name

string

容器顯示名稱。

domainName[]

string

與容器相關聯的選用網域名稱清單。

publicId

string

容器公開 ID。

timeZoneCountryId

string

容器國家/地區 ID。

timeZoneId

string

容器時區 ID。

notes

string

容器附註。

usageContext[]

enum (UsageContext)

列出容器的使用情境。有效的值包括:

web, android, ios

enabledBuiltInVariable[]

enum (BuiltInVariableType)

已啟用內建變數的清單。有效的值包括:

pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, clickText, formElement, formClasses, formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine, newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState, historySource, containerVersion, debugMode, randomNumber, containerId

fingerprint

string

儲存時計算的 GTM 容器指紋。每次修改帳戶時,系統都會重新計算這個值。

UsageContext

列舉
web
android
ios
androidSdk5
iosSdk5
amp

BuiltInVariableType

下列內建變數的列舉編號必須與 BuiltInType.BuiltInMacroType 中的對應項目完全相同。下一標記:124

列舉
pageUrl
pageHostname
pagePath
referrer
event 適用於電腦或行動裝置。
clickElement
clickClasses
clickId
clickTarget
clickUrl
clickText
firstPartyServingUrl
formElement
formClasses
formId
formTarget
formUrl
formText
environmentName
errorMessage
errorUrl
errorLine
newHistoryUrl
oldHistoryUrl
newHistoryFragment
oldHistoryFragment
newHistoryState
oldHistoryState
historySource
containerVersion 適用於網頁或行動裝置。
debugMode
randomNumber 適用於網頁或行動裝置。
containerId 適用於電腦或行動裝置。
appId
appName
appVersionCode
appVersionName
language
osVersion
platform
sdkVersion
deviceName
resolution
advertiserId
advertisingTrackingEnabled
htmlId
ampBrowserLanguage
ampCanonicalPath
ampCanonicalUrl
ampCanonicalHost
ampReferrer
ampTitle
ampClientId
ampClientTimezone
ampClientTimestamp
ampClientScreenWidth
ampClientScreenHeight
ampClientScrollX
ampClientScrollY
ampClientMaxScrollX
ampClientMaxScrollY
ampTotalEngagedTime
ampPageViewId
ampPageLoadTime
ampPageDownloadTime
ampGtmEvent
eventName
firebaseEventParameterCampaign
firebaseEventParameterCampaignAclid
firebaseEventParameterCampaignAnid
firebaseEventParameterCampaignClickTimestamp
firebaseEventParameterCampaignContent
firebaseEventParameterCampaignCp1
firebaseEventParameterCampaignGclid
firebaseEventParameterCampaignSource
firebaseEventParameterCampaignTerm
firebaseEventParameterCurrency
firebaseEventParameterDynamicLinkAcceptTime
firebaseEventParameterDynamicLinkLinkid
firebaseEventParameterNotificationMessageDeviceTime
firebaseEventParameterNotificationMessageId
firebaseEventParameterNotificationMessageName
firebaseEventParameterNotificationMessageTime
firebaseEventParameterNotificationTopic
firebaseEventParameterPreviousAppVersion
firebaseEventParameterPreviousOsVersion
firebaseEventParameterPrice
firebaseEventParameterProductId
firebaseEventParameterQuantity
firebaseEventParameterValue
videoProvider
videoUrl
videoTitle
videoDuration
videoPercent
videoVisible
videoStatus
videoCurrentTime
scrollDepthThreshold
scrollDepthUnits
scrollDepthDirection
elementVisibilityRatio
elementVisibilityTime
elementVisibilityFirstTime
elementVisibilityRecentTime

方法

create

建立容器。

delete

刪除容器。

get

取得容器。

list

列出屬於 GTM 帳戶的所有容器。

update

更新容器。