We track all click events automatically, however you can also tag clicks with a custom event name if you want to. This is useful when tracking clicks on specific content, such as call to actions or checkout buttons.
To add a custom event for a click event add the data attribute to the HTML element tag that you want to track.
- Find the HTML content on your site which you want to track with custom event name.
- Add the data attribute
data-upify-event
to the element. - Give the data attribute a value. This value will be used as the name for the custom event.
- E.g. To add a custom event with name mycheckout, use
data-upify-event="mycheckout"
.