SOLVED

Issues with Token Link

Go to solution
kenmckown
Level 4

I am building a nurture campaign and in the email we have a link that is using a token to schedule a meeting.

{{lead.Salesloft Meeting Link:default=https://mydefaultlink}}

But this does not register as a clicked link when clicked. Every other link in the email works as intended.

Tags (2)
3 ACCEPTED SOLUTIONS
Dave_Roberts
Level 10

Hey Ken, try moving the "https://" part to the outside of the token link. 

Here's a link to the docs with an example: https://experienceleague.adobe.com/en/docs/marketo/using/product-docs/email-marketing/general/using-...

 

https://{{lead.Salesloft Meeting Link:default=mydefaultlink}}

Something more like this 

View solution in original post

SanfordWhiteman
Level 10 - Community Moderator
SanfordWhiteman
Level 10 - Community Moderator

Well, there’s your problem!

 

It needs to be:

href="https://${CTA-url-text}"

 

If you’re wondering why the link still appears to work (though without tracking) I explained it here:

What happens if you leave the protocol (http:// or https://) off email links completely? It’s compli...

View solution in original post

15 REPLIES 15
Dave_Roberts
Level 10

Hey Ken, try moving the "https://" part to the outside of the token link. 

Here's a link to the docs with an example: https://experienceleague.adobe.com/en/docs/marketo/using/product-docs/email-marketing/general/using-...

 

https://{{lead.Salesloft Meeting Link:default=mydefaultlink}}

Something more like this 

kenmckown
Level 4

I should clarify, the default is not a token, it will be an actual URL. So should I still remove the https:?

SanfordWhiteman
Level 10 - Community Moderator

Not sure what you're saying here. You can't have the protocol in the underlying field nor in the default value. That is, the token must produce a value without the leading https://.

kenmckown
Level 4

Maybe I am confused, I wrote a link to a field called Salesloft Meeting Link. An example is https://meetings.salesloft.com/thepitcrew/tiregurudemo these are showing as the values of the field:

kenmckown_0-1737569413032.png

So am I understanding that this won't work? I tested the link, and the link works.

SanfordWhiteman
Level 10 - Community Moderator

It will work in the sense the person can click it and go to the right place, but it will not be tracked, as you noticed!

kenmckown
Level 4

Follow up, the field I created to store this value is a URL field. I cannot change the type since it is in use by programs that have already run. So I am assuming I am going to have to create a new field to store the value without the https:// in it.

SanfordWhiteman
Level 10 - Community Moderator

You can use a Velocity token to create a tracked link in that case:

Creating trackable links even when a token includes “http://” or “https://”

kenmckown
Level 4

I updated my field to remove the 'https://' ran another test and it is still not registering as a link clicked.

This is my new token

{{lead.Salesloft Meeting Link:default=meetings.salesloft.com/thepitcrew/taylorcarraway}}

The link worked when I clicked it, but Marketo did not tag it in my activities as a link clicked.

SanfordWhiteman
Level 10 - Community Moderator

Can you show exactly how you’re using that link in the email?

kenmckown
Level 4

Sure, it is being added to a CTA like this:

kenmckown_1-1737735420784.png

 

SanfordWhiteman
Level 10 - Community Moderator
But I also need to see how that variable is used in the template.
kenmckown
Level 4

OK, this is the variable in the template:

<meta mktomodulescope="true" class="mktoString" id="CTA-url-text" mktoname="CTA URL" default="#" />
SanfordWhiteman
Level 10 - Community Moderator
Need to see the part of the template where that var is used!
kenmckown
Level 4

Sorry about that, here you go.

 

<td bgcolor="${CTA-bg-color}" style="font-family: 'Source Sans 3', sans-serif !important; border: 1px solid ${CTA-bg-color};font-family:Arial, sans-serif; font-size:14px; text-align: center; vertical-align: middle; color: ${CTAColor}; padding: 15px 15px;line-height:20px;font-weight:600;  text-transform:capitalize;border-radius:6px;" valign="middle"> <a style="outline: 0; color: rgb(0, 125, 187); 
text-decoration: none; text-decoration: none; color: ${CTAColor}; outline:none;" href="${CTA-url-text}"> <span style="color:${CTAColor};">${CTAText}</span> </a> </td>
SanfordWhiteman
Level 10 - Community Moderator

Well, there’s your problem!

 

It needs to be:

href="https://${CTA-url-text}"

 

If you’re wondering why the link still appears to work (though without tracking) I explained it here:

What happens if you leave the protocol (http:// or https://) off email links completely? It’s compli...