REST Resource: accounts.containers.versions

ทรัพยากร: ContainerVersion

แสดงเวอร์ชันคอนเทนเนอร์ Google Tag Manager

การแสดง 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

เส้นทางแบบสัมพัทธ์ของ API ของเวอร์ชันคอนเทนเนอร์ GTM

accountId

string

รหัสบัญชี GTM

containerId

string

รหัสคอนเทนเนอร์ GTM

containerVersionId

string

รหัสเวอร์ชันคอนเทนเนอร์จะระบุเวอร์ชันคอนเทนเนอร์ GTM ได้อย่างไม่ซ้ำกัน

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

ลายนิ้วมือของเวอร์ชันคอนเทนเนอร์ GTM ที่คำนวณ ณ เวลาจัดเก็บ ระบบจะคํานวณค่านี้ใหม่ทุกครั้งที่มีการแก้ไขเวอร์ชันคอนเทนเนอร์

tagManagerUrl

string

ลิงก์ที่สร้างขึ้นโดยอัตโนมัติไปยัง UI ของเครื่องมือจัดการแท็ก

zone[]

object (Zone)

โซนในคอนเทนเนอร์ที่ดึงข้อมูลเวอร์ชันนี้มา

customTemplate[]

object (CustomTemplate)

เทมเพลตที่กำหนดเองในคอนเทนเนอร์ที่นำเวอร์ชันนี้มา

client[]

object (Client)

ไคลเอ็นต์ในคอนเทนเนอร์ที่นําเวอร์ชันนี้มา

gtagConfig[]

object (GtagConfig)

การกําหนดค่าแท็ก Google ในคอนเทนเนอร์ที่นําเวอร์ชันนี้มา

transformation[]

object (Transformation)

การเปลี่ยนรูปแบบในคอนเทนเนอร์ที่นําเวอร์ชันนี้มา

BuiltInVariable

ตัวแปรบิวท์อินคือตัวแปรในหมวดหมู่พิเศษที่มีการสร้างไว้ล่วงหน้าและไม่สามารถปรับแต่งได้ ฟังก์ชันเหล่านี้มีฟังก์ชันการทำงานทั่วไป เช่น การเข้าถึงพร็อพเพอร์ตี้ของเลเยอร์ข้อมูล gtm, การตรวจสอบการคลิก หรือการเข้าถึงองค์ประกอบของ URL ของหน้าเว็บ

การแสดง JSON
{
  "path": string,
  "accountId": string,
  "containerId": string,
  "workspaceId": string,
  "type": enum (BuiltInVariableType),
  "name": string
}
ช่อง
path

string

เส้นทางที่เกี่ยวข้องของ API ของ GTM BuiltInVariable

accountId

string

รหัสบัญชี GTM

containerId

string

รหัสคอนเทนเนอร์ GTM

workspaceId

string

รหัสพื้นที่ทํางาน GTM

type

enum (BuiltInVariableType)

ประเภทตัวแปรในตัว

name

string

ชื่อของตัวแปรในตัวที่จะใช้อ้างอิงตัวแปรในตัว

BuiltInVariableType

โปรดทราบว่า BuiltInVariableType ต้องเข้ากันได้แบบไบนารีกับ container_tag.BuiltInType.BuiltInMacroType

Enum
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

อัปเดตเวอร์ชันคอนเทนเนอร์