資源:ContainerVersion
代表 Google 代碼管理工具容器版本。
| JSON 表示法 |
|---|
{ "path": string, "accountId": string, "containerId": string, "containerVersionId": string, "name": string, "deleted": boolean, "description": string, "container": { object ( |
| 欄位 | |
|---|---|
path |
GTM 容器版本的 API 相對路徑。 |
accountId |
Google 代碼管理工具帳戶 ID。 |
containerId |
GTM 容器 ID。 |
containerVersionId |
容器版本 ID 是 GTM 容器版本的專屬 ID。 |
name |
容器版本顯示名稱。 |
deleted |
值為 true 表示這個容器版本已刪除。 |
description |
容器版本說明。 |
container |
這個版本所屬的容器。 |
tag[] |
這個版本所屬容器中的代碼。 |
trigger[] |
這個版本所屬容器中的觸發條件。 |
variable[] |
這個版本所屬容器中的變數。 |
folder[] |
這個版本所屬容器中的資料夾。 |
builtInVariable[] |
這個版本所屬容器的內建變數。 |
fingerprint |
儲存時計算的 GTM 容器版本指紋。每當容器版本修改時,系統就會重新計算這個值。 |
tagManagerUrl |
系統自動產生的代碼管理工具使用者介面連結 |
zone[] |
這個版本所屬容器中的區域。 |
customTemplate[] |
這個版本所屬容器中的自訂範本。 |
client[] |
這個版本所屬容器中的用戶端。 |
gtagConfig[] |
這個版本所屬容器中的 Google 代碼設定。 |
transformation[] |
這個版本所屬容器中的轉換。 |
BuiltInVariable
內建變數是一種預先建立且無法自訂的特殊類別變數。這些函式提供常見功能,例如存取 GTM 資料層的屬性、監控點擊次數,或存取網頁網址的元素。
| JSON 表示法 |
|---|
{
"path": string,
"accountId": string,
"containerId": string,
"workspaceId": string,
"type": enum ( |
| 欄位 | |
|---|---|
path |
GTM BuiltInVariable 的 API 相對路徑。 |
accountId |
Google 代碼管理工具帳戶 ID。 |
containerId |
GTM 容器 ID。 |
workspaceId |
GTM 工作區 ID。 |
type |
內建變數類型。 |
name |
用來參照內建變數的內建變數名稱。 |
BuiltInVariableType
請注意,BuiltInVariableType 必須與 container_tag.BuiltInType.BuiltInMacroType 二進位檔相容。
| 列舉 | |
|---|---|
builtInVariableTypeUnspecified |
|
pageUrl |
|
pageHostname |
|
pagePath |
|
referrer |
|
event |
適用於網頁或行動裝置。 |
clickElement |
|
clickClasses |
|
clickId |
|
clickTarget |
|
clickUrl |
|
clickText |
|
firstPartyServingUrl |
|
formElement |
|
formClasses |
|
formId |
|
formTarget |
|
formUrl |
|
formText |
|
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 |
|
environmentName |
|
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 |
|
requestPath |
|
requestMethod |
|
clientName |
|
queryString |
|
serverPageLocationUrl |
|
serverPageLocationPath |
|
serverPageLocationHostname |
|
visitorRegion |
|
analyticsClientId |
|
analyticsSessionId |
|
analyticsSessionNumber |
|
方法 |
|
|---|---|
|
刪除容器版本。 |
|
取得容器版本。 |
|
取得即時 (即 |
|
發布容器版本。 |
|
偵測到衝突和錯誤時,設定用於同步處理工作區的最新版本。 |
|
取消刪除容器版本。 |
|
更新容器版本。 |