Remove https:// from a My Token URL to use in Email CTA | Community
Skip to main content
Level 2
January 14, 2020
Question

Remove https:// from a My Token URL to use in Email CTA

  • January 14, 2020
  • 1 reply
  • 3432 views

Hi!

We have created an Email Template using Email Editor 2.0.

Last week, we changed the way the user can set the URL behind a CTA (in order to get the link tracked by Marketo) now it doesnt include any , that part it's in the html code.

There is a URL (webinar link) that is sent to Marketo from a third party and stored in a token, but that URL sent to us includes https://.

I tried to parse the URL in the token using an Email Script Token, but my tokens can't be accessed from there.

Is there another solution to remove the https:// from the URL stored in the token?

Thanks!

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

1 reply

SanfordWhiteman
Level 10
January 14, 2020

You have to get that third party to either (a) set a Velocity variable to the URL in a formal Velocity type token, or at least (b) set a Velocity variable within the Text token (this also works).

JoseSe6Author
Level 2
January 15, 2020

Not sure what you mean with setting a velocity variable within the text token. How can I do that?

Thanks!

SanfordWhiteman
Level 10
January 15, 2020

By which I mean the token contains this text:

#set( $webinarURL = "https://www.example.com" )

Of course if they can change what they set in in the token one hopes they can also take off the protocol. But maybe one is more possible than the other for some reason.