I already found this topic here: How can I echo Woocommerce shipment tracking in an email template? This is working but in my case I want to display the tracking link instead of