Class Tag
Represents a Google Tag Manager Tag.
Implements
Inherited Members
Namespace: Google.Apis.TagManager.v2.Data
Assembly: Google.Apis.TagManager.v2.dll
Syntax
public class Tag : IDirectResponseSchema
Properties
AccountId
GTM Account ID.
Declaration
[JsonProperty("accountId")]
public virtual string AccountId { get; set; }
Property Value
Type | Description |
---|---|
string |
BlockingRuleId
Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("blockingRuleId")]
public virtual IList<string> BlockingRuleId { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
BlockingTriggerId
Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("blockingTriggerId")]
public virtual IList<string> BlockingTriggerId { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
ConsentSettings
Consent settings of a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("consentSettings")]
public virtual TagConsentSetting ConsentSettings { get; set; }
Property Value
Type | Description |
---|---|
TagConsentSetting |
ContainerId
GTM Container ID.
Declaration
[JsonProperty("containerId")]
public virtual string ContainerId { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Fingerprint
The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified.
Declaration
[JsonProperty("fingerprint")]
public virtual string Fingerprint { get; set; }
Property Value
Type | Description |
---|---|
string |
FiringRuleId
Firing rule IDs. A tag will fire when any of the listed rules are true and all of its blockingRuleIds (if any specified) are false. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("firingRuleId")]
public virtual IList<string> FiringRuleId { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
FiringTriggerId
Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("firingTriggerId")]
public virtual IList<string> FiringTriggerId { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
LiveOnly
If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("liveOnly")]
public virtual bool? LiveOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MonitoringMetadata
A map of key-value pairs of tag metadata to be included in the event data for tag monitoring. Notes: - This parameter must be type MAP. - Each parameter in the map are type TEMPLATE, however cannot contain variable references. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("monitoringMetadata")]
public virtual Parameter MonitoringMetadata { get; set; }
Property Value
Type | Description |
---|---|
Parameter |
MonitoringMetadataTagNameKey
If non-empty, then the tag display name will be included in the monitoring metadata map using the key specified. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("monitoringMetadataTagNameKey")]
public virtual string MonitoringMetadataTagNameKey { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Tag display name. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Notes
User notes on how to apply this tag in the container. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("notes")]
public virtual string Notes { get; set; }
Property Value
Type | Description |
---|---|
string |
Parameter
The tag's parameters. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("parameter")]
public virtual IList<Parameter> Parameter { get; set; }
Property Value
Type | Description |
---|---|
IList<Parameter> |
ParentFolderId
Parent folder id.
Declaration
[JsonProperty("parentFolderId")]
public virtual string ParentFolderId { get; set; }
Property Value
Type | Description |
---|---|
string |
Path
GTM Tag's API relative path.
Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
Paused
Indicates whether the tag is paused, which prevents the tag from firing. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("paused")]
public virtual bool? Paused { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Priority
User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or negative value. The default value is 0. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("priority")]
public virtual Parameter Priority { get; set; }
Property Value
Type | Description |
---|---|
Parameter |
ScheduleEndMs
The end timestamp in milliseconds to schedule a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("scheduleEndMs")]
public virtual long? ScheduleEndMs { get; set; }
Property Value
Type | Description |
---|---|
long? |
ScheduleStartMs
The start timestamp in milliseconds to schedule a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("scheduleStartMs")]
public virtual long? ScheduleStartMs { get; set; }
Property Value
Type | Description |
---|---|
long? |
SetupTag
The list of setup tags. Currently we only allow one.
Declaration
[JsonProperty("setupTag")]
public virtual IList<SetupTag> SetupTag { get; set; }
Property Value
Type | Description |
---|---|
IList<SetupTag> |
TagFiringOption
Option to fire this tag.
Declaration
[JsonProperty("tagFiringOption")]
public virtual string TagFiringOption { get; set; }
Property Value
Type | Description |
---|---|
string |
TagId
The Tag ID uniquely identifies the GTM Tag.
Declaration
[JsonProperty("tagId")]
public virtual string TagId { get; set; }
Property Value
Type | Description |
---|---|
string |
TagManagerUrl
Auto generated link to the tag manager UI
Declaration
[JsonProperty("tagManagerUrl")]
public virtual string TagManagerUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
TeardownTag
The list of teardown tags. Currently we only allow one.
Declaration
[JsonProperty("teardownTag")]
public virtual IList<TeardownTag> TeardownTag { get; set; }
Property Value
Type | Description |
---|---|
IList<TeardownTag> |
Type
GTM Tag Type. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
WorkspaceId
GTM Workspace ID.
Declaration
[JsonProperty("workspaceId")]
public virtual string WorkspaceId { get; set; }
Property Value
Type | Description |
---|---|
string |