Dynamic links in Email | Community
Skip to main content
New Participant
May 12, 2022
Solved

Dynamic links in Email

  • May 12, 2022
  • 2 replies
  • 2831 views

Hi there,

 

I try to create smart email campaign with dynamic link.

 

As an example: online.fleetcor.de/etede?source="dynamic text"

 

So I created some token 

and I also use the token for a link:

After that I sent sample of email to myself. It works fine only on web version. 

Here is a short video: monosnap.com/file/o9V3pYyuw0Io362SYCwhZWjO2Cycaz

 

Could you please help me to resolve the issue?

 

 

Best answer by Darshil_Shah1

If you're outputting a part of link via velocity, you should include "mktNoTrack" class in the <a> tag in HTML (reference snapshot below). Only the links that are emitted completely (<a> through </a>) through the velocity token can be tracked for click activities in Marketo. You'd need to disable the tracking in-case you're outputting only a part of link through the velocity script, else the URLs will be malformed.

 

 

2 replies

SanfordWhiteman
New Participant
May 12, 2022

There’s another mistake here (in addition to what Darshil mentions about such partial links not working unless you mark them as notrack):

 

  • You’re arbitrarily using the 0th Opportunity in the list. Lists must be assumed to be unordered, so you must apply a sort ($sorter.sort) to the List, or iterate over the list and do addtional filtering, to know which one you’re using.

Also, I assume from the token name that the value is already URL-encoded. Is that the case, and can you provide an example value?

 

Darshil_Shah1
Darshil_Shah1Accepted solution
Community Manager
May 12, 2022

If you're outputting a part of link via velocity, you should include "mktNoTrack" class in the <a> tag in HTML (reference snapshot below). Only the links that are emitted completely (<a> through </a>) through the velocity token can be tracked for click activities in Marketo. You'd need to disable the tracking in-case you're outputting only a part of link through the velocity script, else the URLs will be malformed.