sdk-js icon indicating copy to clipboard operation
sdk-js copied to clipboard

Auto-track linkOpened events

Open amorimjuliana opened this issue 2 months ago • 1 comments

Implement a new feature in the SDK to automatically track the linkOpened event whenever a user clicks on a link.

amorimjuliana avatar Oct 09 '25 19:10 amorimjuliana

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.

Fryuni avatar Oct 10 '25 20:10 Fryuni