资源: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 |
唯一标识 GTM 容器版本的容器版本 ID。 |
name |
容器版本的显示名称。 |
deleted |
如果值为 true,则表示该容器版本已被删除。 |
description |
容器版本说明。 |
container |
该版本所在的容器。 |
tag[] |
该版本所在的容器中的代码。 |
trigger[] |
该版本所在的容器中的触发器。 |
variable[] |
该版本所在的容器中的变量。 |
folder[] |
该版本所在的容器中的文件夹。 |
builtInVariable[] |
该版本所在的容器中的内置变量。 |
fingerprint |
GTM 容器版本的指纹,以存储时计算的值为准。每当修改容器版本时,都会重新计算此值。 |
tagManagerUrl |
自动生成的指向跟踪代码管理器界面的链接 |
zone[] |
该版本所在的容器中的区域。 |
customTemplate[] |
该版本所在的容器中的自定义模板。 |
client[] |
该版本所在的容器中的客户端。 |
gtagConfig[] |
该版本所在的容器中的 Google 代码配置。 |
transformation[] |
该版本所在的容器中的转换。 |
BuiltInVariable
内置变量是一种预先创建且不可自定义的特殊类别的变量。它们提供常见功能,例如访问 gtm 数据层的属性、监控点击次数或访问网页网址的元素。
JSON 表示法 |
---|
{
"path": string,
"accountId": string,
"containerId": string,
"workspaceId": string,
"type": enum ( |
字段 | |
---|---|
path |
GTM 内置变量的 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 |
方法 |
|
---|---|
|
删除容器版本。 |
|
获取容器版本。 |
|
获取实际(即已发布的) |
|
发布容器版本。 |
|
设置在检测到冲突和错误时用于同步工作区的最新版本。 |
|
恢复删除的容器版本。 |
|
更新容器版本。 |