Trigger class
Represents a Google Tag Manager Trigger
Constructors
-
Trigger({String? accountId, List<
Condition> ? autoEventFilter, Parameter? checkValidation, String? containerId, Parameter? continuousTimeMinMilliseconds, List<Condition> ? customEventFilter, Parameter? eventName, List<Condition> ? filter, String? fingerprint, Parameter? horizontalScrollPercentageList, Parameter? interval, Parameter? intervalSeconds, Parameter? limit, Parameter? maxTimerLengthSeconds, String? name, String? notes, List<Parameter> ? parameter, String? parentFolderId, String? path, Parameter? selector, String? tagManagerUrl, Parameter? totalTimeMinMilliseconds, String? triggerId, String? type, Parameter? uniqueTriggerId, Parameter? verticalScrollPercentageList, Parameter? visibilitySelector, Parameter? visiblePercentageMax, Parameter? visiblePercentageMin, Parameter? waitForTags, Parameter? waitForTagsTimeout, String? workspaceId}) - Trigger.fromJson(Map json_)
Properties
- accountId ↔ String?
-
GTM Account ID.
getter/setter pair
-
autoEventFilter
↔ List<
Condition> ? -
Used in the case of auto event tracking.
getter/setter pair
- 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).
getter/setter pair
- containerId ↔ String?
-
GTM Container ID.
getter/setter pair
- continuousTimeMinMilliseconds ↔ Parameter?
-
A visibility trigger minimum continuous visible time (in milliseconds).
getter/setter pair
-
customEventFilter
↔ List<
Condition> ? -
Used in the case of custom event, which is fired iff all Conditions are
true.
getter/setter pair
- eventName ↔ Parameter?
-
Name of the GTM event that is fired.
getter/setter pair
-
filter
↔ List<
Condition> ? -
The trigger will only fire iff all Conditions are true.
getter/setter pair
- fingerprint ↔ String?
-
The fingerprint of the GTM Trigger as computed at storage time.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalScrollPercentageList ↔ Parameter?
-
List of integer percentage values for scroll triggers.
getter/setter pair
- interval ↔ Parameter?
-
Time between triggering recurring Timer Events (in milliseconds).
getter/setter pair
- intervalSeconds ↔ Parameter?
-
Time between Timer Events to fire (in seconds).
getter/setter pair
- limit ↔ Parameter?
-
Limit of the number of GTM events this Timer Trigger will fire.
getter/setter pair
- maxTimerLengthSeconds ↔ Parameter?
-
Max time to fire Timer Events (in seconds).
getter/setter pair
- name ↔ String?
-
Trigger display name.
getter/setter pair
- notes ↔ String?
-
User notes on how to apply this trigger in the container.
getter/setter pair
-
parameter
↔ List<
Parameter> ? -
Additional parameters.
getter/setter pair
- parentFolderId ↔ String?
-
Parent folder id.
getter/setter pair
- path ↔ String?
-
GTM Trigger's API relative path.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selector ↔ Parameter?
-
A click trigger CSS selector (i.e. "a", "button" etc.).
getter/setter pair
- tagManagerUrl ↔ String?
-
Auto generated link to the tag manager UI
getter/setter pair
- totalTimeMinMilliseconds ↔ Parameter?
-
A visibility trigger minimum total visible time (in milliseconds).
getter/setter pair
- triggerId ↔ String?
-
The Trigger ID uniquely identifies the GTM Trigger.
getter/setter pair
- type ↔ String?
-
Defines the data layer event that causes this trigger.
getter/setter pair
- uniqueTriggerId ↔ Parameter?
-
Globally unique id of the trigger that auto-generates this (a Form Submit,
Link Click or Timer listener) if any.
getter/setter pair
- verticalScrollPercentageList ↔ Parameter?
-
List of integer percentage values for scroll triggers.
getter/setter pair
- visibilitySelector ↔ Parameter?
-
A visibility trigger CSS selector (i.e. "#id").
getter/setter pair
- visiblePercentageMax ↔ Parameter?
-
A visibility trigger maximum percent visibility.
getter/setter pair
- visiblePercentageMin ↔ Parameter?
-
A visibility trigger minimum percent visibility.
getter/setter pair
- 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).
getter/setter pair
- waitForTagsTimeout ↔ Parameter?
-
How long to wait (in milliseconds) for tags to fire when 'waits_for_tags'
above evaluates to true.
getter/setter pair
- workspaceId ↔ String?
-
GTM Workspace ID.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited