Using Velocity Script to Set URL (and leave out formatting)
Hello,
I am trying to set a URL in velocity script based on lead data. I do not want to pass any CTA copy in the velocity, how can I set URLs without putting the URLs in a tags? We will be using these links in multiple places in the email, so simply want to pass the URL only, no other formatting. I have not been able to get this work.
-------------------------------
EXAMPLE 1:
#if($lead.Language=="English")#set($ctalink="test.com")
#elseif($lead.Language=="Spanish")#set($ctalink="test.com/spanish")
#elseif($lead.Language=="Japanese")#set($ctalink="test.com/japanese")
#end
##print
https://$ctalink
-NOTES: Tracking for links are broken in this example, tracking does not show up on lead record or report
-----------------------------
EXAMPLE 2:
#if($lead.Language=="English")#set($ctalink="test.com")
#elseif($lead.Language=="Spanish")#set($ctalink="test.com/spanish")
#elseif($lead.Language=="Japanese")#set($ctalink="test.com/japanese")
#end
##print
$ctalink-NOTES: Links break once the email is sent.
----------------------------
How can I pass just the URL from velocity without breaking tracking?