How to create goals to track Individual Menu Links in Matomo? Can create GTM tags?

I want to track Menu Links of the website. Each menu individually. I have create GTM tags fired when someone click destination URL but it is not working.

Why don’t you use MTM instead of GTM?
External links can also be automatically tracked…
How did you configure your tag?