AnsweredAssumed Answered

Using velocity script in different tracking links

Question asked by API Dev on Oct 11, 2018
Latest reply on Oct 12, 2018 by Sanford Whiteman



I have a velocity script that outputs a certain value (say $value = 'abc') and I want to use this value in different links as a part of url parameter string.


I have 3 links that are generated from a different token for the website's child page name. For e.g.:






And I want to use my 1 velocity token in all the above 3 urls in the email. For eg, like this:{{my.pagename}}/aboutus/param1={{my.velocitytoken}},{{my.pagename}}/currentissues/param1={{my.velocitytoken}} and{{my.pagename}}/upcomingposts/param1={{my.velocitytoken}}


But I'm also aware that in order to create fully tracked links you need to output the complete url in the velocity script itself, which is not what we desire as our links are generated by already defined local tokens.


Is there work around in this case with using the velocity script tokens?