Creating a dynamic URL for an external link inside content

This sounds like a perfect use case for Google Tagmanger Event tracking and google analytics Goals.

I would refer you to https://support.google.com/analytics/answer/6164470?hl=en

You can make events happen conditionally via URL or actual interaction with page elements via class or ID.

Analytics goals will allow you easily track the outcomes in GA.