Velocity created email content, problem on how to track links in email
I have an email for which the content is completely generated with velocity script.
In the content I create a list of links. The number of items in the list is different for every lead.
The problem is that I do not succeed in creating trackable links ( I refer to this post of Sanford : https://nation.marketo.com/t5/product-blogs/creating-trackable-links-even-when-a-token-includes-http-or/ba-p/314510 )
So before I generate the list, I already have some content which is avaliable in my variable ${output}, and then I continue like this:
#set( $link = "<a style='color:#00ADEF;text-decoration:underline;' href='https://www.dataline.eu/nl/" )
#set( $link = "${link}${j.u}${googleUTMString}")
#set( $link = "${link}'>")
#set( $link = "${link} ${j.t}")
#set( $link = "${link} </a>")
#set( $output = "${output} ${openListItem} ${link} ${closeListItem}")
All links are working fine, but are not tracked.
How can I solve this issue???