REST Resource: accounts.containers.versions

資源:ContainerVersion

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

JSON 表示法
{
  "path": string,
  "accountId": string,
  "containerId": string,
  "containerVersionId": string,
  "name": string,
  "deleted": boolean,
  "description": string,
  "container": {
    object (Container)
  },
  "tag": [
    {
      object (Tag)
    }
  ],
  "trigger": [
    {
      object (Trigger)
    }
  ],
  "variable": [
    {
      object (Variable)
    }
  ],
  "folder": [
    {
      object (Folder)
    }
  ],
  "builtInVariable": [
    {
      object (BuiltInVariable)
    }
  ],
  "fingerprint": string,
  "tagManagerUrl": string,
  "zone": [
    {
      object (Zone)
    }
  ],
  "customTemplate": [
    {
      object (CustomTemplate)
    }
  ],
  "client": [
    {
      object (Client)
    }
  ],
  "gtagConfig": [
    {
      object (GtagConfig)
    }
  ],
  "transformation": [
    {
      object (Transformation)
    }
  ]
}
欄位
path

string

GTM 容器版本的 API 相對路徑。

accountId

string

GTM 帳戶 ID。

containerId

string

GTM 容器 ID。

containerVersionId

string

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

name

string

容器版本顯示名稱。

deleted

boolean

如果值為 true,表示已刪除這個容器版本。

description

string

容器版本說明。

container

object (Container)

這個版本的來源容器。

tag[]

object (Tag)

這個版本所屬容器中的代碼。

trigger[]

object (Trigger)

這個版本所採用的容器中觸發條件。

variable[]

object (Variable)

這個版本取自容器中的變數。

folder[]

object (Folder)

這個版本擷取自容器中的哪些資料夾。

builtInVariable[]

object (BuiltInVariable)

這個版本取自的容器內建變數。

fingerprint

string

儲存時計算出的 GTM 容器版本指紋。只要容器版本有所修改,系統就會重新計算這個值。

tagManagerUrl

string

自動產生的代碼管理工具 UI 連結

zone[]

object (Zone)

這個版本擷取自容器中的哪些區域。

customTemplate[]

object (CustomTemplate)

這個版本取自容器中的自訂範本。

client[]

object (Client)

這個版本來自的容器中,包含的用戶端。

gtagConfig[]

object (GtagConfig)

這個版本擷取自容器中的 Google 代碼設定。

transformation[]

object (Transformation)

這個版本所採用的容器中轉換。

BuiltInVariable

內建變數是一種預先建立且無法自訂的特殊類別變數。這些事件提供常見的功能,例如存取 gtm 資料層的屬性、監控點擊,或存取網頁網址的元素。

JSON 表示法
{
  "path": string,
  "accountId": string,
  "containerId": string,
  "workspaceId": string,
  "type": enum (BuiltInVariableType),
  "name": string
}
欄位
path

string

GTM BuiltInVariable 的 API 相對路徑。

accountId

string

GTM 帳戶 ID。

containerId

string

GTM 容器 ID。

workspaceId

string

GTM 工作區 ID。

type

enum (BuiltInVariableType)

內建變數的類型。

name

string

要用來參照內建變數的內建變數名稱。

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

方法

delete

刪除容器版本。

get

取得容器版本。

live

取得即時 (即

publish

發布容器版本。

set_latest

在偵測到衝突和錯誤時,設定用於同步工作區的最新版本。

undelete

取消刪除容器版本。

update

更新容器版本。