Remove mkt_tok from URLs in velocity script | Community
Skip to main content
Level 1
September 1, 2023
Solved

Remove mkt_tok from URLs in velocity script

  • September 1, 2023
  • 1 reply
  • 1368 views

Hello!

I am using velocity script to show recipients of emails a different meeting booking URL based on their sale owner. Everything works fine in preview - they see the correct links and can get through to the booking page. But as you soon as you send an actual test email - the booking links no longer work as Marketo adds the mkt_tok parameters to the URL which seems to break them. Seems like the links can't handle any parameters being added - they are Microsoft Booking tool links...

 

Any idea how I can stop the mkt_tok being added to the links...? 

 

Thanks!

 

A very shortened version of the v script I have...

 

#if ($lead.Lead_Owner_Email_Address.equals("email1"))
<a href="outlook.office365.com/owa/calendar/bookingperson1.onmicrosoft.com/bookings/">Jetzt Termin vereinbaren</a>

 

#else
##Output for everyone else
<a href="outlook.office365.com/owa/calendar/bookingperson2.onmicrosoft.com/bookings/">Jetzt Termin vereinbaren</a>
#end

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Add

class="mktNoTok"

just as you would outside of Velocity.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
September 1, 2023

Add

class="mktNoTok"

just as you would outside of Velocity.

AmyWa5Author
Level 1
September 4, 2023

Thank you!!