Trigger class

Represents a Google Tag Manager Trigger

Constructors

Trigger()
Trigger.fromJson(Map _json)

Properties

accountId String
GTM Account ID.
read / write
autoEventFilter List<Condition>
Used in the case of auto event tracking.
read / write
checkValidation Parameter
Whether or not we should only fire tags if the form submit or link click event is not cancelled by some other event handler (e.g. because of validation). Only valid for Form Submission and Link Click triggers.
read / write
containerId String
GTM Container ID.
read / write
customEventFilter List<Condition>
Used in the case of custom event, which is fired iff all Conditions are true.
read / write
enableAllVideos Parameter
Reloads the videos in the page that don't already have the YT API enabled. If false, only capture events from videos that already have the API enabled. Only valid for YouTube triggers.
read / write
eventName Parameter
Name of the GTM event that is fired. Only valid for Timer triggers.
read / write
filter List<Condition>
The trigger will only fire iff all Conditions are true.
read / write
fingerprint String
The fingerprint of the GTM Trigger as computed at storage time. This value is recomputed whenever the trigger is modified.
read / write
interval Parameter
Time between triggering recurring Timer Events (in milliseconds). Only valid for Timer triggers.
read / write
limit Parameter
Limit of the number of GTM events this Timer Trigger will fire. If no limit is set, we will continue to fire GTM events until the user leaves the page. Only valid for Timer triggers.
read / write
name String
Trigger display name.
read / write
parentFolderId String
Parent folder id.
read / write
triggerId String
The Trigger ID uniquely identifies the GTM Trigger.
read / write
type String
Defines the data layer event that causes this trigger. Possible string values are: [...]
read / write
uniqueTriggerId Parameter
Globally unique id of the trigger that auto-generates this (a Form Submit, Link Click or Timer listener) if any. Used to make incompatible auto-events work together with trigger filtering based on trigger ids. This value is populated during output generation since the tags implied by triggers don't exist until then. Only valid for Form Submit, Link Click and Timer triggers.
read / write
videoPercentageList Parameter
List of integer percentage values. The trigger will fire as each percentage is reached in any instrumented videos. Only valid for YouTube triggers.
read / write
waitForTags Parameter
Whether or not we should delay the form submissions or link opening until all of the tags have fired (by preventing the default action and later simulating the default action). Only valid for Form Submission and Link Click triggers.
read / write
waitForTagsTimeout Parameter
How long to wait (in milliseconds) for tags to fire when 'waits_for_tags' above evaluates to true. Only valid for Form Submission and Link Click triggers.
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