Email Script will not display value in link
Greetings,
I have the following simple logic for an email script {{my.cOwner}}
#set($CO = "")
#if(${lead.ContactOwner} == "Ed Rayyis")
#set($CO = "&contactSegment=data")
#end
${CO}
in my email HTML I have the following link:
<a href=rayyis.com?utm_medium=email&utm_campaign={{my.utm_campaign}}{{my.cOwner}}" target="_blank">
problem is the logic works but values do not get passed in the link. if I simply add {{my.cOwner}} token in my email anywhere I see all values populate correct, if I click the link, all values are displayed in the link except for the scripted {{my.cOwner}} part. If on the other hand I click view email in browser, the link displays correctly with the correct value based on the logic. Any one came across such a problem and found a fix or work around?