Email Link tracking in tokens - are https links getting converted? | Community
Skip to main content
Conner_C
New Participant
July 11, 2018
Solved

Email Link tracking in tokens - are https links getting converted?

  • July 11, 2018
  • 1 reply
  • 4503 views

During one of my sessions at Marketo Summit, it was mentioned that the new GCP Platform introduced a new SSL product just in time for GDPR Compliance and Chrome 68 warning users of non-HTTPS sites. During that session it was mentioned that, at that time, the email editor was not ready to automatically convert HTTPS links to the tracking domain. This meant that token links that use HTTPS would not get converted to tracking links.

Doing some further research, I found a few instances of Marketo Nation threads that detail exactly that:

The Editor looks for HTML code that matches href=” to automatically convert links not created by the WYSIWYG editor (I.E., links in Tokens). If a token value for a link uses , it will not be recognized automatically and thus, not get converted to a tracking link.

HOWEVER, in my recent testing, this has not been the case. Inserted HTTPS links into our tokens are in fact getting converted to tracking links.

Am I missing something? Was an update done to the email editor to allow this to work, or does my scenario not apply to the href=” restriction?

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

I think the information was poorly communicated.

There has been a restriction that even if you had an SSL cert on your tracking domain (call it https:​//go.example.com) the links would be rewritten to http:​//go.example.com instead. HSTS could then take care of redirecting people from the http:​// site to the https:​// site, but that's not as secure (a first-time connection can be intercepted in that case).

In other words, this didn't have to do with the protocol of the original link target but the protocol of the rewritten link.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
July 11, 2018

I think the information was poorly communicated.

There has been a restriction that even if you had an SSL cert on your tracking domain (call it https:​//go.example.com) the links would be rewritten to http:​//go.example.com instead. HSTS could then take care of redirecting people from the http:​// site to the https:​// site, but that's not as secure (a first-time connection can be intercepted in that case).

In other words, this didn't have to do with the protocol of the original link target but the protocol of the rewritten link.

Conner_C
Conner_CAuthor
New Participant
July 11, 2018

I understand, I must have misunderstood the original conversation then.

If I implement an SSL on my landing pages subdomain, I can use the https links for my landing pages in tokens or the WYSIWYG and they will get converted to tracking.domain.com.

If I implement an SSL on the tracking subdomain, the email editor will only convert to tracking.domain.com, instead of tracking.domain.com. Having HSTS implemented at the domain level will resolve this for users after the initial request from a browser.

Follow up question for you:

I do see some forum threads that talk about the structure for using token based links, like this thread:

How to Track Tokenized Links in Email Assets

&&

Can you use URLs in Tokens? YES - here's how.

Currently, my templates are following the the "Bad" Example in the second link by having the entire URL be placed in the token instead of the URN, and yet mine are working just fine and getting converted to tracking links.

Could this "bad" example only refer to Marketo variables from outside the email scope, or has this issue been resolved?

SanfordWhiteman
New Participant
July 11, 2018

Currently, my templates are following the the "Bad" Example in the second link by having the entire URL be placed in the token instead of the URN, and yet mine are working just fine and getting converted to tracking links.

Could this "bad" example only refer to Marketo variables from outside the email scope, or has this issue been resolved?

This has traditionally been a global restriction (not, it should be noted, on variables but on tokens). Not aware of it having changed, in fact quite recently there was a thread here where someone was doing it the "bad" way and needed to fix it up.

There is an exception: when you use a Velocity token, you should output the entire <a> tag (not just the path/page/querystring, nor the full href including the protocol, but the entire <a> including closing </a> and inner content).