I want to add a custom tag on ms clarity for a particular click event for eg-: (i want to track the users clicking cancel button), so that it should only fire when a user click on the cancel button,i am on an angular project. How can i do that ?
i tried putting script tags on the html page of the component which contains cancel button and passed the button id using addEventListener, but that button already has a normal click function :/
When we want to do some in a severals elements a Directive (with a selector) go to rescuest
So you can use
Well, you can use another selectors like
button:not([type=submit]),button:not([type=button])or another you can imagineTo know more about selector I like this link in medium or the official docs