Enable Tracker
Attach HTML Data Attributes
data-m:click
HTML attribute on an element. This attribute should be a key-value pair that will be sent with the event.The following example demonstrates how to attach custom properties to a click event:{ "action": "purchase", "product_id": "123" }
will be sent when the “Buy Now” button is clicked, and { "action": "contact" }
will be sent when the “Contact Us” link is clicked.You can set these attributes statically or dynamically based on user interactions or other relevant information.View Events