I have a button that need to trigger a div and a Google Analytics event. I can't get this to work. Right now, the div triggers fine, but the GA event does not trigger.
This is the HTML:
<a class="knappmedium knappfeedbackyes" href="#" onclick="showFeedback('yes');ga('send', 'event', 'Feedback', 'Feedback positive', 'PAGEURL');">YES</a>
Edit: This button will be on multiple pages, with the GA tacking parameters unique for each instance it is used.
Help would be very much appreciated!
Kind regards, Pete