資源:ContainerVersion
代表 Google 代碼管理工具容器版本。
JSON 表示法 |
---|
{ "path": string, "accountId": string, "containerId": string, "containerVersionId": string, "name": string, "deleted": boolean, "description": string, "container": { object ( |
欄位 | |
---|---|
path |
GTM 容器版本的 API 相對路徑。 |
accountId |
GTM 帳戶 ID。 |
containerId |
GTM 容器 ID。 |
containerVersionId |
容器版本 ID 可用於識別 GTM 容器版本。 |
name |
容器版本顯示名稱。 |
deleted |
如果值為 true,表示已刪除這個容器版本。 |
description |
容器版本說明。 |
container |
這個版本的來源容器。 |
tag[] |
這個版本所屬容器中的代碼。 |
trigger[] |
這個版本所採用的容器中觸發條件。 |
variable[] |
這個版本取自容器中的變數。 |
folder[] |
這個版本擷取自容器中的哪些資料夾。 |
builtInVariable[] |
這個版本取自的容器內建變數。 |
fingerprint |
儲存時計算出的 GTM 容器版本指紋。只要容器版本有所修改,系統就會重新計算這個值。 |
tagManagerUrl |
自動產生的代碼管理工具 UI 連結 |
zone[] |
這個版本擷取自容器中的哪些區域。 |
customTemplate[] |
這個版本取自容器中的自訂範本。 |
client[] |
這個版本來自的容器中,包含的用戶端。 |
gtagConfig[] |
這個版本擷取自容器中的 Google 代碼設定。 |
transformation[] |
這個版本所採用的容器中轉換。 |
BuiltInVariable
內建變數是一種預先建立且無法自訂的特殊類別變數。這些事件提供常見的功能,例如存取 gtm 資料層的屬性、監控點擊,或存取網頁網址的元素。
JSON 表示法 |
---|
{
"path": string,
"accountId": string,
"containerId": string,
"workspaceId": string,
"type": enum ( |
欄位 | |
---|---|
path |
GTM BuiltInVariable 的 API 相對路徑。 |
accountId |
GTM 帳戶 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 |
方法 |
|
---|---|
|
刪除容器版本。 |
|
取得容器版本。 |
|
取得即時 (即 |
|
發布容器版本。 |
|
在偵測到衝突和錯誤時,設定用於同步工作區的最新版本。 |
|
取消刪除容器版本。 |
|
更新容器版本。 |