Struct google_tagmanager2::Trigger[][src]

pub struct Trigger {
    pub max_timer_length_seconds: Option<Parameter>,
    pub total_time_min_milliseconds: Option<Parameter>,
    pub unique_trigger_id: Option<Parameter>,
    pub vertical_scroll_percentage_list: Option<Parameter>,
    pub continuous_time_min_milliseconds: Option<Parameter>,
    pub horizontal_scroll_percentage_list: Option<Parameter>,
    pub account_id: Option<String>,
    pub wait_for_tags: Option<Parameter>,
    pub interval_seconds: Option<Parameter>,
    pub event_name: Option<Parameter>,
    pub visibility_selector: Option<Parameter>,
    pub workspace_id: Option<String>,
    pub custom_event_filter: Option<Vec<Condition>>,
    pub parameter: Option<Vec<Parameter>>,
    pub parent_folder_id: Option<String>,
    pub container_id: Option<String>,
    pub selector: Option<Parameter>,
    pub trigger_id: Option<String>,
    pub tag_manager_url: Option<String>,
    pub fingerprint: Option<String>,
    pub visible_percentage_max: Option<Parameter>,
    pub path: Option<String>,
    pub name: Option<String>,
    pub visible_percentage_min: Option<Parameter>,
    pub type_: Option<String>,
    pub notes: Option<String>,
    pub interval: Option<Parameter>,
    pub filter: Option<Vec<Condition>>,
    pub wait_for_tags_timeout: Option<Parameter>,
    pub limit: Option<Parameter>,
    pub check_validation: Option<Parameter>,
    pub auto_event_filter: Option<Vec<Condition>>,
}

Represents a Google Tag Manager Trigger

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

Max time to fire Timer Events (in seconds). Only valid for AMP Timer trigger.

A visibility trigger minimum total visible time (in milliseconds). Only valid for AMP Visibility trigger.

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.

List of integer percentage values for scroll triggers. The trigger will fire when each percentage is reached when the view is scrolled vertically. Only valid for AMP scroll triggers.

A visibility trigger minimum continuous visible time (in milliseconds). Only valid for AMP Visibility trigger.

List of integer percentage values for scroll triggers. The trigger will fire when each percentage is reached when the view is scrolled horizontally. Only valid for AMP scroll triggers.

GTM Account ID.

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.

Time between Timer Events to fire (in seconds). Only valid for AMP Timer trigger.

Name of the GTM event that is fired. Only valid for Timer triggers.

A visibility trigger CSS selector (i.e. "#id"). Only valid for AMP Visibility trigger.

GTM Workspace ID.

Used in the case of custom event, which is fired iff all Conditions are true.

Additional parameters.

Parent folder id.

GTM Container ID.

A click trigger CSS selector (i.e. "a", "button" etc.). Only valid for AMP Click trigger.

The Trigger ID uniquely identifies the GTM Trigger.

Auto generated link to the tag manager UI

The fingerprint of the GTM Trigger as computed at storage time. This value is recomputed whenever the trigger is modified.

A visibility trigger maximum percent visibility. Only valid for AMP Visibility trigger.

GTM Trigger's API relative path.

Trigger display name.

A visibility trigger minimum percent visibility. Only valid for AMP Visibility trigger.

Defines the data layer event that causes this trigger.

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

Time between triggering recurring Timer Events (in milliseconds). Only valid for Timer triggers.

The trigger will only fire iff all Conditions are true.

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.

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.

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.

Used in the case of auto event tracking.

Trait Implementations

impl Default for Trigger
[src]

Returns the "default value" for a type. Read more

impl Clone for Trigger
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Trigger
[src]

Formats the value using the given formatter. Read more

impl RequestValue for Trigger
[src]

impl ResponseResult for Trigger
[src]

Auto Trait Implementations

impl Send for Trigger

impl Sync for Trigger