sdk-js
sdk-js copied to clipboard
Auto-track linkOpened events
Implement a new feature in the SDK to automatically track the linkOpened event whenever a user clicks on a link.
My recommendation is to do this from a client event handler on the root document itself. Attaching it to the body and/or each individual element is prone to miss nodes added and/or switched dynamically.
The event handler should be on the capture phase in order to run before a stopPropagation from more granular handlers.