Tag class

Represents a Google Tag Manager Tag.

Constructors

Tag()
Tag.fromJson(Map _json)

Properties

accountId String
GTM Account ID.
read / write
blockingRuleId List<String>
Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire.
read / write
blockingTriggerId List<String>
Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire.
read / write
containerId String
GTM Container ID.
read / write
fingerprint String
The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified.
read / write
firingRuleId List<String>
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.
read / write
firingTriggerId List<String>
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.
read / write
liveOnly bool
If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode).
read / write
name String
Tag display name.
read / write
notes String
User notes on how to apply this tag in the container.
read / write
parameter List<Parameter>
The tag's parameters.
read / write
parentFolderId String
Parent folder id.
read / write
priority Parameter
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.
read / write
scheduleEndMs String
The end timestamp in milliseconds to schedule a tag.
read / write
scheduleStartMs String
The start timestamp in milliseconds to schedule a tag.
read / write
setupTag List<SetupTag>
The list of setup tags. Currently we only allow one.
read / write
tagFiringOption String
Option to fire this tag. Possible string values are: [...]
read / write
tagId String
The Tag ID uniquely identifies the GTM Tag.
read / write
teardownTag List<TeardownTag>
The list of teardown tags. Currently we only allow one.
read / write
type String
GTM Tag Type.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() Map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited