How to track custom event with data

Hi @jch
By default, if you track the page before the event, the event stays attached to the page (URL / title).
Then, you can also add custom dimensions to the tracked event:

https://developer.matomo.org/guides/tracking-javascript-guide#custom-dimensions

Please note that your event tracking code seems wrong. You should use:

<a href="mailto:name@example.com"
   title="Email Us"
   onclick="_paq.push(['trackEvent', 'Contact', 'Email Link Click', 'name@example.com']);"
   >Email Us</a>