Hi,
Thought it would be simple to add a custom token in a href link.
Its easy to print my custom token in the email but somehow when it have to be rendered in an email link, it just get added after the link.
<a href="https://<link-to-lp.com?haveAddress={{my.haveAddress}}">Click me</a>
Expected:https://<link-to-lp.com?haveAddress=1
Result: https://<link-to-lp.com?haveAddress=<token-script-logic-printed>
In the email its easily rendered as 1 or 0 as expected. In preview mode when i hover over the link it works as expected too.
Doing a sample send or real send, the custom token is not added.
Could anyone guide me here.
Thanks in advance.
Solved! Go to Solution.
To manage links with Velocity, you must output the entire link - from opening <a> to closing </a> - from the token.
(This is discussed in numerous other posts.)