URL Not Resolving in Email Script Token | Community
Skip to main content
kagill16
New Participant
June 5, 2023
Question

URL Not Resolving in Email Script Token

  • June 5, 2023
  • 1 reply
  • 3743 views

For context here, following the advice to have an email comprised almost entirely of email script tokens. However, none of the tracked links such as CTA Urls are rendering correctly. Hoping there is a workaround for this other than having to disable tracking for all the links in our emails to populate. We are currently using this for a performance snapshot email where all the values in the tokens will differ from person to person, displaying things such as unique page views for that contact. All of these tokens are email script tokens that pull data from the custom object. There are 63 token values in this email that are being updated. 

Each token looks like this to pull in the value from that CO field: ${vMC_cList.get(0).op_cta_text}. I was wondering if anyone has found a resolution other than what I found on the community here

 

Thank you in advance!

 

 

 

1 reply

Darshil_Shah1
Community Manager
June 6, 2023

Are you able to share the velocity script you’re using for this? Additionally, you should check out Sandy’s blog on:

 

Multiple Marketo-tracked links in Velocity

kagill16
kagill16Author
New Participant
June 6, 2023

Hi Darshil -

All that is in the email script token is

${vMC_cList.get(0).performance_cta_url}

In the body of the email the link is set up as 

<a href="{{my.VMC-PERFORMANCE-CTA-URL}}">{{my.VMC-PERFORMANCE-CTA-TEXT}}</a>

 Reading the article it would seem like we'd need every possible URL that could be populated in that email script, correct?

Darshil_Shah1
Community Manager
June 6, 2023

First of all, you should include the protocol in the <a> tag instead of adding it to the token value itself. Also, I'd advise you to output the fully formed <a> tags from the VTL instead of outputting the bare URLs and trying to plug them in the <a> tags in the email content.

<a href="https://{{my.VMC-PERFORMANCE-CTA-URL}}">{{my.VMC-PERFORMANCE-CTA-TEXT}}</a>