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

Pepe_Serralvo
Level 2

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

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 https://, 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!

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

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

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).

Pepe_Serralvo
Level 2

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

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

Thanks!

SanfordWhiteman
Level 10 - Community Moderator

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

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.

Pepe_Serralvo
Level 2

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

Thanks Sandford!