Using my tokens in links from email | Community
Skip to main content
Mathias_Hornstr
New Participant
March 4, 2020
Solved

Using my tokens in links from email

  • March 4, 2020
  • 1 reply
  • 1657 views

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

Resulthttps://<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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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.)

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
March 4, 2020

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.)