I'm using generate press theme and elementor in wordpress and now we need to create on-click events for the menu and the buttons, see. Since I can't really use the html way to do it, I will need to use javascript. I've tried it like this:
<script>
(function($){
$( "#landingpage3-button1" ).click(function() {
ga('send','event','phone call','header');
});
})(jQuery);
</script>`
However this doesn't seem to work...
Any ideas how to fix this?
Best regards,
Florian
PS: I don't really know javascript and got this code from someone else...