To keep track of how many times an external link is clicked, you can use website analytics tools such as Google Analytics or third-party link tracking services.
One way to track external link clicks using Google Analytics is to create an event tracking tag. This involves adding a code snippet to your website's HTML that sends data to Google Analytics when a user clicks on an external link. The code snippet can be customized to track specific links or types of links, and you can view the data in your Google Analytics account to see how many times the links have been clicked.
Another option is to use a third-party link tracking service like Bitly or ClickMeter. These services provide shortened links that can be customized and tracked, allowing you to see how many clicks each link has received.
Regardless of the method you choose, it's important to ensure that your tracking is in compliance with relevant data privacy laws and that you provide clear notice to users that their clicks are being tracked.