Marketo tracking links breaking when velocity script tokens used | Community
Skip to main content
Barry_Moffat2
Level 2
Jun 12, 2018 7:56 PM UTC
Solved

Marketo tracking links breaking when velocity script tokens used

Running into an issue where email links (that use script tokens) are breaking when the Marketo tracking link is added on test or live sends.

Basically our script token adds a specific web subdomain (e.g. "Sandiego") to URLs depending on the local office of our client. For example, the HTML for the link would look something like this:

<a href="{{my.branch-link-subdomain}}.examplewebpage.com"> text I want to hyperlink</a>

On the preview, everything populates correctly using live leads and the link works. However when the email is sent and Marketo redirect tracking link is added, the links no longer work. When clicked, users get either of the following messages:

OR

If I remove tracking on the link, it works fine.

Has anyone come across this? Is there a known issue with the use of script tokens in links?

Appreciate the advice.

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jun 12, 2018 8:00 PM UTC

When you use Velocity tokens, output the entire <a> tag including the closing </a> from Velocity.

This is a known requirement to emit tracked links from VTL.

2 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jun 12, 2018 8:00 PM UTC

When you use Velocity tokens, output the entire <a> tag including the closing </a> from Velocity.

This is a known requirement to emit tracked links from VTL.

Translate
Barry_Moffat2
Level 2
Jun 12, 2018 9:18 PM UTC

Thanks, Sanford. Appreciate the help.

Translate