ทรัพยากร: คอนเทนเนอร์
แสดงถึงคอนเทนเนอร์ Google Tag Manager
| การแสดง JSON |
|---|
{ "accountId": string, "containerId": string, "name": string, "domainName": [ string ], "publicId": string, "timeZoneCountryId": string, "timeZoneId": string, "notes": string, "usageContext": [ enum ( |
| ช่อง | |
|---|---|
accountId |
รหัสบัญชี GTM |
containerId |
รหัสคอนเทนเนอร์จะระบุคอนเทนเนอร์ GTM ได้อย่างไม่ซ้ำกัน |
name |
ชื่อที่แสดงของคอนเทนเนอร์ |
domainName[] |
รายการชื่อโดเมน (ไม่บังคับ) ที่เชื่อมโยงกับคอนเทนเนอร์ |
publicId |
รหัสสาธารณะของคอนเทนเนอร์ |
timeZoneCountryId |
รหัสประเทศของคอนเทนเนอร์ |
timeZoneId |
รหัสเขตเวลาของคอนเทนเนอร์ |
notes |
โน้ตคอนเทนเนอร์ |
usageContext[] |
รายการบริบทการใช้งานสําหรับคอนเทนเนอร์ ค่าที่ใช้ได้มีดังนี้
. |
enabledBuiltInVariable[] |
รายการตัวแปรในตัวที่เปิดใช้งาน ค่าที่ใช้ได้มีดังนี้
. |
fingerprint |
ลายนิ้วมือของคอนเทนเนอร์ GTM ที่คำนวณ ณ เวลาจัดเก็บ ระบบจะคํานวณค่านี้ใหม่ทุกครั้งที่มีการแก้ไขบัญชี |
UsageContext
| Enum | |
|---|---|
web |
|
android |
|
ios |
|
androidSdk5 |
|
iosSdk5 |
|
amp |
|
BuiltInVariableType
หมายเลข enum ของตัวแปรในตัวต่อไปนี้แต่ละรายการต้องตรงกับของตัวแปรที่ตรงกันใน BuiltInType.BuiltInMacroType แท็กถัดไป: 124
| Enum | |
|---|---|
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 |
|
อัปเดตคอนเทนเนอร์ |