‘onclick’ for buttons?
-
We figured out a cool way to track clicks in Google analytics:
<a href="tel:8669877874" onclick="ga('send', 'event', 'Button', 'click', '5 sessions Campaign')">(866) 987-7874</a>
I’m not much of a javascript dude but I’d like to do the same thing for an Elementor button. – add an onclick to the button. Is this possible?
- The topic ‘‘onclick’ for buttons?’ is closed to new replies.