You can use ESL for link tracking purposes too by embedding the link in an ESL expression.
{% if event.payload.example == 'EXAMPLE' %} https://example.com {% endif %}
Important: Please make sure that in the text version of the email, the link and the ESL expression is separated by a space or a line break. Otherwise, link tracking will not work and the campaign may become invalid.