I am trying to track clicks on my site using the analytics.js script for tracking events. I implement the snippet and test using the Real Time view and nothing shows up. Here is the snippet I am using:<a href=my-file-link.pdf onClick=ga('send', 'event', {eventCategory: 'download', eventAction: 'click', eventLabel: 'downloadoverview'}); target=_blank>Link</a>I have also tried:<a href=my-file-link.pdf onClick=ga('send', 'event', 'download', 'click','download overview'); target=_blank>Link</a>Anyone know what I am doing wrong?
Google Analytics events not registering
google;google analytics;universal analytics;analytics events