Event trigger variables
This article explains how to add or customize event trigger variables.
Event trigger variables are the values sent in the tracking call. You can edit existing trigger variables or add custom variables to collect extra data with the event.
- From the event’s Configuration page, select the variable from the list, or click + New Variable to create a new variable.
- Select the Type of variable to set.
- Enter the Source for this variable. Use the variable name that your site’s source code uses.
- (Optional) Enter an Alias to identify the variable.
- (Optional) Enter any Notes for this variable.
- Click Apply to set the new variable.
- Select an option from the list.
- Text – Set a value for the variable in the text box.
- Variable – Select another variable to set this variable to.
- Use
event
to reference the event object. To reference a property of the event, use dot or bracket notation (for example,event.property
). - Use
element
to reference the DOM element. To reference a property of the DOM element, use dot or bracket notation (for example,element.property
).
- Use
- JavaScript – Enter the JavaScript code to evaluate for this variable’s value.
- Data Layer Value – Send the variable as-is from the utag data to the data layer.
If the event scope is set to Pre Loader, you can’t select Data Layer Value or Variable because utag.data
doesn’t exist in that scope.
To add another row to the list, click the plus symbol ( + ).
To delete a row from the list, click the minus symbol ( - )
This page was last updated: February 28, 2024