I am trying to send an event to Google Analytics when clicking on a specific button.
this is my button ID: (#data_243342)
This is my GA script to push on clicking on the above button.
onclick="dataLayer.push({"event": "eventGA","eventCategory" : "data1","eventAction" : "data-1-click","eventLabel" : "yes"})"
How can i pass this in a jqueryor javascript?