You can add specific attributes to any element using the field “Track data”.

You can add, for example, to your button an attribute called “my-button”. 

The HTML of your button will appear in this way

<a href="" ... data-track="my-button">

<button ...> Button </button>


Now, you can get access to this element and read it’s value using JavaScript.
Was this article helpful?
Thank you!