Show / Hide Table of Contents

Class Tag

Represents a Google Tag Manager Tag.

Inheritance
System.Object
Tag
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
System.String

BlockingRuleId

Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire.

Declaration
[JsonProperty("blockingRuleId")]
public virtual IList<string> BlockingRuleId { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

BlockingTriggerId

Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire.

Declaration
[JsonProperty("blockingTriggerId")]
public virtual IList<string> BlockingTriggerId { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

ContainerId

GTM Container ID.

Declaration
[JsonProperty("containerId")]
public virtual string ContainerId { get; set; }
Property Value
Type Description
System.String

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.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
System.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.

Declaration
[JsonProperty("firingRuleId")]
public virtual IList<string> FiringRuleId { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.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.

Declaration
[JsonProperty("firingTriggerId")]
public virtual IList<string> FiringTriggerId { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

LiveOnly

If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode).

Declaration
[JsonProperty("liveOnly")]
public virtual bool? LiveOnly { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Name

Tag display name.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
System.String

Notes

User notes on how to apply this tag in the container.

Declaration
[JsonProperty("notes")]
public virtual string Notes { get; set; }
Property Value
Type Description
System.String

Parameter

The tag's parameters.

Declaration
[JsonProperty("parameter")]
public virtual IList<Parameter> Parameter { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<Parameter>

ParentFolderId

Parent folder id.

Declaration
[JsonProperty("parentFolderId")]
public virtual string ParentFolderId { get; set; }
Property Value
Type Description
System.String

Path

GTM Tag's API relative path.

Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type Description
System.String

Paused

Indicates whether the tag is paused, which prevents the tag from firing.

Declaration
[JsonProperty("paused")]
public virtual bool? Paused { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

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.

Declaration
[JsonProperty("priority")]
public virtual Parameter Priority { get; set; }
Property Value
Type Description
Parameter

ScheduleEndMs

The end timestamp in milliseconds to schedule a tag.

Declaration
[JsonProperty("scheduleEndMs")]
public virtual long? ScheduleEndMs { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

ScheduleStartMs

The start timestamp in milliseconds to schedule a tag.

Declaration
[JsonProperty("scheduleStartMs")]
public virtual long? ScheduleStartMs { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

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
System.Collections.Generic.IList<SetupTag>

TagFiringOption

Option to fire this tag.

Declaration
[JsonProperty("tagFiringOption")]
public virtual string TagFiringOption { get; set; }
Property Value
Type Description
System.String

TagId

The Tag ID uniquely identifies the GTM Tag.

Declaration
[JsonProperty("tagId")]
public virtual string TagId { get; set; }
Property Value
Type Description
System.String

TagManagerUrl

Auto generated link to the tag manager UI

Declaration
[JsonProperty("tagManagerUrl")]
public virtual string TagManagerUrl { get; set; }
Property Value
Type Description
System.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
System.Collections.Generic.IList<TeardownTag>

Type

GTM Tag Type.

Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type Description
System.String

WorkspaceId

GTM Workspace ID.

Declaration
[JsonProperty("workspaceId")]
public virtual string WorkspaceId { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
Back to top