Tracking button clicks?

I need to track (and tag) contacts who click a button on a wordpress site that has the WP mautic plugin installed.

I know I can track page and tag contacts for page visits.

The destination page after the button click is a different site so I can’t track visits to the destination url.

Any suggestions on how to do this? My guess is the target url maybe has some custom code appended to the link maybe?