Tài nguyên: Vùng chứa
Biểu thị một Vùng chứa Trình quản lý thẻ của Google.
| Biểu diễn dưới dạng JSON |
|---|
{ "accountId": string, "containerId": string, "name": string, "domainName": [ string ], "publicId": string, "timeZoneCountryId": string, "timeZoneId": string, "notes": string, "usageContext": [ enum ( |
| Trường | |
|---|---|
accountId |
Mã tài khoản GTM. |
containerId |
Mã vùng chứa giúp nhận dạng duy nhất Vùng chứa GTM. |
name |
Tên hiển thị của vùng chứa. |
domainName[] |
Danh sách tên miền không bắt buộc được liên kết với Vùng chứa. |
publicId |
Mã nhận dạng công khai của vùng chứa. |
timeZoneCountryId |
Mã quốc gia của vùng chứa. |
timeZoneId |
Mã múi giờ của vùng chứa. |
notes |
Ghi chú về vùng chứa. |
usageContext[] |
Danh sách ngữ cảnh sử dụng cho vùng chứa. Các giá trị hợp lệ bao gồm:
. |
enabledBuiltInVariable[] |
Danh sách các biến tích hợp được bật. Các giá trị hợp lệ bao gồm:
. |
fingerprint |
Vân tay của Vùng chứa Trình quản lý thẻ của Google được tính toán tại thời điểm lưu trữ. Giá trị này được tính toán lại mỗi khi tài khoản được sửa đổi. |
UsageContext
| Enum | |
|---|---|
web |
|
android |
|
ios |
|
androidSdk5 |
|
iosSdk5 |
|
amp |
|
BuiltInVariableType
Số enum của mỗi biến tích hợp sau đây phải giống hệt với số enum tương ứng trong BuiltInType.BuiltInMacroType. THẺ TIẾP THEO: 124
| Enum | |
|---|---|
pageUrl |
|
pageHostname |
|
pagePath |
|
referrer |
|
event |
Dành cho web hoặc thiết bị di động. |
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 |
Dành cho web hoặc thiết bị di động. |
debugMode |
|
randomNumber |
Dành cho web hoặc thiết bị di động. |
containerId |
Dành cho web hoặc thiết bị di động. |
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 |
|
Phương thức |
|
|---|---|
|
Tạo một Vùng chứa. |
|
Xoá một Vùng chứa. |
|
Lấy một Vùng chứa. |
|
Liệt kê tất cả các Vùng chứa thuộc một Tài khoản Trình quản lý thẻ của Google (GTM). |
|
Cập nhật Vùng chứa. |