Link options - Track data
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
Now, you can get access to this element and read it’s value using JavaScript.
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="http://example.com" ... data-track="my-button">
<button ...> Button </button>
</a>
Now, you can get access to this element and read it’s value using JavaScript.
Updated on: 21/07/2022
Thank you!