Track Events with PHP


ich have multiple Links on my website and want to track the clicks. I’ve allready red the Event Tracking User Guide - Analytics Platform - Matomo but it doesn’t quite help me, as I’m using php and distinguishing which link was clicked through the url.
Did someone have the same problem and could help me to find the solution?

Best Regards,