資源:容器
代表 Google 代碼管理工具容器。
| JSON 表示法 |
|---|
{ "accountId": string, "containerId": string, "name": string, "domainName": [ string ], "publicId": string, "timeZoneCountryId": string, "timeZoneId": string, "notes": string, "usageContext": [ enum ( |
| 欄位 | |
|---|---|
accountId |
GTM 帳戶 ID。 |
containerId |
容器 ID 可用於識別 GTM 容器。 |
name |
容器顯示名稱。 |
domainName[] |
與容器相關聯的選用網域名稱清單。 |
publicId |
容器公開 ID。 |
timeZoneCountryId |
容器國家/地區 ID。 |
timeZoneId |
容器時區 ID。 |
notes |
容器附註。 |
usageContext[] |
列出容器的使用情境。有效的值包括:
。 |
enabledBuiltInVariable[] |
已啟用內建變數的清單。有效的值包括:
。 |
fingerprint |
儲存時計算的 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 |
|
方法 |
|
|---|---|
|
建立容器。 |
|
刪除容器。 |
|
取得容器。 |
|
列出屬於 GTM 帳戶的所有容器。 |
|
更新容器。 |