Top
Which HTML elements on the application can be captured as Event Attributes?
  • 10 Mar 2025
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Which HTML elements on the application can be captured as Event Attributes?

  • Dark
    Light
  • PDF

Article summary

Event Attributes enable you to send additional contextual information along with User Actions. 

For example, along with the button click event, additional attributes such as the URL, the title of the page where it was clicked, the text on the button, and more, can be captured and sent to give context to the button click event.

For more information on use cases, see What are Event Attributes?

Note:
Use Trend Insights to visualize engagement with Event Attributes. For more information, see Add Event Attributes to Trend Insights.

The following UI elements can be captured as Event Attributes:

Info:
For more information on the various UI elements, see W3 Schools.
Element TagDescriptionProperty capturedExample
inputThe <input> tag specifies an input field where the user can enter data.
valueinput_element
buttonThe <button> element is used to create an HTML button.
innerTextsubmit_button
spanThe <span> tag is an inline container used to mark up a part of a text, or a part of a document.
innerText
span_element
textAreaThe <textarea> element is often used in a form, to collect user inputs like comments or reviews. A text area can hold an unlimited number of characters.
valuetextarea_element
headerThe header tag is used to define headings and subheadings on a webpage
innerTextheader_element
divThe <div> tag defines a division or a section in an HTML document. The <div> tag is used as a container for HTML elements.
innerTextdiv_element
selectThe <select> element is used to create a dropdown list.
options[selectedIndex].innerTextoptions_element
Any other tag apart from the tags mentioned in the table (Default)-innerTextImage and Checkbox
Info:

Ensure that you capture the innermost div for an element. Capturing the outer div captures the innerText property for all the divs present inside the outer div.


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.