I have set up an event in Google Analytics:
Goal set up - Custom Type - Event Name - Email Click Category (equal to) - Email Click Action (equal to) - clicked
This has saved successfully in Analytics.
I then have the following link and javascript on my page (which also has the standard Analytics code)
function email_clicked() {
ga('send', 'event', 'Email Click', 'clicked');
}
<a href="mailto:[email protected]" onclick="email_clicked()">[email protected]</a>
Nothing tracks though! Any help would be really appreciated.
Thanks