Google Tag Manager comes with a number of pre-configured macros:
- URL Macro: This holds the value of the URL for the current page.
- HTTP Referrer: This holds the value for the referrer of the current page.
- JavaScript Variable: This is the name of a JavaScript variable on your page. GTM searches the page, finds the JavaScript variable based on the name you enter, and then stores the value in a macro.
- DOM Text: This is the name of a DOM element ID in your page. GTM searches the page, finds the element, and then stores the value of that element in a macro.
- DOM Attribute: This is the name of a DOM element ID:attribute. GTM searches the page, finds the element ID:attribute, and then stores the value in a macro.
- Data Layer Variable: This is the name of a data layer variable. GTM searches the data layer, finds the variable with the name that you entered into the macro, and then stores the value in the macro.
- Constant String: The Constant String does not come from the page. It’s just a constant value that you input as a macro.
- Custom Event: This is a way to get custom data based on a visitor action. More about events in the a later section.
Tag Manager பற்றிய காணொளி:
No comments:
Post a Comment