Show / Hide Table of Contents

Class Tag

Represents a Google Tag Manager Tag.

Inheritance
object
Tag
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
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
IList<string>

ConsentSettings

Consent settings of a tag.

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

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
IList<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
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.

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.

Declaration
[JsonProperty("monitoringMetadataTagNameKey")]
public virtual string MonitoringMetadataTagNameKey { get; set; }
Property Value
Type Description
string

Name

Tag display name.

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.

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

Parameter

The tag's parameters.

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.

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.

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
long?

ScheduleStartMs

The start timestamp in milliseconds to schedule a tag.

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.

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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX