Skip to main content
Level 1
May 12, 2022 1:10 PM UTC
Solved

Dynamic links in Email

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?

 

 

Darshil_Shah1
Darshil_Shah1Accepted solution
Adobe Champion, Community Advisor, UG Leader
May 12, 2022 2:05 PM UTC

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

Darshil_Shah1
Adobe Champion, Community Advisor, UG Leader
Darshil_Shah1Adobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
May 12, 2022 2:05 PM UTC

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.

 

 

Translate
SanfordWhiteman
User Group Leader
User Group Leader
May 12, 2022 6:34 PM UTC

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?

 

Translate