![]() HTML ID: Allows custom HTML tags to signal if they had succeeded or failed used with tag sequencing. ![]() gtm.js, gtm.dom, gtm.load, or custom event names). In all other cases it returns an empty string.Įvent: Accesses the event key in the dataLayer, which is the name of the current dataLayer event (e.g. For the built-in environments, it will return "Live", "Latest", or "Now Editing". Example value: GTM-XKCD11Ĭontainer Version: Provides the version number of the container, as a string.Įnvironment Name: Returns the user-provided name of the current environment, if the container request was made from an environment "Share Preview" link or from an environment snippet. UtilitiesĬontainer ID: Provides the container's public ID. This will be either ‘vertical’ or ‘horizontal’, that indicates the direction of the threshold that caused the trigger to fire. Scroll Direction: Accesses the gtm.scrollDirection key in the dataLayer, which is set by Scroll Depth triggers. This will be either ‘pixels’ or ‘percent’, that indicates the unit specified for the threshold that caused the trigger to fire. Scroll Depth Units: Accesses the gtm.scrollUnits key in the dataLayer, which is set by Scroll Depth triggers. For pixels, this will be a numeric value that represents the number of pixels specified as the threshold. For percentage thresholds, this will be a numeric value (0-100). This will be a numeric value that indicates the scroll depth that caused the trigger to fire. Scroll Depth Threshold: Accesses the gtm.scrollThreshold key in the dataLayer, which is set by Scroll Depth triggers. Referrer: Provides the full referrer URL for the current page. Page URL: Provides the full URL of the current page. Page Path: Provides the path portion of the current URL. Page Hostname: Provides the hostname portion of the current URL. Will be the state object that was active before the history event took place. Old History State: Accesses the gtm.oldHistoryState key in the dataLayer, which is set by History Change triggers. Will be the string value of the fragment (aka hash) portion of the page's URL before the history event. Old History Fragment: Accesses the gtm.oldUrlFragment key in the dataLayer, which is set by History Change triggers. Will be the state object that the page pushed onto the history to cause the history event. New History State: Accesses the gtm.newHistoryState key in the dataLayer, which is set by History Change triggers. Will be the string value of the fragment (aka hash) portion of the page's URL after the history event. New History Fragment: Accesses the gtm.newUrlFragment key in the dataLayer, which is set by History Change triggers. History Source: Accesses the gtm.histor圜hangeSource key in the dataLayer, which is set by History Change triggers. This will be the string value of the id attribute on the form.įorm Target: Accesses the gtm.elementTarget key in the dataLayer, which is set by Form triggers.įorm Text: Accesses the gtm.elementText key in the dataLayer, which is set by Form triggers.įorm URL: Accesses the gtm.elementUrl key in the dataLayer, which is set by Form triggers. This will be a reference to the form's DOM element.įorm ID: Accesses the gtm.elementId key in the dataLayer, which is set by Form triggers. This will be the string value of the classes attribute on the form.įorm Element: Accesses the gtm.element key in the dataLayer, which is set by Form triggers. ![]() Formsįorm Classes: Accesses the gtm.elementClasses key in the dataLayer, which is set by Form triggers. This will be a number of the line in the file where the error occurred.ĭebug Mode: Returns true if the container is currently in preview mode. This will be a string that contains the URL where the error occurred.Įrror Line: Accesses the gtm.errorLine key in the dataLayer, which is set by JavaScript Error triggers. This will be a string that contains the error message.Įrror URL: Accesses the gtm.errorUrl key in the dataLayer, which is set by JavaScript Error triggers. ErrorsĮrror Message: Accesses the gtm.errorMessage key in the dataLayer, which is set by JavaScript Error triggers. This will be the string value of the id attribute on the DOM element that was clicked.Ĭlick Target: Accesses the gtm.elementTarget key in the dataLayer, which is set by Click triggers.Ĭlick URL: Accesses the gtm.elementUrl key in the dataLayer, which is set by Click triggers.Ĭlick Text: Accesses the gtm.elementText key in the dataLayer, which is set by Click triggers. This will be the string value of the classes attribute on the DOM element that was clicked.Ĭlick ID: Accesses the gtm.elementId key in the dataLayer, which is set by Click triggers. This will be a reference to the DOM element where the click occurred.Ĭlick Classes: Accesses the gtm.elementClasses key in the dataLayer, which is set by Click triggers. Click Element: Accesses the gtm.element key in the dataLayer, which is set by Click triggers.
0 Comments
Leave a Reply. |